Title: Google analytics broken
Last modified: March 27, 2018

---

# Google analytics broken

 *  Resolved [bwhp](https://wordpress.org/support/users/bwhp/)
 * (@bwhp)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/google-analytics-broken/)
 * Hi there
    I’m using the Google Analytics tracking option. It has broken when 
   I did the latest update to Adrotate Professional version 4.12. The javascript
   console indicates an error in the Google analytics code – with a stray comma 
   in the call to ga(). Please help urgently as this means none of our tracking 
   is working all of a sudden. thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-analytics-broken%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [bwhp](https://wordpress.org/support/users/bwhp/)
 * (@bwhp)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/google-analytics-broken/#post-10117821)
 * Further to this, I’ve looked at the code.
    The tracking error is on page 517 
   and 518 of adrotate_output.php, where $config should actually be $adrotate_config.
   Similar error on line 523 and 524 for the gtag option (which doesn’t work because
   when you select it in the adrotate options it doesn’t correctly save). I have
   fixed this in my version so you won’t see it if you check my sites, but if you
   could rectify in an upcoming release that would be great. thanks
 *  Thread Starter [bwhp](https://wordpress.org/support/users/bwhp/)
 * (@bwhp)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/google-analytics-broken/#post-10117945)
 * And thirdly it looks like you’ve changed the event types to Banner, Click and
   Impression (with a capital letter first). For consistency with the previous version
   it would be better to change them back to banner, click and impression – would
   that be possible>
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/google-analytics-broken/#post-10148163)
 * I’ll have a look at your suggestions and make changes for the next version where
   applicable.
    Thanks for your input!
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/google-analytics-broken/#post-10163568)
 * I’ve found some issues as you described and will address all of it in the next
   version later this month.
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/google-analytics-broken/#post-10163569)
 * Follow dev here: [https://ajdg.solutions/plugins/adrotate-for-wordpress/development/](https://ajdg.solutions/plugins/adrotate-for-wordpress/development/)

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

The topic ‘Google analytics broken’ is closed to new replies.

 * ![](https://ps.w.org/adrotate/assets/icon-256x256.gif?rev=3117289)
 * [AdRotate Banner Manager](https://wordpress.org/plugins/adrotate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adrotate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adrotate/)
 * [Active Topics](https://wordpress.org/support/plugin/adrotate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adrotate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adrotate/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Arnan](https://wordpress.org/support/users/adegans/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/google-analytics-broken/#post-10163569)
 * Status: resolved