Go straight to:
- Local storage usage
- In Web1on1 / Chatshipper widget domain maintained by Web1on1
- In Web1on1 / Web1on1 Widget Domain maintained by Smooch (now Sunshine Conversations Zendesk)
- Alternative: Browser storage
Local storage usage
In Web1on1 / Web1on1 widget domain maintained by Web1on1:
Local storage is being used to restore state on page navigation. Local storage is remembered for 30 minutes before being reset.
Local storage setting |
Type |
Explanation |
widget_auto_opened |
timestamp |
The timestamp at which the widget was automatically opened to get attention. influenced with the openAfter setting. |
widget_loaded |
timestamp |
This is the moment the widget was loaded. Used to determine autoOpen moment |
widget_closed_by_customer |
boolean |
Used to restore widget state after navigating to different page |
widget_opened_by_customer |
boolean |
Used to restore widget state after navigating to different page |
widget_customer_clicked_header |
boolean |
Used to restore widget state after navigating to different page |
widget_eyecatcher_closed |
timestamp |
A flag to tell the system the eyeCatcher is closed |
widget_uuid |
string |
User ID (anonymized) used to distinguish different users |
widget_show_first_message |
boolean |
Determines if an initial welcome message is displayed in the conversation stream. |
By default, the identity of anonymous users is stored in the localStorage of the browser.
Using the localStorage will persist the user identity throughout browser sessions (including page reloads and browser restarts).
In other words: These local storage elements are persistent, they will remain in the Local Storage until removed by the user.
Local storage setting |
Type |
Explanation |
.appUserId</id> |
string |
is used to identify which user is currently active in the browser session |
.sessionToken |
string |
is a single value used for negotiating authentication once a Web Messenger session begins - as this is set in LocalStorage it does not have an expiry like a cookie does. |
.clientId |
string |
is set (anonymous) when the Web Messenger finishes initializing on a web page. |
Alternative: Browser storage
To clear the user identity once the browser is closed, use sessionStorage instead. Learn more
Supported by the options attribute method.
<script>
window.widgetOptions = {
browserStorage: 'sessionStorage'
}
</script>
<script defer
src="https://cdn.chatshipper.com/widget/bundle.min.js"
data-chatshipper-appid="<your appid should be pasted here>"
data-chatshipper-options='widgetOptions'>
</script>
The downside of this method is that returning users of the webwidget can not be recognized, nor can their prior conversation be loaded. In fact, on every interaction they will be seen as a new user. In our opinion, this is a lesser Customer experience and therefore not recommended.
Need additional help?
Click here to book support the shop and summon Web1on1 Experts (more info about professional services)