Google Analytics Experiments - Where to place code

New Member
1 0 0

Hello all,


Looking for some quick help. I'm hoping to set up a Google Analytics experiment between my homepage and a landing page. Where is the best place to place the code?


If I put it in theme.liquid, will it then be through the whole site? And this that ok?


Thank you!

Shopify Partner
36 0 7

Assuming you will be tracking the result of the experiment on Google Analytics, place the code on the both the pages. Ideally within the theme. You should setup Goals in your GA to track conversions for both - home page as well the landing page, so that you can decide which page was performing better for you.

Hope this helps.

Vivek - Web Push Notifications for E-Commerce, Bloggers and More