managed-components / hubspot

Managed Component for Hubspot
Other
1 stars 2 forks source link

HubSpot Events Don't work With Zaraz #7

Open chrislemmer-sakeliga opened 3 months ago

chrislemmer-sakeliga commented 3 months ago

Hi there,

I've created a custom event in HubSpot, as per this article - https://knowledge.hubspot.com/analytics-tools/create-custom-behavioral-events-with-the-code-wizard

When I created the event, I selected "Send VIA Api".

I confirmed a working trigger in Zaraz since I also sent this event to multiple other platforms, such as GA4.

See below config:

Screenshot 2024-03-28 at 11 44 07

The event never comes up in HubSpot, so something seems to be hindering that from happening.

I thought that maybe the event shouldn't be sent via the HubSpot API, so I tried JS as well. However, none of them are working.

When I sent the event to the HubSpot API (https://api.hubapi.com/events/v3/send) using Postman, it came up immediately.

Am I missing something?

Thanks Chris

kuba-orlik commented 2 months ago

Have you tried Debug Mode? It might reveal a hint or two:

https://developers.cloudflare.com/zaraz/web-api/debug-mode/