Cookies

Review the browser storage Boei uses, connect your cookie banner and clear visitor access on logout. For the visitor's Recent chats menu and continuing between pages, use Chat history.

Choose browser storage

Open Settings → Business → Profile → Preferences → Visitor Experience and turn Use cookies on or off for the selected website.

The business Preferences screen contains Use cookies under Visitor Experience. Demo data.

What the widget stores

With Use cookies enabled, the website widget can store the following two values in the visitor's browser. Both belong to the website where the widget is installed. The IDs in their names identify your Boei website and widget, not an individual visitor.

Name Storage type Purpose and contents When it is stored Lifetime
boei_visitor_<website ID> First-party cookie Remembers the visitor so they can securely open recent conversations and restore widget state, including previously shown welcome messages. Contains a visitor ID, an access token and an expiry time. No names, email addresses or message text. After the visitor starts a conversation, not simply when the page loads or the widget opens. Up to 96 hours. Confirmed conversation activity renews this window. Page views and checking for replies do not.
boei_chat_return_<website ID>_<widget ID> localStorage Helps a visitor return to the same chat after following a link from the mobile full-screen chat. Contains the chat helper reference, visitor ID and expiry time. No message text or access token. When the visitor follows a link from an open mobile full-screen chat, with visitor storage enabled and an existing visitor session. Uses the visitor session's expiry time when the value is saved, at most 96 hours away. Boei removes an invalid or expired value when it next checks it. localStorage has no automatic browser expiry, so an unused value can remain until Boei removes it or the visitor clears site data.

The widget does not use sessionStorage for visitor state. Other scripts and optional integrations on your website can use their own cookies or storage. They are outside this list.

The visitor cookie is set by JavaScript on your website. It uses Path=/ and SameSite=Lax, and Secure on HTTPS websites. It is not an HttpOnly cookie: scripts running on your website can read it. The access token is private because it grants access to the visitor's recent conversations. Boei stores only a hash of that token on its server.

The localStorage value is also readable by scripts on the same website origin. It does not grant access to a conversation by itself.

Browsers may block or remove storage sooner. Conversations may then stop carrying over between pages. Chat still works on the current page.

Analytics

Boei's widget click and opening statistics use a separate page-visit ID held in memory. These statistics do not need the visitor cookie and do not use it to recognise a person across page loads. The visitor cookie supports conversation access and widget state.

Optional integrations such as Google Analytics and Google Tag Manager have their own settings and consent requirements. Turning Boei visitor storage on or off does not control those integrations. Lead events can include contact details, so review the enabled events and fields before enabling an integration.

Without cookies

Boei keeps the current conversation and visitor details in memory while the page stays open. It does not read or write visitor cookies, localStorage or sessionStorage. Reloading or leaving the page starts fresh.

For prompts shown only once, Boei uses the previous page's address when available. This avoids repeating them during normal browsing. A browser that hides this address can cause a prompt to appear again.

Messages you send are still stored in your Boei inbox under your data retention settings. Turning off browser storage does not delete messages already sent.

Direct iframe embeds without the website script keep the conversation in memory only. Use the website script if you want conversations to carry over between pages.

Before loading the Boei script, set:

window.BQ = window.BQ || [];
window.Boei = window.Boei || function (options) { window.BQ.push(options); };
Boei({ cookies: false });

After your banner accepts the relevant storage, call Boei({ cookies: true }). To withdraw that choice, call Boei({ cookies: false }). The current chat stays open. The visitor cookie is removed, its access token is replaced with access held only in memory, and the mobile chat-return value is cleared. The SDK choice overrides the website setting.

This switch controls Boei's visitor storage. Third-party integrations and your own scripts have their own storage rules. A form's consent checkbox is separate from this setting. Decide with your privacy adviser whether your use of chat storage needs consent. Boei does not classify every customer's use as exempt.

Browser storage and server retention

Browser storage controls whether this browser can recognise the visitor and reopen recent conversations. Conversation messages are stored separately in your Boei inbox. Cookie expiry, clearing site data or turning visitor storage off does not delete those messages. Their retention follows your data retention settings.

Shared computers and logout

On logout, call Boei.reset(). This clears visitor details, drafts and recent chats from the widget and ends access through the old token. It also resets other open tabs on the same website. It keeps the cookie preference. This does not delete conversations from your inbox.

A plain email address passed through the SDK only fills in fields. Access to another device's recent conversations requires a verified, signed identity. Links in reply emails give access only to the linked conversation, within the same 96-hour access period.