Support » Plugin: Autoptimize » Plugin Stopped Google Analytics Tracking

  • Resolved cesare2016

    (@cesare2016)


    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

    (@futtta)

    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?

    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

    (@futtta)

    no idea either, but glad it works Cesare. thanks for the feedback!

    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

    (@optimizingmatters)

    interesting @slomeli79! could you install the latest development version from GitHub to see if that fixes the problem (specifically this commit might be relevant)?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin Stopped Google Analytics Tracking’ is closed to new replies.