<!--
  Translated by the docs agent from content-src/es/guides/widget-web/07-cookies-que-el-widget-instala-en-tu-web.md
  (source_hash 2169ab08ae9c). If that Spanish source_hash changes, re-check this translation.
-->

The widget runs in **your visitor's** browser, not on your provider's servers — so what it stores counts as
storage on **your own site**, and your cookie policy has to declare it. Here's exactly what it sets:

## Cookie: visitor identifier

The widget creates a single cookie, native to your domain (*first-party* — never a third party's),
**only when the visitor opens the chat** (not when the page loads):

| Name | Purpose | Type | Duration | Exempt from consent? |
| --- | --- | --- | --- | --- |
| `aymar_widget_visitor_id` | Recognize the same visitor across messages and reloads, to keep the conversation with the assistant going. | Own (first-party), technical | 365 days | Yes — strictly necessary for the service the visitor requests by tapping the chat icon |

It's not used for advertising or to build a profile of the visitor beyond that conversation.

## Local browser storage (no cookie)

Besides the cookie, the widget stores a small snapshot of the ongoing conversation in the visitor's
browser's `localStorage` (conversation id, whether the AI or someone from your team is handling it, and the
last messages already visible to the visitor) so it can be restored if the page reloads. It's discarded on
its own, with nobody having to delete it, after **7 days** of inactivity (the same period as section 1).
It's the same kind of technical storage as a cookie for the purposes of your policy, and it serves the same
purpose as the cookie above: no data is shared with third parties or used for advertising.

## What you need to do

1. **Add the row from the table above** to your own cookie policy (copy it as is).
2. **If your site already has a cookie-consent manager** (a banner with categories), configure the widget
   as a **necessary/technical** cookie — it doesn't require the visitor to accept an analytics or
   marketing category to be able to chat, because it's only created when the visitor themselves requests
   the service (taps to open the chat). If your manager blocks every script until there's consent, load the
   widget snippet only after that consent, or after the visitor's own click on the chat icon.
3. No additional notice is needed on your part: the widget itself already identifies the assistant as AI
   in the conversation (an obligation under the EU AI Act, Article 50).

> **Note — The documentation portal has the same page, ready to link to**
>
> If you'd rather link from your cookie policy instead of copying the row, your provider's public
> documentation portal carries this same information in "Cookies the widget sets on your website".