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.