However, to ensure our fallback NoScript
code works correctly, we will use a hybrid approach.
This guide will walk you through:
Installing the main Tracking Code (HEAD Section) using GTM.
Installing the NoScript Tracking Code (BODY Section) directly on your site (Recommended for 100% reliability).
Publishing and verifying the setup.
Prerequisites:
An active Google Tag Manager container installed on your website.
Access to your GTM container with "Publish" permissions.
Before you begin, copy both of your unique ClickSambo tracking codes.
Tracking Code (HEAD Section)
and the NoScript Tracking Code (BODY Section)
.In your GTM container, go to Tags > New.
Name your tag clearly (e.g., ClickSambo - Main Tracking (HEAD)).
Click Tag Configuration and choose Custom HTML as the tag type.
Paste your Tracking Code (HEAD Section) (the one starting with <script>...) into the HTML field.
Below the Tag Configuration, click Triggering.
Select the Initialization - All Pages trigger. This is the recommended trigger because it ensures our fraud detection script loads as early as possible on every page.
Click Save.
To ensure your NoScript
"safety net" code always works (especially against bots that disable JS), it must be added directly to your website's template.
Take the NoScript Tracking Code (BODY Section) that you copied in Step 1.
Edit your website's main theme or header template file.
Paste the NoScript code immediately after the opening <body> tag.
This ensures the fallback code is present on every page, regardless of a user's browser settings.
You must now verify that both codes are loading correctly.
Verify the GTM Tag:Use GTM's Preview mode. Navigate your website and confirm that your ClickSambo - Main Tracking (HEAD) tag "Fires" on each page you visit.
Verify the NoScript Code:Open your live website in a new incognito window.
Right-click and select "View Page Source".
Search (Ctrl+F) for ping.clicksambo.com. You must find the <noscript> code snippet located just after the opening <body> tag.
Once you have confirmed that the GTM tag fires and the NoScript code is visible in your page source, your installation is complete and your site is fully protected.