This is done by adding two separate "Custom Code" snippets in your Wix Dashboard.
Tracking Code (HEAD Section): Your primary script for real-time analysis.
NoScript Tracking Code (BODY Section): Your essential fallback for 100% coverage.
Important Prerequisite:
To use the Custom Code feature, you must have a Wix Premium plan and a connected domain (e.g., your-site.com, not your-site.wixsite.com).
Tracking Code (HEAD Section)
and the NoScript Tracking Code (BODY Section)
.Part A: Install the HEAD Tracking Code
In your Wix Dashboard, navigate to Settings in the left-hand menu.
Scroll down to the Advanced section and click on Custom Code.
Click the + Add Custom Code button at the top right.
Configure the snippet as follows:Paste the code snippet here: Paste your Tracking Code (HEAD Section).
Name: Give it a clear name, like ClickSambo - Main Tracking (HEAD).
Add Code to Pages: Select All pages.
Place Code in: Select Head.
Click Apply.
Part B: Install the BODY NoScript Code
While still on the Custom Code page, click + Add Custom Code again.
Configure this second snippet with the following details:Paste the code snippet here: Paste your NoScript Tracking Code (BODY Section).
Name: Give it a clear name, like ClickSambo - NoScript Fallback (BODY).
Add Code to Pages: Select All pages.
Place Code in: Select Body - start. (This correctly places the code immediately after the opening <body> tag).
Click Apply.
By default, Wix may not enable new custom codes. On the Custom Code page, ensure that the toggles next to both of your new ClickSambo snippets are turned on (the toggle should be blue).
Click the Publish button in the top-right corner of your Wix Editor. Open your published website in a new incognito browser window. Right-click on any page and select the "View Page Source" option. Verify the HEAD code: Within the code, search for cdn.clicksambo.com
(using Ctrl+F or Cmd+F). You should find your script inside the <head>
section.
Verify the BODY code: Search again for ping.clicksambo.com
. You should find your <noscript>
code snippet immediately after the opening <body>
tag. Once you have confirmed that both codes are present in their correct locations, your Wix site is fully protected by ClickSambo.