# Install GeoEngage on Shopify

> Add the GeoEngage tag to your Shopify theme's theme.liquid so rules can personalize every storefront page.

Every Shopify theme has one layout file, `layout/theme.liquid`, that wraps every storefront page. The tag goes there, once.

## Add the tag

1. In Shopify admin, open **Online Store → Themes**.
2. Next to your live theme, choose **⋯ → Edit code**.
3. Open `layout/theme.liquid` and paste the tag on the line straight after `<head>`:

   ```html title="layout/theme.liquid"
   <!-- GeoEngage — place in <head>, above your content.
        Do not add async/defer: the widget must run before the page paints. -->
   <script
     src="https://cdn.geoengage.app/ge.js"
     data-api-key="YOUR_API_KEY"
     data-require-consent="false"
   ></script>
   ```

4. Choose **Save**.

> [!NOTE]
> Shopify runs checkout itself and doesn't load theme code there, so rules can't change checkout pages. Every other storefront page is covered.

## Switching themes

The tag lives in the theme, not the store. If you publish a different theme later, or prepare a copy that isn't live yet, add the tag to that theme's `theme.liquid` too.

## Check it's working

Open your store in a private window, then follow [the checks](https://geoengage.app/docs/install#check-its-working).

---

Source: https://geoengage.app/docs/install/shopify
