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

# Cookie consent

> Crossword follows the cookie choice your shoppers make on your store's banner. Choose how the widget waits for consent, what happens on a no, and whether chat waits too.

Crossword does not show a cookie banner of its own. It follows the answer your store's banner already collected. Unless the consent mode is **Off**, the widget captures no browsing data until your banner allows it. A no is remembered and applies on every visit.

Consent covers browsing capture: page views, visits, where the shopper came from, store events, and clicks. Chat keeps working without consent unless you choose to hold it too.

## How it works

```mermaid theme={null}
flowchart LR
  B["Your cookie banner"] --> S["Shopper's choice"]
  S -- "Yes" --> Y["Browsing capture starts"]
  S -- "No" --> N["No browsing capture<br/><small>remembered for later visits</small>"]
  S -- "No answer yet" --> W["Widget waits<br/><small>depends on the consent mode</small>"]
```

## Choose a consent mode

You set the consent mode for each channel. Go to **Tracking > Capture** in the [dashboard](https://app.crossword.ai), choose the channel, and find the **Consent** card. You can also open the channel from **Channels** and select **Tracking**.

| Mode | What the widget does before the shopper answers |
| - | - |
| Off: capture on page load | Captures from the first page. Use this only if your store does not need consent. |
| Required: wait for consent | Captures nothing until your site tells the widget the shopper said yes. |
| Google Consent Mode | Captures nothing until your banner grants `analytics_storage`. |
| Follow Shopify's cookie banner | Follows the shopper's answer on Shopify's banner. New Shopify channels start in this mode. |

Most consent tools, such as OneTrust and Cookiebot, work with **Google Consent Mode**. If yours does not, use **Required** and tell the widget yourself.

## Tell the widget from your own banner

In **Required** mode, call `consent()` when the shopper answers your banner.

```js theme={null}
window.Crossword.consent('granted');
```

```js theme={null}
window.Crossword.consent('denied');
```

A yes starts capture from that moment. Earlier activity on the page is not added afterwards. A no stops capture at once.

## Other consent settings

| Setting | What it does |
| - | - |
| When consent is denied | **Discard collected data** clears what the widget had stored for capture. **Pause, keep sent data** stops capturing and keeps what was already sent. Discard is the default. |
| Remember a decision for | How long a yes lasts in **Required** mode before the widget waits for a new one. 1 to 365 days. The default is 180 days. A no lasts until the shopper says yes. |
| Also block chat until consent is given | Holds the chat itself until the shopper says yes. Off by default. |
| Respect Global Privacy Control | Treats a browser's Global Privacy Control signal as a no. Set once for the workspace. On by default. |

## What a no stops

| Stopped | Still works |
| - | - |
| Page views and visits | Chat |
| Where the shopper came from, such as an ad or a search | Agent replies |
| Store events and clicks | Proactive messages |

A later yes lifts a no. A browser that sends Global Privacy Control never counts as a yes while **Respect Global Privacy Control** is on.

## Block chat until consent

Turn on **Also block chat until consent is given** if your store must not load the chat before a shopper accepts cookies. The switch is not available when the consent mode is **Off**.

While the chat waits:

* The widget does not appear and nothing from the chat loads.
* Buttons that open the chat, such as an [Ask AI button](https://crossword.ai/docs/components/widget/ask-ai-button.md), do nothing. Clicks are not saved for later.
* When the shopper says yes, the chat appears without a page reload.

> [!WARNING]
>
> The chat waits for a yes to analytics cookies. A shopper who accepts only functional cookies does not see the chat. In **Required** mode, if your site never reports a yes, no shopper sees the chat.

Only a no from your cookie banner closes the chat. A no from the opt-out link or from Global Privacy Control stops browsing capture but leaves the chat open.

This setting works with the script tag installation only.

## Add an opt-out link to your privacy page

Give shoppers a way to say no outside the banner. On the **Consent** card, open **Opt-out link for your privacy page** and select **Copy snippet**. Paste the snippet on your privacy page. It works on pages where the widget is installed.

The snippet shows each shopper the right text:

* **Stop tracking my browsing on this site** for a shopper who is tracked.
* **Allow tracking** for a shopper who opted out.
* A note with no link when the browser sends Global Privacy Control.

To build your own link, call `consent()` from a click handler.

```js theme={null}
window.Crossword.consent('denied', { explicit: true, source: 'privacy_link' });
```

To show the shopper their current choice, read `trackingStatus()`.

```js theme={null}
const { optedOut, gpc } = window.Crossword.trackingStatus();
```

`optedOut` is `true` after a no, or when `gpc` is `true`.

## See or change a shopper's choice

Open a contact in **Contacts** and select the **Tracking** tab. It shows their tracking choice and its history, including where each answer came from. You can opt a contact out from there. Only a person on your team can record a yes for a contact.

A no follows a known shopper across devices once they sign in or chat. If you delete a contact who opted out and the same shopper returns signed in, they start opted out.

## Things to know

* With **Also block chat until consent is given** on, a no closes the chat only in the tab where the shopper answered. Other open tabs keep the chat until their next page load.
* Saying no does not clear what the browser already stored. To clear it, set **When consent is denied** to **Discard collected data**.
* A regional default from Google or Shopify is never recorded as a yes.

## Related

> [card] [Widget](https://crossword.ai/docs/components/widget/overview.md)

> [card] [Add an Ask AI button](https://crossword.ai/docs/components/widget/ask-ai-button.md)

> [card] [Shopper identity](https://crossword.ai/docs/identity/overview.md)

> [card] [Customer memory](https://crossword.ai/docs/agents/customer-memory.md)


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