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?