Prerequisites:
Active Google Tag Manager setup on your website.
Access to your GTM container with publish permissions.
Installation Steps:
1. Copy Your ClickSambo Tracking Code:
a. Log in to your ClickSambo account.
b. Navigate to: Settings > Account Settings > Domain Tracking Setup.
c. In the "Install Tracking Code" area, click "Copy the Code" to copy the entire JavaScript (<script>...</script>) snippet.
2. Create a New Tag in GTM:
a. In your GTM account, select the correct container for your website.
b. Go to Tags > New.
c. Name your tag clearly (e.g., "ClickSambo - Main Tracking").
d. Click Tag Configuration and choose "Custom HTML" as the tag type.
e. Paste the ClickSambo tracking code (copied in Step 1) into the HTML field.
3. Configure the Trigger in GTM:
a. Below Tag Configuration, click Triggering.
b. Select the "Initialization - All Pages" trigger. This is recommended to ensure the script loads early.
* (Note: If "Initialization - All Pages" is unavailable or causes issues, "All Pages - Page View" can be an alternative.)
c. Click Save for the tag.
4. Publish Your GTM Container:
a. In the main GTM interface, click "Submit".
b. You can add a version name (e.g., "Added ClickSambo Tracking") and description (optional).
c. Click "Publish" to make the changes live.
5. Verify the Installation:
a. GTM Preview Mode: Use GTM's "Preview" mode on your website to check if the ClickSambo tag fires successfully.
b. Developer Tools (Recommended): After publishing, open your website and use your browser's developer tools (Network tab) to confirm that the script from cdn.clicksambo.com is loading. (Viewing page source is less reliable for GTM installations).
c. ClickSambo Dashboard: After some time and live traffic to your site, check your ClickSambo dashboard for tracking activity.
Important: Using GTM helps manage your ClickSambo script efficiently. Always publish your GTM container for changes to take effect on your live site.