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
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.
Step 2: Add the Codes in Design Configuration
Log in to your Magento Admin Panel.
Go to Content > Design > Configuration.
Find the store view your live store uses (or the Global row) and click Edit.
Expand HTML Head and paste the HEAD code at the end of the Scripts and Style Sheets field.
Expand Footer and paste the BODY code into the Miscellaneous HTML field.
Click Save Configuration.
Step 3: Flush the Cache
Go to System > Tools > Cache Management.
Click Flush Magento Cache.
If you use Varnish or a CDN, purge that cache as well.
Step 4: Verify the Installation
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) andping.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.