Download tracking discrepancies and 403 errors with Stape

I recently migrated our analytics infrastructure to server-side Google Tag Manager hosted via Stape to capture more accurate conversion metrics for software downloads. While standard pageviews appear to register initially, we have noticed a persistent discrepancy between our server logs and GA4 event counts on the website, particularly when tracking direct download button interactions across different browser environments.

Looking into the Stape live incoming logs, several conversion events return intermittent 403 errors or completely strip client hints whenever our custom subdomain routing is invoked during traffic spikes. On top of that, the Stape custom loader script occasionally conflicts with our existing Cloudflare caching rules, causing download click triggers in Web GTM to misfire or drop attribution parameters entirely.

Has anyone encountered similar header stripping or proxy caching conflicts when running Stape sGTM behind a CDN? I am wondering whether adjusting the Cookie Keeper settings or passing specific request headers through the proxy container is the standard fix for these dropped download payloads.

Hi,
Based on the information available, the issue is most likely related to your Cloudflare configuration, particularly its caching rules or proxy settings.

Unfortunately, Cookie Keeper won’t help resolve this type of issue, as it is designed to extend cookie lifetimes rather than address CDN configuration or request-handling problems.

At the moment, I also can’t see GTM loading on your website or any tracking events being triggered. Therefore, I’m unable to investigate the issue further or provide specific recommendations based on the current setup.

We recommend reviewing your Cloudflare configuration first. Once GTM is loading correctly, we’ll be in a better position to investigate the tracking discrepancies and determine the next steps.