APIs & Integrations

ahmdsolmn1
Member

Multiple users using the same browswer

SOLVE

I am trying to integrate the conversations with my website.

After a user logs in to my website I use below code to identify a user which works fine:

  window._hsq.push(['identify', {
    email: 'firstUser@email.com',
    firstname: 'firstUser',
  }]);
  window._hsq.push(['trackPageView']);

Then if the user logs out from my website and another one logs in he's identified as the firstUser. (which means he sends message through conversations as the first user)

I tried using _hsq.push(['revokeCookieConsent']); to delete the cookies but it deletes all of them except for messagesUtk which seems to be the one causing the issue.

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Multiple users using the same browswer

SOLVE

Apologies for not following up on this post.

 

The cause of this issue should now be resolved.

 

The revokeCookieConsent method now removes the messagesUtk cookie, allowing you to clear live chat identities on the same device. This change has been live since February 21, 2019.

 

See this thread for additional context.

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
2 Replies 2
IsaacTakushi
HubSpot Employee
HubSpot Employee

Multiple users using the same browswer

SOLVE

Hi, @ahmdsolmn1.

 

To confirm, are you trying to follow the steps @cbarley mentions in this post, but finding that the messagesUtk cookie remains even after triggering_hsq.push(['revokeCookieConsent']);?

Isaac Takushi

Associate Certification Manager
0 Upvotes
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Multiple users using the same browswer

SOLVE

Apologies for not following up on this post.

 

The cause of this issue should now be resolved.

 

The revokeCookieConsent method now removes the messagesUtk cookie, allowing you to clear live chat identities on the same device. This change has been live since February 21, 2019.

 

See this thread for additional context.

Isaac Takushi

Associate Certification Manager
0 Upvotes