APIs & Integrations

vpetr
Member

How to know is visitor exists in HubSpot via JS api?

Hi, is there a way to use JS api of HubSpot tracking to know if current visitor exist in hubspot or not?

 

The idea is to fire "New Subscriber" event in GA4 (via JS) if one doesn't exist in HubSpot and "Resubscribe" for those who sign up again.

 

Thanks

0 Upvotes
2 Replies 2
Jaycee_Lewis
Community Manager
Community Manager

How to know is visitor exists in HubSpot via JS api?

Hey, @vpetr 👋 I think the closest solution we have is the Visitor Identification API. It's intended use is with chats (Conversations), but you might look into to see if you can adapt it to your use case. https://developers.hubspot.com/docs/api/conversation/visitor-identification 

 

We'll also leave this thread open in case other community members have another suggestion for you.

 

Have fun building! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
vpetr
Member

How to know is visitor exists in HubSpot via JS api?

thanks for the reply, the issue it is identifying the visitor. I wasn't able to use that for my case.

 

 

 

0 Upvotes