Taggrs Integrationa
Taggrs is a server-side solution that allows you to deploy your GTM container in a more efficient way, improving performance and reducing the impact of ad blockers.
Create a Taggrs Account
If you do not have one, create a Taggrs account here. Once you have an account, follow the steps below to set up your server-side container.
Create a Taggrs Server Side Container

- At left menu, click on Containers
- Click on + Add container
- Set your Company Name
- Set your website index URL (e.g.,
https://yourdomain.com) - Select the nearest Server location
- Click on Continue to proceed with the setup.

- Set your Container configuration code
- Set a subdomain for your server-side container (e.g.,
metrics.yourdomain.com) - Be sure that Use a TAGGRS subdomain instead is disabled
- Click on Create container to create the container.
Info
- To prevent detection by advanced ad blockers that often target subdomains like gtm, stape, taggrs, or similars, consider using different, less predictable subdomains for your integration.
- The Domain name is the value to set up on module configuration GA4 tab, Server Container URL input field.
Setup Custom Domain

- Set up the A records and add it to your domain DNS settings.
- Click on Validate container and wait for confirmation.
Info
The Verification process may take a few minutes, depending on your DNS provider.
Server Container URL
The Server Container URL is crucial for sending events to your server-side container and enabling the Tag Assistant feature in GTM, which helps with debugging and testing your site.
Based on the previous configuration screenshot, the Server Container URL for this example is: https://metricstp.reactioncode.com
Set this URL in the module configuration GA4 tab, Server Container URL input field, and in the GTM Container Settings in the Server Container URLs input field.
Info
Make sure the URL does not end with a slash. Both the GA4 Module Configuration and GTM Container Settings must use the exact same Server Container URL.
Optimize your container
Taggrs provides features to load the GTM container in a more efficient way.
Enhanced Tracking Script
Improves performance and reduce the impact of ad blockers.

- In your container panel, select Get Started panel.
- Select Optimize section.
- Click on Enhanced Tracking Script.

- Click on Advanced configuration.
- Enable option Extend cookies.
- Enable option Anti ad blocker.
- Set up your GTM Web container ID.
- Copy the Head code and paste it on any editor to fetch the configuration.
- You can skip the Body code as it is not needed for this module.
Module Configuration From Taggrs Code
Warning
The Taggrs code below is only an example do not use it, you must create your own code in your Taggrs account.
<!-- Server Side Tracking by Taggrs.io -->
<script>
(function(w,d,s,l,i){
w[l]=w[l]||[];
w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});
var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
j.async=true;
j.src='https://metricstgrs.reactioncode.com/POpiGHQ1la.js?tg='+i+dl;
f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','PKB3HQ3');
</script>
<!-- End Server Side Tracking by Taggrs.io -->
Next parameters are located in module configuration Tag Manager tab.
- Script URL: https://metricstgrs.reactioncode.com/POpiGHQ1la.js
- Query ID Parameter: tg
- Override Tracking ID: PKB3HQ3
Data Enricher
Data Enricher is a Taggrs feature that allows you to add additional data to your tracking events, such as user agent, IP address, and other information that can help you better understand your users.

- In your Taggrs dashboard, click over Get Started.
- Select Enrich tab.
- Click on Data Enricher feature.

- Active the Data Enricher feature.
- Verify that all Items are enabled.