Shopify
1.Site analytics
- Open the site in Studio and copy the Embed snippet.
- In Shopify admin, open Online Store β Themes.
- Choose Edit code on the live theme.
- Open
theme.liquid(or the layout that wraps storefront pages). - Paste the snippet immediately before
</body>. - Save the theme.
- Load a storefront page and confirm a visit in Site Analytics.
For checkout or customer-account surfaces that use a different layout, repeat the paste in that layout only if you need those views measured.
2.Blog
- Open the site in Studio and go to Settings β Domain.
- Connect
blog.yourdomain.com. Studio shows the CNAME to add. - In Shopify admin, open Settings β Domains. If Shopify manages the domain DNS, add that CNAME there. If DNS lives at your registrar, add it there.
- Verify the domain in Studio.
- In the theme navigation, add a Blog menu item that links to
https://blog.yourdomain.com.