Title: Missing tracking script on cached pages
Last modified: April 19, 2018

---

# Missing tracking script on cached pages

 *  Resolved [Matze Pabst](https://wordpress.org/support/users/matthiaspabst/)
 * (@matthiaspabst)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/missing-tracking-script-on-cached-pages/)
 * When using a caching plugin like WP Rocket or Cache Enabler, the tracking JS 
   is not inserted on all pages. As a result, the counts are always to low compared
   to using Statify without a caching plugin.
 * I think it depends on whether a human or a bot is the 1st visitor of an un-cached
   post or page and triggers the caching. If a human visits the post or page, the
   JS is added and stored in the static HTML page. But if a bot is the 1st visitor,
   Statify doesn’t insert the JS and the static HTML page is stored without the 
   tracking script. Every further visit of this page wont be counted, even if it’s
   a human visit.
 * Is there a chance to resolve this issue?
 * – Matthias

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

 *  [websupporter](https://wordpress.org/support/users/websupporter/)
 * (@websupporter)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/missing-tracking-script-on-cached-pages/#post-10198777)
 * Hi [@matthiaspabst](https://wordpress.org/support/users/matthiaspabst/),
    yes,
   I think I see, what you mean. I have opened an issue, where we can track this
   problem on Github: [https://github.com/pluginkollektiv/statify/issues/84](https://github.com/pluginkollektiv/statify/issues/84)
 * Thanks for your hint.
 *  Thread Starter [Matze Pabst](https://wordpress.org/support/users/matthiaspabst/)
 * (@matthiaspabst)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/missing-tracking-script-on-cached-pages/#post-10198854)
 * Awesome! Thank you for your quick reply.
 *  Plugin Author [Patrick Robrecht](https://wordpress.org/support/users/patrickrobrecht/)
 * (@patrickrobrecht)
 * [8 years ago](https://wordpress.org/support/topic/missing-tracking-script-on-cached-pages/#post-10310370)
 * Hi Matthias,
 * we released the bugfix with today’s 1.6.1 release.
 *  Thread Starter [Matze Pabst](https://wordpress.org/support/users/matthiaspabst/)
 * (@matthiaspabst)
 * [8 years ago](https://wordpress.org/support/topic/missing-tracking-script-on-cached-pages/#post-10311769)
 * Hi Patrick,
 * thank you for fixing this. I can confirm that the problem is solved when using
   WP Rocket (and preloading) for caching. I didn’t had a chance to test it with
   Cache Enabler but I’m sure it works with this plugin as well.
 * Thanks again!
 * Cheers,
    Matthias

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

The topic ‘Missing tracking script on cached pages’ is closed to new replies.

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

## Tags

 * [caching](https://wordpress.org/support/topic-tag/caching/)
 * [Stats](https://wordpress.org/support/topic-tag/stats/)

 * 4 replies
 * 3 participants
 * Last reply from: [Matze Pabst](https://wordpress.org/support/users/matthiaspabst/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/missing-tracking-script-on-cached-pages/#post-10311769)
 * Status: resolved