GenAI Widget Chat Persistence
The widget can keep an anonymous visitor identity across browser sessions so returning users see their previous chats. Persistence is opt-in: the home screen offers a "Save chats on this device" checkbox only when tracking is allowed and the conversation history is empty.
The identity is stored first-party on your site. It is not shared with other sites.
Storage
| Preference | Lifetime |
|---|---|
| Save chats checked | Until the user clears site data or taps "Clear all" |
| Save chats unchecked (default) | Until the browser is closed |
If the visitor has no saved identity, the widget creates a new one for the current session.
"Save chats on this device" checkbox
Shown on the home screen when all of the following are true:
- Tracking is allowed (not opted out)
- Conversation history for the current visitor is empty
When history already exists, the home screen shows the "Chat History" button instead of the checkbox. Checking the box does not turn itself on automatically later — the user must choose it.
Coupling with opt-out tracking
Chat persistence across sessions is treated as tracking-related storage. See Opt Out Tracking for how to enable or disable tracking.
Tracking opted out
- The "Save chats on this device" checkbox is hidden.
- The identity is kept only for the current browser session, so in-progress chats are not lost immediately.
- Closing the browser ends the session. The next visit starts a new identity, and previous chats cannot be recovered from the client.
Use this when your site uses an opt-in cookie/privacy policy: start with tracking opted out, then enable it after the user consents.
Tracking opted in
- The checkbox is offered when history is empty.
- Persistence does not enable itself. The identity stays session-only until the user checks "Save chats on this device".
Clear all
On the history page, "Clear all" starts a new anonymous identity and keeps the current remember preference. Previous conversations remain on the server under the old identity and cannot be recovered from the client.
Updated about 9 hours ago
