The Chat widget requires the following cookies to function properly and to register the visitor. See Zendesk in-product cookie policy for a comprehensive list of cookies for all Zendesk products.
Chat/Web Widget
Cookie Name | Cookie Domain | Cookie Path | Cookie Purpose | Cookie Duration |
__zlcmid | customer's website top-host | / | store visitor's ID for widget's authentication | 365 days |
__zlcprivacy | customer's website top-host | / | store visitor's decision on CookieLaw Javascript API | 365 days |
The cookieLaw
object in the Chat widget Javascript API allows the visitor to opt into the cookie before the Chat widget initializes. See the cookieLaw docs.
If you're using the Web Widget with Chat and want to enable cookie law mode, see Using the Chat widget JavaScript API.
Web SDK
Cookie Name | Cookie Domain | Cookie Path | Cookie Purpose | Cookie Duration |
__zlcmid | customer's website top-host | / | store visitor's ID for widget's authentication | 365 days |
If you built a custom widget using the Web SDK, your custom implementation must handle cookie consent. You should not call zChat.init until the visitor has given consent to cookie usage.
2 Comments
Hello, I just wanted to confirm something about the `__zlcmid` cookie. This cookie is referring ti the domain/ip? Currently I notice that whenever I am on my domain and the ID for `zlcmid` doesn't change, the chat session will be there even when I refresh the page. However, when I redirect to a custom Shopify domain, the `__zlcmid` id changes values. Is there a way to prevent the `__zlcmid` id from changing once I redirect to the Shopify domain?
I am currently using the Web SDK for a custom React Chat Widget.
Hi Henry,
The cookie value is tied to the domain and there is no way to change this behaviour without using authenticated visitors.
Unfortunately, Shopify does not allow custom Javascript to be included in the checkout page which prevents you from setting the same external ID so the visitor can continue the chat while crossing domains.
You can learn more about authenticated visitors here: https://chat.zendesk.com/hc/en-us/articles/360001771347-Conversation-history-authenticated-visitors-in-Chat-widget
For the Web SDK, here are the docs for authenticating visitors: https://api.zopim.com/web-sdk/#visitor-authentication
To use visitor authentication, you will need to ensure you are using the latest version of the Web SDK in your React Chat widget.
My recommendation would be to use the popout version of the chat so they can continue chatting while moving to the Shopify checkout page.
-Ramin
Please sign in to leave a comment.