Add tracking script from other page

Solved
Darek1
Tourist
3 0 1

Hi!

I am using Brooklyn theme on my store chiarawear.com

I am going to start a partnership with a fashion recommendation engine/website. I will pay them for the traffic that comes in through their website and a % from sold positions. They gave me a .js script to add to all my pages before </body> that will track the traffic for them. 

Not sure where to add this script? 

 

0 Likes
g33kgirl
Shopify Partner
223 59 71

Go to Themes -> Edit code -> Layout -> theme.liquid. If you scroll to the end of the file, you will see the </body> tag. Add the code just before the </body> tag.

If you found my answer helpful, please LIKE and ACCEPT.
buymeacoffee.com/g33kgirl ☕
If you're not comfortable with code, please modify code files at your own risk.
Do NOT give out your passwords unless absolutely necessary.
Darek1
Tourist
3 0 1

Thanks a lot for your quick reply! Will that be added to all the pages then? I assume its stupid question, still learning  

0 Likes
g33kgirl
Shopify Partner
223 59 71

This is an accepted solution.

Yes, it will be added to all the pages.

If you found my answer helpful, please LIKE and ACCEPT.
buymeacoffee.com/g33kgirl ☕
If you're not comfortable with code, please modify code files at your own risk.
Do NOT give out your passwords unless absolutely necessary.