Google Tag Manager is one of the most popular and powerful tag management platforms available. However, due to its widespread use, it often faces challenges with ad blockers and privacy-related restrictions.
Google Tag Gateway offers an innovative solution to these challenges. It allows you to deploy Google tags through your own first-party infrastructure, hosted directly on your website’s domain. By acting as an intermediary between your website and Google’s services, the Gateway provides:
- Enhanced measurement capabilities
- Better resistance to ad blockers and Safari’s privacy protection
- Full control over your data flow

- Traditional GTM loads tags from Google’s domains, which can be blocked
- Server-side tagging typically operates behind a subdomain, which is easily detected by adblockers. This unique integration allows Edgee to improve these technologies and make them run at the edge.
- Edgee acts as a secure proxy between your site and GTM
- Your GTM container and events work exactly as before
- Advanced edge processing prevents ad blockers from detecting the tags
Getting Started
To integrate Google Tag Gateway into your Edgee project:- Open the Edgee console and navigate to your project’s Components.
- Select “Add a component” and choose
edgee/google-tag-gatewayfrom the list of available components. - Add your Google Tag ID.
- Choose your path prefix.
- Select the mode of the injection.
- Click Save.
Path Prefix

/gtm as a path prefix, all requests coming to www.yourdomain.com/gtm/something will be forwarded to your Google Tag Manager.
Automatic Tag Injection

Mode

- Safe: The Google Tag Manager will be injected into the website only when the user consent is
granted. - Strong: The Google Tag Manager will be injected into the website when the user consent is
pendingorgranted. - Always: The Google Tag Manager will be always injected into the website regardless of the user consent status.