# Add the script

Paste one line on your website so clicks can be joined to forms, bookings and sales.

## The line

Copy your own line from **Settings, then Script**. It looks like this:

```html title="Your script line"
<script async src="https://YOUR-LINK-DOMAIN/t.js" data-key="mk_YOUR_KEY"></script>
```

The `mk_` key is not a secret. It only says which workspace the page belongs to.

## Steps

1. **Copy the line** from Settings, then Script.
2. **Paste it before** `</head>` on every page, and on your checkout and thank-you pages if you can edit them.
3. **Publish your site.**
4. **Press Check my site** in the app.

Your website tool may have its own page under [Site guides](/docs/sites/custom).

## What the check can say

| Result | Meaning | Do this |
|---|---|---|
| Found | The line is there once | Open the page once so we see a real visit |
| Not found | The line isn't in the page | Paste it, save and publish |
| Found more than once | Two copies can count twice | Remove the extra one |
| Site blocked our check | Your site refused our visit, or was slow | Open the page and look at its source yourself |

## What the script does

1. Reads the one-use `tm` code from the address.
2. Asks our server to claim it.
3. Saves a random visitor id, if [consent](/docs/install/consent) allows.
4. Takes `tm` out of the visible address.
5. Sends a page view.
6. Adds the visitor id to forms you mark, and to Calendly, Cal.com, Stripe, Typeform and Tally links.

It never reads passwords, card numbers, messages or hidden fields.

## Common errors

| Problem | Fix |
|---|---|
| A redirect drops the `tm` code | Keep address values when you redirect. See [Address cleaned](/docs/fix/address-cleaned) |
| A booking frame opens before the script | Put the line above the frame |
| Nothing is sent | Check that your site is on the allowed list, and that consent was given |
