Title: [Plugin: Google Analytics for WordPress] PHP Errors
Last modified: August 20, 2016

---

# [Plugin: Google Analytics for WordPress] PHP Errors

 *  [quatrel](https://wordpress.org/support/users/quatrel/)
 * (@quatrel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-php-errors/)
 * The plugin is working well, however, it is throwing up a lot of error notices
   in the PHP Error log repeatedly:
 *     ```
       PHP Notice:  Undefined index: HTTP_HOST in /.../wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 1132
       PHP Notice:  Undefined offset: 2 in /.../wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 1122
       PHP Notice:  Undefined offset: 0 in /.../wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 1128
       ```
   
 * It seems to come when these PHP notices occur:
 *     ```
       PHP Notice:  Undefined index: HTTP_HOST in /.../wp-includes/canonical.php on line 46
       PHP Notice:  Undefined index: HTTP_HOST in /.../wp-includes/nav-menu-template.php on line 364
       ```
   
 * [http://wordpress.org/extend/plugins/google-analytics-for-wordpress/](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [virtulex](https://wordpress.org/support/users/virtulex/)
 * (@virtulex)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-php-errors/#post-2566317)
 * I’ve got the same problem. Could you solve it?
 *  Thread Starter [quatrel](https://wordpress.org/support/users/quatrel/)
 * (@quatrel)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-php-errors/#post-2566318)
 * Nope.
 * Actually it is due to programming oversights, so the developer is best equipped
   to fix it. I suppose it is of a low priority, since these are not fatal errors.
 * Anyway, I dropped this plugin and switched over to Clicky for my analytics, since
   I don’t want to share my data with Google anymore … I’d rather pay $10/month 
   and have the data private.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Google Analytics for WordPress] PHP Errors’ is closed to new
replies.

 * ![](https://ps.w.org/google-analytics-for-wordpress/assets/icon.svg?rev=2976619)
 * [MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-for-wordpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [quatrel](https://wordpress.org/support/users/quatrel/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-php-errors/#post-2566318)
 * Status: not resolved