# Upgrade from v1

> Pages with the old tag keep working. Move to the new tag when you can.

This is one page of the Antiro docs (https://docs.antiro.io/upgrade-v1). Every page in one file: https://docs.antiro.io/llms-full.txt

## Old pages keep working

The file `a/v1/a.js` now loads the new script with the same key, so nothing breaks on pages that still carry this tag:

**The old tag**

```html
<script
  src="https://js.antiro.io/a/v1/a.js"
  data-key="pk_xxxxx"></script>
```

The old functions remain:

| Function | What it does now |
| --- | --- |
| `Antiro.init()` | Starts the script when the old tag has no key. Otherwise nothing. |
| `Antiro.track()` | Nothing. |
| `Antiro.check()` | Answers like `Antiro.decide()` once the script is running, and `allow` before that. |

## Move to the new tag

Replace the old tag with the new one, using the same key.

**The new tag**

```html
<script
  src="https://js.antiro.io/v2/antiro.js"
  data-key="pk_xxxxx"
  async></script>
```

Pages with the old tag run the [submit check](https://docs.antiro.io/sdk/modes#submit-check). If that does not suit your checkout, add `data-forms="off"` to the new tag.
