Help Centre topics
Same-Origin Setup
Articles in this topic
- Set up with Cloudflare Workers1. In Cloudflare, go to: Compute & AI > Workers & Pages and create a new Worker.
- Setup with Nginx
- Set up with VercelCreate a file at api/metrics.js that acts as a proxy. The serverless function intercepts requests, extracts the real IP from the x-forwarded-for, and routes…
- Set up with Azure Front DoorFor sites using Azure Front Door as a CDN/reverse proxy, set up Same-Origin by creating a new origin and route in the Azure dashboard.
- Set up with AWS CloudFrontFor sites using AWS CloudFront, set up Same-Origin by creating a new origin, behavior, and Lambda@Edge function.
- Setup with Apache HTTP ServerFor Apache servers, configure mod_proxy as a reverse proxy for the sGTM container.
- Set up with Deno DeployFor sites hosted on Deno Deploy, create a serverless function that acts as a proxy for the sGTM container.
- Set up with NetlifyFor sites hosted on Netlify, use serverless functions to create the proxy.
- Set up with CaddyFor Caddy servers, add the reverse proxy configuration to your Caddyfile.
- How to testTrigger a pageview and confirm that the server container receives the requests.
- How to integrate Same-Origin in Google Tag ManagerAfter configuring the proxy on the server (Cloudflare or Apache), you need to update the configuration in GTM: 1. Open Google Tag Manager and access the web…
Still stuck? Talk to support.