Google anlytics code in your online store has to be inserted in two separate places
- Online store, all pages before checkout
- Checkout
To insert google analytics code in your online store before checkout, follow these steps:
- Go to Dashboard > Store Design & Navigation > Template Preferences
- Click on Advanced Editor button. Advance template editor will open in new tab
- Click on the page called 'Layout' inside the section 'Layout'
- Insert google Analytics tracking code right before the </body> tag
- Click 'Save Changes'
The analytics code should now work on your website. But, the code is still not active on your checkout pages. To do that, follow below instructions
- Go to Dashboard > Settings > Seo & Google Analytics
- Click on 'Tracking code for checkout' in accordion
- Copy the code in the text field
- Hit save
- Go to google Analytics admin
- Click on 'Tracking Info'
- Add yourdomain.com and yourdomain.my39shop.com in Referral Exclusion List
You can learn more about referral exclusion on here.