Open KatFishSnake opened 6 months ago
Used with node 20.x.x
node 20.x.x
Implementation:
// package.json "mixpanel": `0.18.0` // route.ts import Mixpanel from "mixpanel"; const mixpanel = Mixpanel.init(TOKEN, { debug: true }); mixpanel.track(eventName, { distinct_id: undefined, "Local Hour": new Date().getHours(), ...properties, });
When properties are passed with a key, value "time" (i.e {time: 123}),
properties
{time: 123}
Mixpanel debug log registers the event in the console, but in the UI the event is nowhere to be found.
There should be an error log or a type guard in place for keys that Mixpanel reserves for itself.
It should not silently drop the events.
Used with
node 20.x.x
Implementation:
When
properties
are passed with a key, value "time" (i.e{time: 123}
),Mixpanel debug log registers the event in the console, but in the UI the event is nowhere to be found.
There should be an error log or a type guard in place for keys that Mixpanel reserves for itself.
It should not silently drop the events.