How can we help?

Installing ClickSambo Tracking Code on Magento 2

Updated Date:

How to Install ClickSambo on a Magento 2 Website

To protect your Magento 2 store, install both ClickSambo tracking codes on every page.

You need two codes: the HEAD code (the main tracking script) and the BODY code (a NoScript fallback). In Magento 2, you add both in your theme's design configuration in the Admin Panel.

Important: After saving, flush the Magento cache so the changes appear on your live store.

Step 1: Get Your Tracking Codes

  1. Log in to your ClickSambo dashboard.

  2. Go to Account Settings > Domain Tracking Setup.

  3. Select your domain and keep this tab open; you will copy the HEAD and BODY codes from here.

Step 2: Add the Codes in Design Configuration

  1. Log in to your Magento Admin Panel.

  2. Go to Content > Design > Configuration.

  3. Find the store view your live store uses (or the Global row) and click Edit.

  4. Expand HTML Head and paste the HEAD code at the end of the Scripts and Style Sheets field.

  5. Expand Footer and paste the BODY code into the Miscellaneous HTML field.

  6. Click Save Configuration.

Step 3: Flush the Cache

  1. Go to System > Tools > Cache Management.

  2. Click Flush Magento Cache.

If you use Varnish or a CDN, purge that cache as well.

Step 4: Verify the Installation

  1. Open your website in an incognito/private window.

  2. Right-click the page and select View Page Source.

  3. 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.

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.