Prerequisites
- Access to your site’s GTM container (web)
- Your Experro Analytics configuration values (tenant, workspace, environment, channel, etc.)
Step-by-Step: Install the SDK via GTM
-
Sign in to GTM
Go to tagmanager.google.com, and open the appropriate Account and Container (Workspace) for your site. -
Create a new Tag
- In the left-hand navigation, click Tags.
- Click New → Tag Configuration.
- Choose Custom HTML as the tag type.
-
Add the Experro SDK snippet
In the HTML text area, paste the Experro SDK snippet, for example:Adjust the configuration values (YOUR_TENANT_ID,YOUR_WORKSPACE_ID, etc.) to match your environment. -
Configure tag advanced options
- Leave Support document.write unchecked/blank.
- Under Advanced Settings, set Tag firing options to Once per page.
- Leave other advanced settings at their defaults.
- Give your tag a descriptive name, for example:
Experro Analytics SDK.
-
Create a Trigger
- In the left-hand navigation, click Triggers → New.
- Click Trigger Configuration and choose DOM Ready (or All Pages if preferred).
- Leave other options as their defaults.
- Name the trigger, for example:
Experro SDK – DOM Ready.
-
Associate the Tag with the Trigger
- Go back to your Experro Analytics SDK tag.
- Under Triggering, select the trigger you just created (
Experro SDK – DOM Ready).
-
Publish the container
- Click Submit → add a version description if desired → Publish.
Note: Loading the SDK via GTM is convenient but can be affected by ad blockers or script restrictions. For maximum data quality and coverage, Script Injection is still recommended for production environments.
For direct installation guidance, see Load the SDK – Script Injection.