Hi there.
I currently have an app which creates an embed block on website’s pages.
This embed block contains a chatbox where visitors can ask questions to an operator.
This block creates a cookies with the visitor identifier returned by my chat app.
With Chat for Checkout, I am able to create the chatbox through the iframe but I need to access to the cookie where the visitor identifier is stored in order to have a conversation continuity between pages.
As Chat for Checkout uses iframes, I think I don’t have the possibility to get these cookies. I tried, it seems not possible. Do you confirm?
If it is not possible to access cookies from the Chat component, I have another solution. I would need to get a unique visitor identifier/session id in my embed block, I give this visitor id / session id to my chat application in order to authenticate the visitor. Then, I need to access this visitor ID in my Chat component.
But, I didn’t find any component furnishing a visitor identifier/session in Liquid template, which I use in my app embed block.
On the Chat component’s side, we have access to a JWT token, I think we maybe have the same thing on app embed’s side?
I saw there is a _shopify_y cookie I have access to in my app embed. The value seems to be the same as the value we get from App bridge for Checkout ‘visitor’ method Chat. Is the the unique way?
Thanks a lot