# Install Foresite on Shopify

1. In Shopify admin, go to **Online Store → Themes**.
2. On your current theme, click **⋯ → Edit code**.
3. Open `layout/theme.liquid` and paste your Foresite line just before `</head>`.
4. Click **Save**.

This covers your storefront. Shopify's checkout pages don't run theme code, so to count purchases send a [custom event](https://foresite.dev/docs/custom-events) from your order confirmation or use Shopify's custom pixels.
