How can we help?

Where to Place the Tracking Codes?

Updated Date:

Where Should I Place the ClickSambo HTML Tracking Codes?

To fully protect your website, install the two ClickSambo tracking codes on every page you want to monitor.

Each code has its own role, and where you place it matters.

Tracking code (HEAD section)

Role: Your main detection code. It loads early to analyze visitor behavior and detect threats in real time.

Where: Inside the <head> section. Place it just before the closing </head> tag.

NoScript tracking code (BODY section)

Role: Your safety net. It keeps tracking in place even when a visitor has JavaScript disabled, a common tactic bots use.

Where: Inside the <body> section. Place it immediately after the opening <body> tag.

How to Install the Codes on Your Website

The best way to add these codes to every page is a site-wide tool or template. Depending on your platform, you usually have two options:

Option A: Built-in tools (recommended)

Most modern platforms (like Wix, Squarespace and BigCommerce) have features labeled "Custom Code," "Script Manager" or "Code Injection." This is the safest method, and the codes stay in place even if you change your design theme.

Action: Find these settings in your admin panel and paste the codes into the matching "Head" and "Body" fields.

Option B: Theme editing (advanced)

If your platform doesn’t have a code injection tool (common in WordPress or Shopify), you need to edit your site’s main template file, usually the one that controls the site-wide header (often header.php or theme.liquid).

Action: Paste the codes directly into the HTML, following the placement rules above.

Platform-Specific Guides

Step-by-step instructions for popular platforms.

For detailed, step-by-step instructions for your platform, see our dedicated guides:

Final Checklist

After adding the codes, always complete these steps to make sure the installation is live:

Clear all caches (mandatory): You must clear all website, server and CDN (e.g., Cloudflare) caches. If you skip this, your changes may not reach visitors.

Verify the installation:

  1. Open your live website in a new Incognito/Private window.

  2. Right-click and select View Page Source.

  3. Search for cdn.clicksambo.com to confirm it is inside the <head> section.

  4. Search for ping.clicksambo.com to confirm it is right after the opening <body> tag.

Did this answer your question?
  • clicksambo-sad
  • clicksambo-neutral
  • clicksambo-happy
Partner Program

Ready to grow with ClickSambo?

Join our partner program and turn ad-fraud protection into a scalable, recurring revenue stream.

Apply to the program
close

ClickSambo support is available!

Whatsapp Sohbet
Customise Consent Preferences
Cookies
Cookies Other
Always Active

Other uncategorised cookies are those that are being analysed and have not been classified into a category as yet.

Cookies Advertisement

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

Cookies Analytics

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Cookies Performance

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.