How can we help?

Installing ClickSambo Tracking Code on a WordPress Based Website

Updated over 2 months ago

Installing ClickSambo Tracking Code on WordPress

Install the ClickSambo tracking code site-wide on your WordPress website to monitor visitors and enable ad protection.


First: Copy Your ClickSambo Code
Log in to your ClickSambo account and accurately copy your HTML/JavaScript tracking code snippet.

Step 1: Choose an Installation Method
A. Plugin (Recommended for Most Users)
1. In your WordPress Admin, go to Plugins > Add New Plugin.
2. Search for a plugin like "WPCode – Insert Headers and Footers" or "Header Footer Code Manager." Install and Activate it.
3. Access the plugin's settings (often under "Settings," its own menu item, or e.g., "Code Snippets > Header & Footer" for WPCode).
4. Paste your ClickSambo code snippet into the section labeled Header (or "Scripts in Header").
5. Save Changes in the plugin.

B. Theme's Built-in Options
1. In WordPress Admin, go to Appearance > Customize.
2. Explore Customizer sections for options like Theme Settings, Custom Code, Integration, or Scripts (exact names vary by theme).
3. If you find a field for adding code to the HTML <head> or header, paste your ClickSambo code there.
4. Publish or Save Changes.

C. Google Tag Manager (GTM) (Only if GTM is already set up on your site)
1. In your GTM account, create a New Tag (e.g., "ClickSambo Tracking").
2. For Tag Configuration, choose Custom HTML and paste the ClickSambo code.
3. For Triggering, select Initialization - All Pages (recommended) or All Pages (Page View).
4. Save the tag, then Submit and Publish your GTM container.

D. Editing Theme Files (Advanced - Use a Child Theme!)
* Warning: Advanced users only. Crucially, always use a Child Theme to prevent your changes from being lost when the parent theme updates.
1. In WordPress Admin, go to Appearance > Theme File Editor (or use FTP/SFTP if disabled).
2. Select your Child Theme from the dropdown menu.
3. Find and click on the Theme Header (header.php) file.
4. Carefully paste the ClickSambo code snippet just before the closing </head> tag.
5. Click Update File. Check your site for errors immediately.

Step 2: Clear All Caches
After adding the code, clear all WordPress caching plugins (e.g., LiteSpeed Cache, WP Super Cache, W3 Total Cache) and any server-level or CDN caching (like Cloudflare).

Step 3: Verify Installation
Visit your website. Check your ClickSambo dashboard to see if it recognizes the code as active (this may take some time).
Alternatively, use your browser's developer tools (F12 > Elements/Sources tab) to check if the ClickSambo script is present in your pages' HTML source.

Did this answer your question?

Add New Domain

Calculate Saving

Fake Clicks
Cost Per Click(CPC)
Saving
12
X
$ 33