What is the name of the domain?
Multiple
What is the issue you’re encountering
Proxy Forwarding is not working as expected
What steps have you taken to resolve the issue?
Client-side analytics are virtually useless these days, as ad blockers or tools like PiHole block the corresponding analytics. That’s all fine and understandable - and I use them privately too.
Nevertheless, I currently have the task of integrating the relevant analytics - but server side. I have written a proxy endpoint that first sends all CF /rum analytics to its own endpoint and then proxied to Cloudflare.
It works almost flawlessly; the only problem is the forwarding of the origin, i.e. the IP address.
Cloudflare Analytics seems to ignore the X-Forwarding-To header, so all requests from Cloudflare’s point of view originate from a single user - my servers.
Is there another way to tell Cloudflare that it is an Analytics request from a forwarding?
PS: why doesn’t Cloudflare have a built-in mechanism for a custom domain for the analytics requests?
That’s a no-brainer with all the DNS features Cloudflare already has
What feature, service or problem is this related to?
Web Analytics