Discrepancies with custom event tracking and Cloudflare proxy on sGTM

I have been working on migrating our analytics setup to server-side GTM using Stape to track custom user interactions, but I am running into a persistent issue with event delivery. On our gaming content website, users frequently trigger quick copy-to-clipboard actions and download button clicks, yet our GA4 server container seems to drop nearly a third of these interaction events during traffic spikes.

Along with the missing events, I noticed that our custom domain tagging URL routed through Cloudflare is intermittently throwing 403 errors on the transport URL, which seems to affect our client-side web container communication. I suspect our current caching or bot protection rules might be interfering with the Stape proxy, but I am not entirely sure if the problem lies in the request header forwarding or the server container configuration.

Has anyone experienced similar drop-offs with high-frequency click events, and what is the best way to debug whether the issue stems from our Cloudflare firewall settings or the sGTM client parser?

Hi,
First of all, you need to check whether the requests that are missing from GA4 are reaching the sGTM container. Since you are experiencing intermittent 403 errors, please check the Cloudflare logs and the sGTM Preview panel.

If the requests are being blocked by Cloudflare, they will not reach Stape, and based on the 403 errors, Cloudflare may be the source of the issue.

We have also had cases where Cloudflare blocked certain GA4 requests because of specific characters in the request parameters. In those cases, enabling the “Enhance Ad Block Protection” feature helped resolve the issue.