Each code has a distinct role, and its placement is critical for optimal performance.
| Role | Location | Best Practice | |
| Tracking Code (HEAD Section) | Your primary detection engine. It loads early to analyze visitor behavior and detect real-time threats. | Inside the <head>...</head> section. | Place it just before the closing </head> tag. |
| NoScript Tracking Code (BODY Section) | Your essential safety net. It guarantees tracking coverage even if a user has JavaScript disabled (a common tactic used by bots). | Inside the <body>...</body> section. | Place it immediately after the opening <body> tag. |
| Description | Why use this? | Action | |
| Option A: Built-in Tools (Recommended) | Most modern platforms (like Wix, Squarespace, and BigCommerce) have dedicated features labeled "Custom Code," "Script Manager," or "Code Injection." | It is the safest method and ensures the code persists even if you change your design theme. | Look for these settings in your admin panel and paste the codes into the corresponding "Head" and "Body/Footer" slots. |
| Option B: Theme Editing (Advanced) | If your platform does not have a code injection tool (common in WordPress or Shopify), you will need to edit your site's main template file. | Locate the file that controls your site-wide header (often named header.php or theme.liquid). | Paste the codes directly into the HTML following the placement rules above. |
For detailed, step-by-step instructions for your specific platform, please refer to our dedicated guides:
[How to Install ClickSambo with Google Tag Manager (GTM)]
Clear All Caches (Mandatory):
You must clear all website, server, or CDN (e.g., Cloudflare) caches. If you skip this, your changes may not appear to visitors.
Verify Installation:
Open your live website in a new Incognito/Private window.
Right-click and select View Page Source.
Search for cdn.clicksambo.com to confirm it is inside the <head>.
Search for ping.clicksambo.com to confirm it is near the opening <body> tag.
Protect your marketing budget and increase revenue with ClickSambo
Start TrialAnalyze your account and uncover losses caused by fake clicks.
Get Free Report
Reach us easily via WhatsApp, live chat, or email.
Contact UsJoin our partner program and turn ad-fraud protection into a scalable, recurring revenue stream.