Custom Behavioral Events Tracking APIs

Hi There,

I’m setting up custom behavioral events for the buttons (e.g. login, profile etc.) in my application and would like to track the event completions and unique visitors on HubSpot.

I’d setup the custom behavioral events using the HubSpot chrome extention. But, it was not accurately capturing the event completions and unqiue visitors. To solve this issue, I explored HubSpot documentation and found the below two topics:

  1. Tracking Code API
  2. Custom Behavioral Events API (beta version)

I integrated these two APIs in the proof of concept and learnt that they both produce the same result. i.e. both of them were successfully capturing the event completions and unique visitors.

Before I integrate either of them on my application, I would like to understand which API is recommended for tracking event completions and unique visitors?

Your answers and suggestions will be helpful to make a sound decision on the solution approach. Thank you!

Hello @roopeshb,

You can use any of those but Custom behavioral events will only be processed for accounts with Marketing Hub Enterprise.

And with events API you can track the Custom behavioral events as well.

Hope this helps!

Regards,

Hi @himanshurauthan

Thank you for your response. I’ve Marketing Hub Enterprise Hubspot account and was wondering which among Custom Behavioral Events API or Tracking Code API are recommended by the community?

Regards,

Roopesh

Hello @roopeshb,

As you want “on button clicks” I would recommend going with tracking code API.

Regards,

Hi @himanshurauthan - Thank you!