Resilient script loader¶
In which plan is this feature available?
This feature is available to all customers (including the free Starter plan).
Ad blockers maintain lists of known tracking domains and script paths. When a browser requests the Google Tag Manager script from googletagmanager.com/gtm.js, ad blockers recognize and block it.
The resilient script loader is a feature in Usercentrics Server-Side Tracking that serves the Google Tag Manager script from a custom first-party path and optionally encrypts Google Analytics measurement requests, to reduce the impact of ad blockers on Google Tag Manager and Google Analytics scripts and API requests.
Common use cases¶
This feature improves data collection volume when the user grants consent through the CMP but there are ad blocking systems in the browser or other levels of the network that ignore this explicit consent decision.
This feature enables customers to improve data collection resilience and marketing attribution accuracy by:
-
Loading the Google Tag Manager script from a custom path
-
Encrypting Google Analytics measurement requests
How to use this feature¶
To use this feature, follow these steps:
-
In Usercentrics Server-Side Tracking, select the sGTM Containers tab on the left menu.
-
Under Your containers, select the sGTM container where you want to use the resilient script loader.
-
Select the Features tab.

-
Turn on the Enable Resilient Script Loader toggle.

-
Set your configuration settings: the domain where you want to use it, your Web Google Tag Manager ID, and whether you want to also enable encryption for Google Analytics requests.

-
Click Generate Resilient Script Loader. As a result, the UI shows the code snippets that you need to add to your website.

-
After you update your website, open Preview mode for your web container to verify that tags load and fire as expected.