Enabling cookie consent for the Chat widget & Web Widget

Return to top
Have more questions? Submit a request


  • Henry Lee

    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.

  • Ramin Shokrizadeh
    Zendesk Product Manager

    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.




Please sign in to leave a comment.

Powered by Zendesk