Because Shopify separates the main storefront from the secure checkout, this is a two-part process:
Storefront Protection: Adding code to your theme files (covers Home, Product, and Collection pages).
Checkout Protection: Adding code to your settings (covers the Order Status/Thank You page).
Log in to your ClickSambo account.
Navigate to Account > Account Settings > Domain Tracking Setup.
Select your domain.
Keep this tab open or copy both the Tracking Code (HEAD Section) and the NoScript Tracking Code (BODY Section) to a text file.
Create a Backup (Highly Recommended):
From your Shopify Admin, go to Online Store > Themes.
On your current live theme, click the three dots (...) menu and select Duplicate. This creates a safety backup before you edit any code.
Open the Code Editor:
Once the backup is complete, click the three dots (...) menu on your main theme again and select Edit code.
Locate the File:
In the file browser on the left, look under the Layout folder.
Click on theme.liquid to open the file.
Install the HEAD Code:
Find the closing </head> tag.
On a new line just before it, paste your Tracking Code (HEAD Section).
Install the BODY Code:
Find the opening <body> tag.
On a new line immediately after it, paste your NoScript Tracking Code (BODY Section).
Click Save.
You must add the codes manually in the settings to protect the final step of the purchase.
From your Shopify Admin, go to Settings (bottom left corner) > Checkout.
Scroll all the way down to the Order status page section.
Locate the text box labeled Additional scripts.
Paste BOTH codes into this box:
Paste the Tracking Code (HEAD Section) first.
Paste the NoScript Tracking Code (BODY Section) directly below it.
Click Save.
Verify the Storefront
Open your live store in a new Incognito/Private browser window.
Right-click on the homepage or a product page and select View Page Source.
Search (Ctrl+F/Cmd+F):
Find cdn.clicksambo.com inside the <head> section.
Find ping.clicksambo.com inside the <body> section.
Verify the Checkout (Recommended)
Place a test order on your store to reach the "Thank You" / "Order Status" page.
On this final confirmation page, right-click and select View Page Source.
Confirm that both tracking codes are present in the source code.
Once verified on both the storefront and the order status page, your Shopify store is fully protected.