# Set up in one line.

> Add one script tag to your site, or give a prompt to your coding agent. Pick your stack: Next.js, Shopify, WordPress, Webflow, Lovable and more.

URL: https://mirafive.io/install

Add one script tag to your site, or give a ready prompt to your coding agent. Then ask in plain words which visits, ads and channels bring sales.

Script tag

```
<script async src="https://cdn.mirafive.io/s.js" data-key="pk_live_…" crossorigin="anonymous"></script>
```

Prompt for your coding agent

```
Add the MIRA FIVE analytics script to my website acme.example.

Add the tag to the <head> of every page, ideally once in the shared layout or template:

<script async src="https://cdn.mirafive.io/s.js" data-key="pk_live_…" crossorigin="anonymous"></script>

Rules:
- Use the values exactly as given; do not change data-key.
- Load it once on every page, not inside a component that renders more than once.
- Without the visitor's consent it stores nothing on the device; do not add cookies or storage for it.
- If the site sends a Content-Security-Policy, allow script-src https://cdn.mirafive.io and connect-src https://collect.mirafive.io.

When it is deployed, open https://acme.example once in a browser so Mira can confirm the first visit.
```

The example shows `acme.example` and a key that starts with `pk_live_`. The app writes both for your site.

## Which stack do you use?

Each page has the exact prompt that the app gives for that stack, and where the line goes.

### Code

- [Next.jsapp/layout.tsx](https://mirafive.io/install/nextjs)
- [Nuxtnuxt.config.ts](https://mirafive.io/install/nuxt)
- [AstroShared layout](https://mirafive.io/install/astro)
- [SvelteKitsrc/app.html](https://mirafive.io/install/sveltekit)
- [React Router / Remixapp/root.tsx](https://mirafive.io/install/react-router)
- [Gatsbygatsby-ssr.js](https://mirafive.io/install/gatsby)
- [Viteindex.html](https://mirafive.io/install/vite)
- [Static HTMLEvery page's head](https://mirafive.io/install/html)

### Site builders

- [WordPressfunctions.php](https://mirafive.io/install/wordpress)
- [Shopifytheme.liquid](https://mirafive.io/install/shopify)
- [WebflowCustom code](https://mirafive.io/install/webflow)
- [FramerCustom Code](https://mirafive.io/install/framer)
- [WixCustom Code](https://mirafive.io/install/wix)
- [SquarespaceCode Injection](https://mirafive.io/install/squarespace)

### AI app builders

- [Lovableindex.html](https://mirafive.io/install/lovable)
- [Boltindex.html](https://mirafive.io/install/bolt)
- [v0app/layout.tsx](https://mirafive.io/install/v0)

## What does the script do on my site?

Size

The script is under 3 KB.

Loading

It loads with async, so it never holds up your page.

Cookies

It sets no cookie. It stores nothing on the visitor's device without statistics consent.

IP address

The IP address is never stored.

Security policy

If the site sends a Content-Security-Policy, allow script-src https://cdn.mirafive.io and connect-src https://collect.mirafive.io.

What a setup collects, and why, decides whether it is lawful. A tool does not decide it.

## Start with one line.

Create your account, then add the line.

[Try it free](https://app.mirafive.io/login)
