Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing property "time" doesn't show events in the mixpanel UI #427

Open
KatFishSnake opened this issue May 24, 2024 · 0 comments
Open

Passing property "time" doesn't show events in the mixpanel UI #427

KatFishSnake opened this issue May 24, 2024 · 0 comments

Comments

@KatFishSnake
Copy link

KatFishSnake commented May 24, 2024

Used with 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}),

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant