# Install on Shopify

> Watch visits with one tag in theme.liquid. Your rules apply on our app's pages; for full blocking, put the store behind Cloudflare.

On Shopify you can watch visits today and apply your block rules on our app's own pages. You cannot block agents on your theme pages from inside Shopify. Shopify serves those pages itself, and an app only reaches paths under `/apps/...`.

| What you want | How |
|---|---|
| See agent visits | The tag below (watch only) |
| Your block rules on the agent cart, product feed and store facts pages | The Shopify app, once it is in the App Store. A blocked agent gets a plain-text 403 there |
| Block agents on every page of the store | Put the store's domain behind Cloudflare and use the [Cloudflare install](/docs/install-cloudflare) |

Our Shopify app is not in the App Store yet. Until it is, the tag is the install.

## Steps

1. Sign in at [/start](https://tryostia.com/start), pick **Shopify** and add your store. Copy the tag.
2. In Shopify admin open **Online Store > Themes**. On your live theme click **...** then **Edit code**.
3. Open `layout/theme.liquid`, find `</body>` near the end and paste the tag on the line before it. Click **Save**.
4. Open your store once. [/app](https://tryostia.com/app) shows **Seeing traffic** when the first visit arrives.

```html
<script src="https://api.tryostia.com/s/<your-site-id>/a.js" data-endpoint="https://api.tryostia.com/s/<your-site-id>" data-holdout="0" async></script>
```


## When you change themes

The tag lives in the theme. If you publish a different theme, paste it there too.

## What the app will add

Once the app is live, installing it replaces the tag with a theme app embed (no code), creates the store for you, and adds order attribution and the reports page. We will email existing stores when it is available.

## Remove it

Delete the line from `theme.liquid` and save.

Source: https://tryostia.com/docs/install-shopify
