Title: [Plugin: Google Analytics for WordPress] WP Google Analytics and WP Super Cache
Last modified: August 19, 2016

---

# [Plugin: Google Analytics for WordPress] WP Google Analytics and WP Super Cache

 *  [willard97](https://wordpress.org/support/users/willard97/)
 * (@willard97)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/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.
    [http://omninoggin.com/wordpress-posts/make-any-plugin-work-with-wp-super-cache/](http://omninoggin.com/wordpress-posts/make-any-plugin-work-with-wp-super-cache/)
 * Any suggestions on how to make these 2 plugins work together without reinventing
   the wheel?

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

 *  Thread Starter [willard97](https://wordpress.org/support/users/willard97/)
 * (@willard97)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-wp-google-analytics-and-wp-super-cache/#post-1204803)
 * 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?
 *  [Yohan Perera](https://wordpress.org/support/users/thevirtualpreacher/)
 * (@thevirtualpreacher)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-wp-google-analytics-and-wp-super-cache/#post-1204823)
 * Look at these two lines:
    document.write(unescape(“%3Cscript src='” + gaJsHost
   + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
 * They are not supposed to be split like that in the page source.
 *  [Joost de Valk](https://wordpress.org/support/users/joostdevalk/)
 * (@joostdevalk)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-wp-google-analytics-and-wp-super-cache/#post-1204826)
 * 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.
 *  [Zemalf](https://wordpress.org/support/users/zemalf/)
 * (@zemalf)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-wp-google-analytics-and-wp-super-cache/#post-1204828)
 * 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:
   [http://wordpress.org/support/topic/346393](http://wordpress.org/support/topic/346393)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [Zemalf](https://wordpress.org/support/users/zemalf/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-wp-google-analytics-and-wp-super-cache/#post-1204828)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
