The TAGGRS Enhanced Tracking Script is designed to mask the GTM script and extending cookie lifetimes for browsers using new ITP settings, ensuring you capture more reliable analytics data, even in the presence of ad-blockers and privacy-focused browsers like Safari. This guide walks you through the easy implementation of this script, so you can quickly improve the reliability of your tracking across all major browsers.
In the Advanced settings of the TAGGRS Dashboard, select:
- Extend cookies: Extends cookie lifetimes for browsers with ITP (e.g. Safari).
- Anti-adblocker: Renames the GTM script with another name (containerid.js) to avoid detection by ad-blockers (enabled by default).
1. Go to Google Tag Manager and navigate to the web container.
2. Copy the web container ID.
3. Enter the ID in the TAGGRS Dashboard to generate the Enhanced Tracking Script.
Head code: Place the generated script as high as possible in the <head> of your website.
Body code: Place the generated script as high as possible in the <body> of your website. These scripts replace the standard GTM script.
In case you use the Enhanced Tracking Script without Anti-Adblocker and Extend Cookielifetime, continue to the following steps:
Go to your Server Container in Google Tag Manager and copy the Server Container ID.
1. Go to the menu on the left and navigate to Clients.
2. Click New to create a new client.
1. Give the new client a name, for example, Google Tag Manager.
2. Click Client Configuration and select Google Tag Manager Web Container as the client type.
3. Under Allowed Container IDs, insert the previously copied Server Container ID.
4. Also add the Web Container ID (client-side) that you used in the TAGGRS dashboard for the Enhanced Tracking Script.
5. Make sure Enable region specific settings is disabled.
6. Leave Priority set to 0.
Save your settings, submit, and publish the updated containers to activate the Enhanced Tracking Script.
Expert insight: The use of the Enhanced Tracking Script does not increase the differences between client side tagging and server side tagging, but ensures that both increase in quantity.