Cloudflare and Google Tag Manager compatibility problems
-
I have been optimising my WordPress installs through the following workflow:
1. Light homepage, post and page structure, restricting the use of widgets, plugins and excessive code content load per page.
2. Caching through W3C Total Cache
3. Image compression
4. CDN through CloudflareThe problem happened with this page Criticality.co. After using Cloudflare which offers caching and security tools I noticed that the Tag Assistant was only finding the Analytics code but not the Tag Manager which it usually did. This problem occurred due to the Cloudflare Optimization settings, when using the switching to the CDN+Full optimisations the Tag Manager jscript will stop working and wont fire the Tag Manager.
I solved this issue by going to Cloudflare Settings and in Performance Profile switch to CDN only or CDN + Basic Optimisation then Purge Cache. This way your Tag Manager will fire without any problem.
The topic ‘Cloudflare and Google Tag Manager compatibility problems’ is closed to new replies.