# Install the script

> Add one script tag to every page that has an order form.

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

## Add the script tag

Replace `pk_xxxxx` with your publishable key, and place the tag anywhere in the page.

**Installation code**

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

The tag loads with `async`, so it does not delay the page. A second copy of the script on the same page does nothing.

## Attributes

- `data-key` (string, Required): Your store’s publishable key.
- `data-forms` (off): Stops the script from checking the order button. See [Integration modes](https://docs.antiro.io/sdk/modes).
- `data-lang` (string): The language of the messages a shopper can see: values starting with `ar` give Arabic, any other value gives French. By default the script uses the page’s `lang` attribute, then the browser’s language.

## Thank-you pages

If your thank-you page fires a purchase event, add the script there too, so that [ad pixel protection](https://docs.antiro.io/sdk/ad-pixels) covers that event.

## Check the installation

1.  Open your order page and the browser console.
2.  Run `Antiro.version`. It should return `3.0.0`.
3.  Click into a field of the order form, then run `Antiro.token()`. It should return a value, and the form should now hold the same value in a hidden `antiro_token` field.

If the value stays empty, check `data-key` and the [allowed domains](https://docs.antiro.io/api-keys#allowed-domains) of your store.
