Cherry Seed

How do caching plugins affect tracking?

Quick Answer

Caching plugins can break tracking by serving stale HTML that contains outdated or missing tracking snippets, by minifying and combining JavaScript files which can corrupt tag manager code, or by stripping inline scripts during HTML optimization. Page caching can also prevent dynamic data layer variables from updating correctly.

Full Answer

Caching plugins and tracking: Page caching issues:

  • Serves old HTML with outdated tracking code
  • Updated configuration not reflected
  • Dynamic data (user ID) becomes static Object caching issues:
  • Plugin settings cached in memory
  • Configuration changes don't apply
  • Requires cache flush after updates CDN caching issues:
  • CDN serves old JavaScript files
  • New tracking code not delivered
  • Cache TTL delays updates for hours Common symptoms:
  • Tracking works after cache clear, breaks again
  • Old tracking ID firing instead of new one
  • Some...

Sources

Programmatic Access

GET https://seresa.io/wp-json/cherry-tree-by-seresa/v1/seeds/113

Cite This Answer

Cherry Tree by Seresa - https://seresa.io/seed/common-tracking-problems/tracking-broke-s7