mixpanel-node icon indicating copy to clipboard operation
mixpanel-node copied to clipboard

Return id when `track` is executed and add `get(id)` to retrieve the event logged

Open dani69654 opened this issue 2 years ago • 1 comments

Hello devs,

  • It would be extremely useful is track() returns a unique ID;

  • Then also have a get(ID) that fetches an event.
    Atm it is not possible to add tests to verify if an event has been created with the right details.

dani69654 avatar Jun 01 '22 15:06 dani69654

Mixpanel's backend only returns 0 & 1 in response. It doesn't reveal the actual event id (or any other information) in the response of /track API. Moreover, I think, they didn't offer any API to retrieve any event details by id.

Documentation LInk: https://developer.mixpanel.com/reference/track-event

ArsalImam avatar Jun 03 '22 08:06 ArsalImam