Method 1: Using the data-gtm attribute in the embed script
This method is the most straightforward and is recommended for most setups. You add your GTM Container ID (which looks likeGT-XXXXXXXXX, G-XXXXXXXXX, or AW-XXXXXXXXX) directly to the Claimr embed script.
1
Find your GTM Container ID
- Log in to your Google Tag Manager account.
- Select the container you want to use for your Claimr widget.
- Your Container ID will be displayed prominently on the container’s overview page (e.g.,
GT-XXXXXXX).
2
Modify your Claimr embed script
Add the Replace
data-gtm attribute to your Claimr script tag, replacing "GTM-TAG" with your actual GTM Container ID:ORGANIZATION_NAME, CAMPAIGN_NAME, and CLAIMR_CONTAINER_ID with actual values.Method 2: Passing the GTM container ID in the URL
This method is useful if you can’t directly modify the embed script or if you need to dynamically change the GTM Container ID.- Find your GTM Container ID: (Same as Method 1)
- Construct the URL: Add the
gtmparameter to your Claimr campaign URL, replacing"GTM-TAG"with your actual GTM Container ID:
https://campaign with your actual Claimr campaign URL.
Verifying GTM integration
After implementing either method, you’ll need to configure your Claimr events within Google Tag Manager. This typically involves creating:- Triggers: These define when to fire a tag (e.g., when a specific Claimr event occurs).
- Tags: These send data to your analytics or marketing platforms (e.g., a Google Analytics 4 event tag).
- Variables