Custom JavaScript events contact

Hi,

I am new to custom events and I am trying to figure out how the event is associated to the correct HubSpot contact in for JavaScript events.

In the case of API events, we can select which property to match on.

Can someone help me understand the mechanism?

Many Thanks!

Hi @AndPat,

In short, the JavaScript option works in tandem with the HubSpot tracking code, where it can identify user only when they convert (i.e. form submission) or if it’s a returning user with an existing cookie.

If the user never converts, the custom event should still get recorded but won’t be associated to any contacts and will likely be shown as “Unknown User” in the custom event analytics.

Hope this helps!