Title: Ultimate Google Analytics Plugin Array_Key_Exists error
Last modified: August 19, 2016

---

# Ultimate Google Analytics Plugin Array_Key_Exists error

 *  [ElizabethD](https://wordpress.org/support/users/elizabethd/)
 * (@elizabethd)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/ultimate-google-analytics-plugin-array_key_exists-error/)
 * Hello – when I activate the uga plugin I am getting the message below. I don’t
   understand what it is that I need to do to fix the problem. Can anyone help me.
 * Warning: array_key_exists() [function.array-key-exists]: The second argument 
   should be either an array or an object in blah blah/public_html/blah blah blah.
   net/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 203
 * and here is the code where I’ve found “array_key_exists”:
 * if (!$uga_options || !array_key_exists(‘$option_name’, $uga_options)) {
    // no
   options in database yet, or not this specific option // create default options
   array uga_debug(‘Constructing default options array’); $uga_default_options=array();
   $uga_default_options[‘internal_domains’] = $_SERVER[‘SERVER_NAME’]; if (preg_match(‘
   @www\.(.*)@i’, $uga_default_options[‘internal_domains’], $parts)>=1) { $uga_default_options[‘
   internal_domains’] .= ‘,’.$parts[1]; }
 * Much appreciated. Elizabeth

Viewing 1 replies (of 1 total)

 *  [fusionpowered](https://wordpress.org/support/users/fusionpowered/)
 * (@fusionpowered)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/ultimate-google-analytics-plugin-array_key_exists-error/#post-1057619)
 * Hi Elizabeth
 * Is it possible that you have changed the domain name for your website?
 * If you change the domain name after installing the plugin, you need to change
   the reference to the internal domain name. The fastest and easiest way is to 
   deactivate the plugin, remove the options row named ‘ultimate_ga_options’ in 
   your options table and re-activate the plugin.
 * I’ve made a small blog post about it here:
    [http://giblitz.com/2009/07/20/error-ultimate_ga-php-on-line-203/](http://giblitz.com/2009/07/20/error-ultimate_ga-php-on-line-203/)
 * Terry.

Viewing 1 replies (of 1 total)

The topic ‘Ultimate Google Analytics Plugin Array_Key_Exists error’ is closed to
new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [fusionpowered](https://wordpress.org/support/users/fusionpowered/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/ultimate-google-analytics-plugin-array_key_exists-error/#post-1057619)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
