Support » Fixing WordPress » [Plugin: Google Analytics for WordPress] WP Google Analytics and WP Super Cache

  • I recently installed WP Super Cache plugin. Super Cache appears to somehow disable the Javascript functionality of the WP Google Analytics plugin when writing the pages as static HTML. My GA is not showing any data in my account since I installed WP Super Cache, although my GA code is appearing in the footer and my GA account is reporting that it’s “receiving data”.

    Is there an easy fix to allow both of these plugins to work simultaneously without too much fuss? The GA plugin was working like a charm prior to the Super Cache plugin.

    I found a link to instructions on how to “Make Any Plugin Work with WP Supercache” but I’m not a seasoned enough coder to pull these instructions off without breaking something.

    Any suggestions on how to make these 2 plugins work together without reinventing the wheel?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I yanked Yoast’s GA plugin and installed GA in the footer.php manually and I’m still not seeing any stats in GA admin.

    WP Super Cache has to be creating some problem that’s preventing GA from tracking properly.

    Anybody have any ideas?

    Look at these two lines:
    document.write(unescape(“%3Cscript src='” + gaJsHost + “’

    They are not supposed to be split like that in the page source.

    I’ve worked my GA plugin in combination with WP Super Cache for ages without issue, and am now using it with W3 Total Cache without issue as well.

    Slightly off-topic, but I just ran into similar problem (but with W3 Total Cache) and had to disable HTML minification to get everything working. Topic is here:

    If my assumption is correct, the problem comes if caching/minifying touches the markup, which might cause // comments (e.g. “Cookied already”) comment out the whole line of the script.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Google Analytics for WordPress] WP Google Analytics and WP Super Cache’ is closed to new replies.