WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: W3 Total Cache] Google Analytics not working properly with W3TC. Share settings that work h

[Resolved] [Plugin: W3 Total Cache] Google Analytics not working properly with W3TC. Share settings that work h

  • My Google Analytics hasn’t been working properly since I started using W3 Total Cache. I’m using Joost’s Google Analytics for WordPress plugin, but that’s not the issue.

    I assume the problem is in the minify settings, so could someone tell what I shouldn’t have ON there to ensure Google Analytics is working? e.g. HTML minify? JS minify? Line breaks?
    –>
    If someone is running both W3 Total Cache and Google Analytics is working as before, please share your settings, thanks!

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

Again, it’s the obligation of plugin authors to ensure their plugins can work with minification. The FAQ suggests not minifying any statistics related scripts or code and again I’m encouraging you to disable HTML minification. Also the first link shows you running hypercache and not W3TC, the second shows the minification issue that Zemalf raised.

Hi Fred,

I was running hypercache, but deleted it when I switched to W3 Totalcache. Unfortunately the Google cache appears to have changed, and the first link doesn’t produce an error now. In fact, for the same search this thread comes up first!

I haven’t had any problems since, but I’ve disable HTML minification in W3 TC as you recommended.

I’m waiting for the 2.91 upgrade before rolling out the rest of the blog changes, but I have to say that W3 TC seems to be doing a great job speeding up my sites where implemented up to now. Looks like becoming the gold standard.

Tony

Ok great.

So quick question about this… I typically hard code the GA code into the footer of my theme. Will any settings using the W3TC plugin have a negative effect on my GA readings if I manually install the code in the footer?

No.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] [Plugin: W3 Total Cache] Google Analytics not working properly with W3TC. Share settings that work h’ is closed to new replies.