mountainash / posthog-managed-component

A Managed Component for sending events to PostHog
Other
9 stars 2 forks source link

Event name not respected, type tracked instead #12

Open agcty opened 1 month ago

agcty commented 1 month ago

Current behaviour Currently, when you track an event, the name that shows up in the posthog dashboard will always be "event" which doesn't make sense.

image

Expected behaviour Instead of the type that is now used as the event name, the actual event name should be used as described in the docs: https://posthog.com/tutorials/api-capture-events

Then you'll also be able to see the correct event name in the ph dashboard:

image

I have created a PR that fixes this: https://github.com/mountainash/posthog-managed-component/pull/11