What are tawk.to cookies and what do they do?

The tawk.to chat widget uses a few cookies and similar browser storage to keep chats connected and to recognize visitors who come back. This article explains what each one does and how long it’s kept.

Cookies

The chat widget sets these cookies on your website:
CookieWhat it doesExpiryRole
twk_uuid_propertyIdGives the visitor a random ID, so the widget recognizes them when they come back6 monthsEssential
twk_idm_keyMakes sure a new visitor is registered only once while the widget connects, even with several pages openSessionEssential
TawkConnectionTimeStops several open tabs from connecting the visitor at the same timeSessionPerformance and functionality
propertyId is your property's ID, so the cookie name is different for each property. To find yours, see Where can I find the property and widget IDs?

The visitor ID in twk_uuid_propertyId is a randomly generated code. It doesn't contain the visitor's name, email or any other personal information.

Local storage and session storage

The chat widget also uses the browser's local storage, which stays until it is cleared, and session storage, which is cleared when the visitor closes the tab.
NameStorageWhat it doesRole
twk_token_propertyIdLocal storageKeeps the visitor's chat session signed in as they move between pagesEssential
twk_propertyIdLocal storageRemembers which chat server the visitor is connected to, and whether they accepted your consent formEssential
previousNavSession storageRemembers the last page the widget reported, so the same page view isn't counted twicePerformance and functionality
tawk_svSession storageRemembers the version of your widget settings, so the widget loads them again only when they changePerformance and functionality
tawk_has_register_visitorSession storageUsed only when your website passes visitor details to the widget through the JavaScript API. Records that they were sent, so they're sent only onceEssential
You may also see these in some browsers:
  • Tawk_propertyId: a cookie that replaces twk_propertyId when the browser blocks local storage.
  • $navigator.locks-requestQueueMap, $navigator.locks-heldLockSet, $navigator.locks-clientIds and $navigator.locks-clientId-*: local storage items that coordinate the widget across open tabs. They're used only in older browsers that don't have this feature built in.

How does the consent form change what's stored?

When the consent form is on for your chat widget, the widget waits for the visitor's answer before it identifies them:
  • Before the visitor answers: only the session cookies twk_idm_key and TawkConnectionTime are set. Neither holds a visitor ID, and both are removed when the visitor closes the browser.
  • The visitor clicks I accept: the widget sets the twk_uuid_propertyId cookie, twk_token_propertyId and twk_propertyId in local storage, and previousNav in session storage.
  • The visitor clicks Not now: nothing more is stored.
When the consent form is off, the widget sets its cookies and storage as soon as it loads on your page.

If your website already asks for consent with its own cookie banner, you can load the chat widget only after the visitor agrees. See Delaying the tawk.to widget using JavaScript.

For how tawk.to handles personal data, see the tawk.to Privacy Policy and Why do you need my personal data?

Related guides


Have a question we haven't covered or need support?

Was this article helpful?

180 out of 246 liked this article

Still need help? Message Us