Updated Date:
You need two codes: the HEAD code (the main tracking script) and the BODY code (a NoScript fallback). For most users, the plugin method (Method A) is the safest and easiest option.
Log in to your ClickSambo dashboard.
Go to Account Settings > Domain Tracking Setup.
Select your domain and keep this tab open; you will copy the HEAD and BODY codes from here.
The safest way to add code without editing theme files.
In your WordPress admin, go to Plugins > Add New.
Search for WPCode – Insert Headers and Footers, install it and activate it.
Go to Code Snippets > Header & Footer.
Paste the HEAD code into the Header box and the BODY code into the Body box.
Click Save Changes.
Only if your theme has built-in fields for custom scripts.
Go to Appearance > Customize.
Look for a section such as "Theme Settings", "Custom Code" or "Scripts".
Paste the HEAD code into the header field and the BODY code into the body field.
Publish your changes. If your theme only has a header field, use Method A instead.
If you already use Google Tag Manager, follow our GTM installation guide instead of the methods above.
Warning: Only for advanced users. Always use a child theme so your changes are not lost when the theme updates.
Go to Appearance > Theme File Editor.
Select your child theme and open header.php.
Paste the HEAD code just before the closing </head> tag.
Paste the BODY code just after the opening <body> tag.
Click Update File and check that your site still loads correctly.
In your caching plugin (e.g., WP Rocket, LiteSpeed Cache, W3 Total Cache), purge all caches.
If you use Cloudflare or another CDN, clear that cache too.
Open your website in an incognito/private window.
Right-click the page and select View Page Source.
Press Ctrl+F (Cmd+F on Mac) and search for cdn.clicksambo.com (HEAD code) and ping.clicksambo.com (BODY code).
Both codes found? The tracking codes are installed correctly. Make sure your Google Ads account is connected as well, so ClickSambo can protect your campaigns.
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.