Widget Cookie and Storage
What the Widget stores on a visitor's device, why, how long, and whether it needs consent. The Widget sets no cookies. It uses the browser's localStorage and sessionStorage on the page where the business installed it.
| Name | Type | Purpose | Duration | Consent |
|---|---|---|---|---|
| smartalex_visitor_id | localStorage | Random identifier so a returning visitor's conversation continues | Until cleared | Functional, needed for the chat the visitor asked for |
| smartalex_widget_state (with the widget id after it) | localStorage | Chat history and open state so a conversation survives page changes | 7 days | Functional, needed for the chat the visitor asked for |
| smartalex:widget:<tenant id>:context | localStorage | Summary and contact details the visitor gave, so a later visit is not asked again | Until cleared | Functional |
| smartalex:widget:consent:marketing | localStorage | Remembers the visitor's marketing choice | Until changed or cleared | Strictly necessary, it records the choice |
| smartalex_widget_attribution | sessionStorage | Campaign parameters and advertising click identifiers from the page address | Browser session | Marketing. Stored when present in the address, sent on only with marketing consent and never under Global Privacy Control |
| smartalex_dl_<event> | sessionStorage | Marks that an event was already sent to the business's tag manager once this session | Browser session | Marketing, the event is sent only where the business's own tags allow |
| smartalex_widget_collapsed (with the widget id after it) | sessionStorage | Remembers the visitor shrank the widget | Browser session | Strictly necessary, the visitor's own control |
| smartalex_widget_hidden_pages (with the widget id after it) | localStorage | Remembers pages where the visitor hid the widget | 30 days per page | Strictly necessary, the visitor's own control |
Strictly-necessary and functional storage is set without prior consent, as permitted by e-privacy rules, because it carries out what the visitor asked for. Marketing use of attribution data is deny-by-default and is blocked by the Global Privacy Control signal; withdrawing consent stops it being sent. The Widget sets no first-party cookie. The visitor "Your data" panel lets you clear this storage.