Skip to main content
If you prefer not to modify your storefront templates directly, you can load the Experro Analytics SDK via Google Tag Manager (GTM). This is convenient for teams that manage scripts centrally through GTM, though note that tag managers can be blocked by some ad blockers.

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

  1. Sign in to GTM
    Go to tagmanager.google.com, and open the appropriate Account and Container (Workspace) for your site.
  2. Create a new Tag
    • In the left-hand navigation, click Tags.
    • Click NewTag Configuration.
    • Choose Custom HTML as the tag type.
  3. Add the Experro SDK snippet
    In the HTML text area, paste the Experro SDK snippet, for example:
    <script defer src="https://experro-pov.myexperro.com/experro-analytics-library/CUSTOM_JS_SDK_NAME.js"></script>
    
    Adjust the configuration values (YOUR_TENANT_ID, YOUR_WORKSPACE_ID, etc.) to match your environment.
  4. 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.
  5. Create a Trigger
    • In the left-hand navigation, click TriggersNew.
    • 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.
  6. 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).
  7. Publish the container
    • Click Submit → add a version description if desired → Publish.
Once published, GTM will load the Experro Analytics SDK on every page where the trigger conditions are met.
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.