Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19292

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

$
0
0

My solution with the google tag manager code was to modify the google script slightly so that W3TC didn't recognize a path to a .js file.

I changed this: j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;

to this: j.src='//www.googletagmanager.com/gtm.'+'js?id='+i+dl;

And then W3TC doesn't try and append it's querystring right after the id= and mess up the GTM ID necessary to call the script for our account.


Viewing all articles
Browse latest Browse all 19292

Trending Articles



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