How do I add tracking code or JavaScript to Shopify?
Here’s how to manually install your tracking code if you use Shopify. Generally speaking you shouldn’t need to do this, and we strongly recommend using the ClickMagick Shopify App instead:
If you do need to manually install tracking code, just follow these steps ...
Step 1 - Add your Click Tracking Code
You can get your Click Tracking code by clicking on “Website Code” from the Campaigns Tools Menu:
Inside Shopify, click on “Online Store”
Click on the three dots next to the current theme, followed by “Edit Code”
Under “Layout”, select the theme.liquid file and add the Click Tracking Code after the opening <head> tag.
Note: If you plan on organically getting traffic, you’ll want to use the Organic Click Tracking code instead of the above code. For more info, please check out the article below: