APIs & Integrations

SVisual
Member

Problem with hs_analytics

Hello everyone,

 

I'm with this  problem.

 

I'm implementing a third party chatbot, I added the script and it creates an iframe on the page with the new chatbot.

 

In the chatflow when the user reply the chat with their email address, the chatbot create a contact in the Hubspot, but it's missing some data like "hs_analytics_first_url" and "hs_analytics_source", is there a way to send this data when creating a contact in Hubspot?

 

We tried using the cookie "hubspotutk" with the Contact API
https://legacydocs.hubspot.com/docs/methods/contacts/get_batch_by_user_token_with_token_keys

 

But it only works if the user alredy is a contact (is-contact: true), if it's a new user (is-contact: false) the API did not return the data we need:
- hs_analytics_first_url
- hs_analytics_source

 

Can anyone help with this?

 

0 Upvotes
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

Problem with hs_analytics

@webdew , can you help here?

0 Upvotes