Title: PHP Notice &#8211; Undefined Variable $tracking
Last modified: May 1, 2018

---

# PHP Notice – Undefined Variable $tracking

 *  Resolved [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-notice-undefined-variable-tracking/)
 * I’m receiving a PHP Notice regarding an undefined variable, the error is listed
   below:
 * `PHP Notice: Undefined variable: tracking in /plugins/google-analytics-for-wordpress/
   includes/admin/tracking.php on line 94`
 * After looking at the code in that file it doesn’t appear that the `$tracking`
   variable is defined anywhere in the method. Was hoping someone on the dev team
   could look into this.

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

 *  Plugin Author [chriscct7](https://wordpress.org/support/users/chriscct7/)
 * (@chriscct7)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-notice-undefined-variable-tracking/#post-10236199)
 * Hi there,
    Thanks for the report! We’ll get this fixed in the next release
 * -Chris
 *  [jaygidwitz](https://wordpress.org/support/users/jaygidwitz/)
 * (@jaygidwitz)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-notice-undefined-variable-tracking/#post-10236204)
 * Hi there,
 * If you haven’t already you’ll want to get in touch with us at monsterinsights.
   com/lite-support/ as we’re going to need to diagnose this issue
 * -Jay
 *  Thread Starter [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-notice-undefined-variable-tracking/#post-10236241)
 * I appreciate the response – I’m a bit leery giving any kind of site credentials
   to any 3rd party.
 * I feel looking at the file itself it is pretty clear that the variable doesn’t
   exist before it’s being used so any time that specific method is called it will
   fire off a PHP Notice but the overall functionality probably wouldn’t be impacted.
   It looks like it’s only triggered during the usage reporting stage via cronjob.
 * Sorry I can’t be of more help!
 *  [jaygidwitz](https://wordpress.org/support/users/jaygidwitz/)
 * (@jaygidwitz)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-notice-undefined-variable-tracking/#post-10236297)
 * Chris found the fix for the issue a minute while I was replying, it’ll be fixed
   in the next release.
 * Cheers,
 * Jay

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

The topic ‘PHP Notice – Undefined Variable $tracking’ 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/)

## Tags

 * [PHP Notice](https://wordpress.org/support/topic-tag/php-notice/)
 * [undefined](https://wordpress.org/support/topic-tag/undefined/)

 * 4 replies
 * 3 participants
 * Last reply from: [jaygidwitz](https://wordpress.org/support/users/jaygidwitz/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/php-notice-undefined-variable-tracking/#post-10236297)
 * Status: resolved