This is done by adding the codes to two separate sections within your theme's configuration in the Magento Admin Panel.
Tracking Code (HEAD Section): Your primary script for real-time analysis.
NoScript Tracking Code (BODY Section): Your essential fallback for 100% coverage.
Important: After completing these steps, you must clear your Magento cache for the changes to appear on your live store.
Log in to your ClickSambo account.
Navigate to Account > Account Settings > Domain Tracking Setup.
Select your domain and copy both the Tracking Code (HEAD Section)
and the NoScript Tracking Code (BODY Section)
.
Log in to your Magento 2 Admin Panel.
On the left-hand menu, navigate to Content > Design > Configuration.
A grid will appear showing your store views. Find the theme you are currently using and click Edit in the "Action" column.
On the configuration page, you will add the two codes in two different sections:
Part A: Install the HEAD Code
Tracking Code (HEAD Section)
into this box.Part B: Install the BODY Code
NoScript Tracking Code (BODY Section)
into this box. (Note: This field correctly places the code before the closing </body>
tag).After pasting both codes, click the Save Configuration button at the top right of the page.
Navigate to System > Tools > Cache Management.
A yellow notification box will likely appear at the top of the page. Click the Flush Magento Cache button.
Ensure all cache types are green and valid.
Open any page of your live website in a new incognito browser window.
Right-click on the page and select "View Page Source".
Confirm the HEAD code: Search the code (Ctrl+F or Cmd+F) for cdn.clicksambo.com. You should find your script inside the <head> section.
Confirm the BODY code: Search again for ping.clicksambo.com. You should find your <noscript> code snippet located towards the end of the page, before the closing </body> tag.
Once you have confirmed both codes are present, your Magento 2 store is fully protected by ClickSambo.