Cloudflare APO is blocking Google tags from firing. GA4 data now empty

What is the name of the domain?

lip-sunglasses.com

What is the error number?

no error number

What is the error message?

no error message

What is the issue you’re encountering

APO was deployed 1 week ago. Recieved message from our SEO expert that GA4 is no longer recording data from visitors to all pages that are cached via Cloudflare Cache Rules. Investigated this and discovered that Google Tags are not firing for all pages that are cached. I have tested the theory that it is APO is the culprit by simply turning on developer mode. Everything works 100% normal. So I can use APO optimisations but it comes at the expense of our site analytics. This is obviously not fit for purpose and a bit of a joke. Rocket loader is not implemented and I have checked in the source code for all cached pages that type='text/javascript", so Rocket Loader is not the issue and is disbaled in any event. Run out of ideas of how to resolve this

Hey,

I understand Cloudflare APO has its issues—I’ve been using it for a while now, so I’m familiar with both the pros and cons. However, based on my experience as a fellow user, I can say that something else must be happening alongside APO. I’m not saying APO is completely faultless, but it doesn’t seem like the sole cause of the problem. Otherwise, many others, including myself, would be experiencing the same issue.

How are you deploying the tags?

Hey Josh, thanks for adding your comment. The Tags are deployed by Google Tag Manager, and the container is deployed by GTM4WP which is a highly regarded wordpress plugin which places the GTM container on the website. The GTM4WP plugin has been working flawlessly for us for 7-8 years. I have upgraded to the Pro plan to get something resembling support from Cloudflare, but I accept your point that there may be something else that may be causing the Tags to not fire.

This topic was automatically closed after 15 days. New replies are no longer allowed.