How can we help?

Installing Tracking Code on a WordPress Website

01/06/2025

How to Install ClickSambo on a WordPress Website

To fully protect your WordPress site, you must install both ClickSambo tracking codes into your site's template

To protect your site, you must install two tracking codes: the Head Code and the Body Code. We recommend using a plugin (Method A) as it is the safest and easiest method for most users. 

Step 1: Get Your Tracking Codes

Log in to your ClickSambo Dashboard.

Go to Account > Domain Tracking Setup.

Select your domain and keep this tab open. You will need to copy the HEAD Section Code and BODY Section Code.

Step 2: Choose Your Installation Method

Method A: Use a Plugin (Recommended)

The safest way to add code without editing theme files.

In your WordPress Admin, go to Plugins > Add New.

Search for and install WPCode – Insert Headers and Footers. Activate it.

Go to Code Snippets > Header & Footer in the left menu.

Paste your Tracking Code (HEAD) into the Header box.

Paste your NoScript Code (BODY) into the Body box.

Click Save Changes.

Method B: Use Theme Settings

Use this only if your theme supports custom scripts natively.

Go to Appearance > Customize.

Look for "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.

Method C: Google Tag Manager (GTM)

Do you use GTM? If you already use Google Tag Manager, do not use the methods above. Instead, please follow our Dedicated GTM Installation Guide.

Method D: Edit Theme Files (Advanced)

⚠️ Warning: Only for advanced users. Always use a Child Theme to prevent data loss during 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.

Step 3: Clear Your Cache

Crucial: After installation, you must clear your website cache to ensure the code loads for visitors.

Go to your caching plugin (e.g., WP Rocket, LiteSpeed, W3 Total Cache) and Purge All Caches.

If you use Cloudflare, clear that cache as well.

Step 4: Verify Installation

Open your website in an Incognito/Private window.

Right-click anywhere on the page and select View Page Source.

Press Ctrl+F (or Cmd+F) to search:

Search for cdn.clicksambo.com to find the Head Code.

Search for ping.clicksambo.com to find the Body Code.

If you see both codes, your protection is active!

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

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.