I've used examples from the above thread, to develop my own solution, which I've posted below.
Currently I am experiencing issues with some users starting chats and Hubspot reporting their name incorrectly. I'm unsure of the root cause but wanted to get clarification on whether the below integration code could be a contributing factor or not.
Would love to hear opinions/advice on this code and/or clarity on what the integration code should look like. Separately has anyone else experienced issues with support chats incorrectly identify users?
Inside _document.tsx between the <Head> and </Head> tags
Note we currently use Slack and have the Slack - Hubspot Chat integration.
We've had instances of users creating a covnersation thread in live chat, then we receive a notification in Slack saying "FirstName LastName started a conversation through Live Chat". Our team then replies with something like "Hey FirstName! How can I help today?". The user then responds "My name is SomethingElse :D".
For now we've instructed our support team to not mention anyone's name, but I'd like to track down the root-cause of the issue.
I've had a look in of the Hubspot Contacts where this issue has occurred and this single contact seems to have 9 different email addresses associated with them. They should only have the 1, so it looks like something is stitching these other email addresses to the contact incorrectly. Any ideas how I could possibly identify the source of the stitching process to attempt to address? (in this particular case each of the 9 email addresses should be there own contact)
I've attempted to dig deeper. I've reviewed the "Activity" log of this particular contact. I've identified a few cases where a Form submission has occurred with the details indicating that 1 property (an email) was updated. It looks like Hubspot is capturing the email from a non-Hubspot form (the website's login form) and updating the Contact's email addresses.
Any idea how Hubspot is determining which Contact it should associate the email address with, once someone logs in? (is the chat connected to this? e.g. if someone uses the same machine to login with one account, then logout and login to another account... does Hubspot stitch both email addresses to a single Contact?)
Hey, @SHutchinson_👋 Thanks for your post. Adding your details and code example is always appreciated. Let's invite some of our community experts to the converstaion — hey @albertsg@nikodev@Kevin-C@miljkovicmisa do you have any suggestions or troubleshooting tips for @SHutchinson_?
Thank you very much for taking a look! — Jaycee
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !