I have integrated the hubspot chat and hubspot tracking in my project. I am to record user for first time but I am not able to update.
I am using `_hsq` for tracking but still its not working.
1. Completed the integration (script)
2. Completed Visitor identification
_hsq.push([
“identify”,
{
email: “haha@google.com”,
id: 234,
fullName: “Jhon Doe”,
firstName: “John”,
lastName: “Doe”,
customProp: ‘update this’
},
]);
_hsq.push([“setPath”, window.location.pathname]);
_hsq.push([“trackPageView”]);
this is not working
please help me
Hi, @sujitIwale
Thanks for your question.
The _hsq identify method can be used to send information about a visitor to HubSpot, but it has its limitations. Its primary use is to associate a known visitor with a HubSpot Contact record.
When you call the identify method more than once for a user with the same email address, additional calls will not overwrite the values specified in previous calls. This is designed to prevent important user data from being overwritten unintentionally.
For your specific case, if you are trying to update a visitor’s properties, you should use the Contacts API to update the properties in HubSpot.
Before proceeding, can you please try to call the identify method again but this time, remove the hardcoded ID and customProp properties? It’s critical to understand that the identify method is mainly used for associating a known email address with a HubSpot Contact, and not for updating other properties.
Let’s see if this makes any difference.
Best,
Jaycee
Thanks.
@Jaycee_Lewis
I want to keep users data updated on hubspot chat dashboard .
Also we want to keep record of users current page and we want this to be shown on hubspot chat dashboard . How we can achieve this ?
If I want to keep users data up to date and our support person should be able to see updated data . How we can achieve this ?
If I want to update the users data just after user is interacting with our support team .
How we can achieve this ?