> ## Documentation Index
> Fetch the complete documentation index at: https://docs.festtide.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Script tag

> One line in your page's head. Works on any site.

The script tag works on every site, whatever it is built with. Add one line to the `<head>` of
every page.

```html theme={null}
<script
  async
  src="https://cdn.festtide.com/r/v1/loader.js"
  integrity="sha384-…"
  crossorigin="anonymous"
  data-site="site_…"
  data-consent="auto"
></script>
```

Copy the exact line from [the dashboard](https://app.festtide.com) (**Sites → your site →
Install**): it carries your real site id and the `integrity` hash for the current runtime. The line
above has placeholders.

## Attributes

| Attribute | Required | Values |
| - | - | - |
| `async` | Yes | Loads without blocking the page. |
| `integrity`, `crossorigin` | Yes | Subresource Integrity: the browser refuses the file if it was changed in any way. |
| `data-site` | Yes | Your site id, `site_…`. |
| `data-consent` | No | `auto` (default), `wait` or `off`. See [Consent](https://docs.festtide.com/consent.md). |
| `data-platform` | No | `script` (default), `wordpress`, `shopify`, `nextjs`, `expo` (for the app SDK, coming soon). Set by the plugins; leave it out. |
| `data-adapter` | No | How the runtime fits your theme: `auto` (default, detected), `css-vars`, `wp-block-theme`, `elementor`, `astra`, `kadence`, `generatepress`, `shopify-dawn`, `none`. |

## What it does, and never does

* **Never blocks rendering.** The script is `async`; your page paints first.
* **Fails open.** If the timeline is late, invalid or blocked, your page simply looks as it does
  without Festtide. The last good timeline is kept, so a brief outage changes nothing visible.
* **Gives up after 1.5 seconds.** A slow network never leaves a banner popping in late.
* **Leaves checkout alone.** Paths starting with `/checkout`, `/cart`, `/my-account` and `/wp-admin`
  are excluded by default. Add more exclusions per campaign in the studio.
* **Loads only from one origin.** The runtime, effects and images come from `cdn.festtide.com`, and
  every text is set as plain text, never run as code.

## Content Security Policy

If your site sends a Content Security Policy, allow `cdn.festtide.com` in `script-src`, `connect-src`
and `img-src`.

## Check the install

Open any page of your site in a browser, then look at **Sites** in the dashboard: the install
status turns green and shows when the runtime was last seen.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.