Updated Date:
You need two codes: the HEAD code (the main tracking script) and the BODY code (a NoScript fallback). In Shopify, you add both to your theme's theme.liquid file, which covers your home, product, collection and other storefront pages.
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.
In your Shopify admin, go to Online Store > Themes.
Back up first (recommended): click the … menu on your live theme and select Duplicate.
Click the … menu on your live theme again and select Edit code.
Under the Layout folder, open theme.liquid.
Find the closing </head> tag and paste the HEAD code on a new line just before it.
Find the opening <body> tag and paste the BODY code on a new line right after it.
Click Save.
Shopify's checkout, Thank you and Order status pages do not use theme.liquid, and Shopify has retired the Additional scripts field that was used to add custom code there. You do not need to add the ClickSambo codes to these pages: visitors from your ads land on your storefront pages, which the theme installation already covers.
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) 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.
Protect your marketing budget and increase revenue with ClickSambo
Start TrialAnalyze your account and uncover losses caused by fake clicks.
Get Free Report
Reach us easily via WhatsApp, live chat, or email.
Contact UsJoin our partner program and turn ad-fraud protection into a scalable, recurring revenue stream.