Install Foresite on Shopify
- In Shopify admin, go to Online Store → Themes.
- On your current theme, click ⋯ → Edit code.
- Open
layout/theme.liquidand paste your Foresite line just before</head>. - Click Save.
This covers your storefront. Shopify's checkout pages don't run theme code, so to count purchases send a custom event from your order confirmation or use Shopify's custom pixels.