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

event property using the key "type" is silently dropped #256

Open
jonmindtrip opened this issue Jan 16, 2025 · 1 comment
Open

event property using the key "type" is silently dropped #256

jonmindtrip opened this issue Jan 16, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jonmindtrip
Copy link

Expected Behavior

All event properties sent with an event should appear in the web interface.

Current Behavior

If the key for the event property is exactly "type", that event property is silently ignore.

Steps to Reproduce

// Correctly tracks foo=bar
amplitude.track(eventType: "EventA", eventProperties: ["foo": "bar"])

// EventB is tracked, but with no event properties
amplitude.track(eventType: "EventB", eventProperties: ["type": "something"])

// EventC is tracked with only foo=bar  event property
amplitude.track(eventType: "EventC", eventProperties: ["type": "something", "foo": "bar"])

In case it's helpful, we also have a web client (using amplitude-ts/2.6.1) and it does not have the same issue.

Environment

  • SDK Version: 1.11.2
  • OS Info:
@jonmindtrip jonmindtrip added the bug Something isn't working label Jan 16, 2025
@crleona
Copy link
Collaborator

crleona commented Jan 18, 2025

Hi @jonmindtrip I'm able to send events with a type property in one of my sample projects-

Image

Is it possible that you need to enable / unblock the property using our data feature (https://amplitude.com/docs/data/remove-invalid-data)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants