# Install with a script tag (watch only)

> One line before </body> works on any site and shows you the visits. It does not block anything.

The script tag works on any site where you can edit the page template. It is **watch only**: it sees visits and never blocks. To enforce your block rules, use the [WooCommerce plugin](/docs/install-wordpress) or the [Cloudflare install](/docs/install-cloudflare).

## Steps

1. Sign in at [/login](https://tryostia.com/login) and add your store, or go through [/start](https://tryostia.com/start). Copy the tag shown for your store.
2. Paste it just before `</body>` on every page. Most sites have one shared footer or layout file for this.
3. Publish, then 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>
```

## Options

| Attribute | Values | What it does |
|---|---|---|
| `data-endpoint` | your store's endpoint | Where visits are sent. Leave it as given. |

The tag loads asynchronously and never blocks the page. If our service is unreachable, your page loads as normal.

## What the tag can and cannot see

The tag sees AI agents that open your pages in a browser, which is how browser-based agents such as ChatGPT agent and Claude in Chrome shop. Agents that only fetch the raw HTML and never run scripts are not seen by a tag. If your site is behind Cloudflare, the [Cloudflare install](/docs/install-cloudflare) covers both.

## Where to paste it

| Stack | File |
|---|---|
| Plain HTML | every `.html` page, before `</body>` |
| Next.js (App Router) | `app/layout.tsx`, inside `<body>` |
| Next.js (Pages Router) | `pages/_document.tsx`, before `</body>` |
| Remix / React Router | `app/root.tsx`, before `</body>` |
| Astro | your base layout, as `<script is:inline ...>` |
| Webflow, Squarespace, Wix | the site-wide custom code footer setting |


## Remove it

Delete the line and publish. Nothing else stays on your site.

Source: https://tryostia.com/docs/install-script-tag
