Quantcast
Viewing all articles
Browse latest Browse all 19296

UnlockTheMind on "[Plugin: W3 Total Cache] W3TC, Google Tag Manager and cache querystrings incompatibility"

W3TC v1.3

We are using W3TC and a CloudFront CDN. In order to break the CDN cache we want to enable "Prevent caching of objects after settings change" which adds a querystring to the end of meadia, stylesheets and js files. This works great with everything except Google Tag Manager where is breaks the link.

Before:
http://www.googletagmanager.com/gtm.js?id=GTM-XXXX (google serve the script)

After:
http://www.googletagmanager.com/gtm.js?id=&73c454GTM-XXXX (404 because malformed ID)

The W3TC querystring is being added into the GTM ID rather than appended after it.

Is there a fix for this? Maybe some way to exempt that specific script from being querystringed?

http://wordpress.org/extend/plugins/w3-total-cache/


Viewing all articles
Browse latest Browse all 19296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>