Title: ReferenceError: __gaTracker is not defined
Last modified: September 5, 2017

---

# ReferenceError: __gaTracker is not defined

 *  Resolved [the_lar](https://wordpress.org/support/users/the_lar/)
 * (@the_lar)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/referenceerror-__gatracker-is-not-defined/)
 * Hi,
 * Just updated to the latest version of this plugin and my service tracker has 
   stopped working on this page – [https://www.geotechuk.com/service/service-centre/](https://www.geotechuk.com/service/service-centre/),
   I’m getting a ‘ReferenceError: __gaTracker is not defined’.
 * What settings do I need to change or how do I update the code to make it work
   again please?
 * Thanks
    Kevin
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freferenceerror-__gatracker-is-not-defined%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [chriscct7](https://wordpress.org/support/users/chriscct7/)
 * (@chriscct7)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/referenceerror-__gatracker-is-not-defined/#post-9468632)
 * Hi there,
    Your code is still working the same way it was before. My guess is
   you are now looking at the console while being logged in as an administrator 
   user.
 * MonsterInsights does not track logged in site administrators by default. You 
   should wrap your entire Javascript snippet in a
 * `if ( __gaTracker.hasOwnProperty( "loaded" ) && __gaTracker.loaded == true ) {`
 * -Chris
 *  Thread Starter [the_lar](https://wordpress.org/support/users/the_lar/)
 * (@the_lar)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/referenceerror-__gatracker-is-not-defined/#post-9468772)
 * Hi Chris,
 * Yes that seemed to do the trick, is that a recent change?
 * On a side note, why is it that I have to use this:
 * __gaTracker(‘send’,’event’,’hire me’,’click’,nme);
 * rather than something like this:
 * ga(‘send’, ‘event’, ‘hire me’, ‘click’, nme, ‘clicked’);
 * Never quite understood that?
 * Cheers
    Kevin
 *  Plugin Author [chriscct7](https://wordpress.org/support/users/chriscct7/)
 * (@chriscct7)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/referenceerror-__gatracker-is-not-defined/#post-9468954)
 * Hi there,
    No the plugin would have always have needed that. My guess is when
   you tested your code before you were simply testing it logged out or in an incognito
   mode, and therefore the GA tag would be loaded.
 * __gaTracker is used for compatibility and abstraction purposes. __gaTracker is
   simply an alias of ga currently.
 * -Chris

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

The topic ‘ReferenceError: __gaTracker is not defined’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [chriscct7](https://wordpress.org/support/users/chriscct7/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/referenceerror-__gatracker-is-not-defined/#post-9468954)
 * Status: resolved