Title: Plugin Stopped Google Analytics Tracking
Last modified: March 27, 2017

---

# Plugin Stopped Google Analytics Tracking

 *  Resolved [cesare2016](https://wordpress.org/support/users/cesare2016/)
 * (@cesare2016)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/plugin-stopped-google-analytics-tracking/)
 * I liked the Autoptimize Plugin a lot until I found out at random that Google 
   Analytics (installed through Google Tag Manager) would stop tracking when Autoptimize
   would be running. I tested it with Autoptimize activated/deactivated – its for
   sure the reason. I was not using the JavaScript options, only “Optimize HTML 
   Code” and some CSS options. Any idea?

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/plugin-stopped-google-analytics-tracking/#post-8960768)
 * > I was not using the JavaScript options, only “Optimize HTML Code” and some 
   > CSS options.
 * in that case; no idea I’m afraid .. could you try disabling HTML optimization
   and see if that changes things?
 *  Thread Starter [cesare2016](https://wordpress.org/support/users/cesare2016/)
 * (@cesare2016)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/plugin-stopped-google-analytics-tracking/#post-8961119)
 * hi frank,
    disabling the html optimization does the trick…mobile improved now
   by 4 points, desktop dropped by one. but i guess i can live with that…
 * no idea why this interferes with GTM…
 * cheers,
    cesare
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/plugin-stopped-google-analytics-tracking/#post-8961915)
 * no idea either, but glad it works Cesare. thanks for the feedback!
 *  [slomeli79](https://wordpress.org/support/users/slomeli79/)
 * (@slomeli79)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-google-analytics-tracking/#post-9422561)
 * Frank,
 * After some extensive troubleshooting, I just discovered the same.
 * Have WP Rocket and Autoptimize (AO) on a site where they’ve coexisted and optimized
   peacefully. I moved the HTML minification job from Rocket to AO last week and
   apparently all GA tracking stopped. Soon as I disable HTML minify in AO, GA tracking
   resumes.
 * Re-enabled HTML minify in Rocket, and all is good.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-google-analytics-tracking/#post-9422918)
 * interesting [@slomeli79](https://wordpress.org/support/users/slomeli79/)! could
   you install [the latest development version from GitHub](https://github.com/futtta/autoptimize/archive/master.zip)
   to see if that fixes the problem (specifically [this commit](https://github.com/futtta/autoptimize/commit/0f6ac683c35bc82d1ac2d496ae3b66bb53e49f88)
   might be relevant)?

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

The topic ‘Plugin Stopped Google Analytics Tracking’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-google-analytics-tracking/#post-9422918)
 * Status: resolved