Same-Origin Setup

Set up with Cloudflare Workers

1. In Cloudflare, go to: Compute & AI > Workers & Pages and create a new Worker.

2. Configure the Worker code to intercept requests on the chosen path (/metrics/) and route them to the sGTM server.

3. Add a Route mapping your sGTM URL to your domain.

4. Configure Configuration Rules with SSL set toFull.

5. Create a Request Header Transform Rule adding the header X-From-Cdn: cf-wascer.

6. Save and deploy.

Was this helpful?

Still need help?

Our team usually replies within 4 business hours.

Talk to support →