-
Notifications
You must be signed in to change notification settings - Fork 194
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
Int and Decimal event properties missing from events #496
Comments
Hi @initishbhatt, I'm assuming you're using the Amplitude-Swift SDK based on the version number (Please let me know if this is not the case!), and I'm unable to reproduce the issue with standard ints/floats or ints/floats wrapped in an NSNumber. Is it possible that these properties are not enabled in your tracking plan? (In Amplitude, Data-> Tracking Plan, more details) |
Hi @crleona yes we are using the Amplitude-Swift SDK and have recently migrated from the Objc SDK. The properties are enabled in the tracking plan as we use the same plan for both Android and iOS but the issue is reported only for iOS.
this is the debug print from the Amplitude SDK function where i can see the event properties id and amount but on the dashboard i can only see
|
[Update]
and using double value instead of decimal
seems like Decimal values are ignored in event properties, let us know if this is a bug or an expected behaviour |
The Can I ask for your use case for the additional precision of |
Thanks, To be honest like so many aspects of programming, the short answer is: it depends i would say it was a design decision from the previous devs as the app has multiple currencies and values to deal with and Decimal makes precision easier. it only came into notice when values were missing from Amplitude. none the less it makes a good case for us to discuss if we can adopt a Double instead of Decimal. |
Ah ok, I can see where that makes sense for currency. Still, I'd prefer to make the loss in precision a bit more explicit and handle the downcast before calling into Amplitude. But, please reopen this issue if casting to double doesn't work for you. Thanks! |
Expected Behavior
The expected behavior is that all event properties, including integers and decimals such as amount and id, should be visible and available in the Amplitude dashboard for analysis. All properties should be correctly captured and displayed alongside other string properties like name and email.
Current Behavior
When observing events in the Amplitude dashboard, properties that are of type integer and decimal (e.g., amount, id) are missing. Other properties like name and email are visible and recorded as expected.
Possible Solution
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: