> ## 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.

# Consent

> Rendering never needs consent. Counting does, and data-consent decides how.

Festtide does two separate things on your pages:

* **Rendering** shows the banner, effect and colours. It needs no consent: it stores nothing personal
  and sets no cookies. The only thing kept in the browser is the last good timeline (your campaign
  data, nothing about the visitor), so a brief outage changes nothing visible.
* **Counting** sends views, clicks, dismissals and offer copies as plain counts, with no identifiers
  and no cookies; IP addresses are not kept. Counting follows the visitor's consent, as set by
  `data-consent`.

## `data-consent` modes

| Mode | Counting |
| - | - |
| `auto` (default) | Counts, unless a known consent tool on the page says no. |
| `wait` | Counts only after your page calls `Festtide.consent(true)`. |
| `off` | Never counts. Insights stay empty for this site. |

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

## Passing consent yourself

With `data-consent="wait"`, call `consent` from your consent banner's callback:

```js theme={null}
function onConsentChange(analyticsAllowed) {
  window.Festtide?.consent(analyticsAllowed)
}
```

`consent(true)` starts counting for the page; `consent(false)` stops it. Campaigns render the same
either way.


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