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

Analytics - Data mismatch between CustomProperties and Pinpoint Attributes #2850

Open
1 of 13 tasks
fjnoyp opened this issue Apr 12, 2023 · 0 comments
Open
1 of 13 tasks
Assignees
Labels
analytics Issues related to the Amplify Analytics Category feature-parity A request for a feature that is fully or partially available on another platform (JS, iOS, Android) feature-request A request for a new feature or an enhancement to an existing API or category.

Comments

@fjnoyp
Copy link
Contributor

fjnoyp commented Apr 12, 2023

Description

When calling Amplify.Analytics.identifyUser or Amplify.Analytics.RecordEvent you can pass in an AnalyticsProperties (in v0) or CustomProperties (in v1) object.

CustomProperties represents attributes as a Map<String, String> but the underlying Pinpoint Endpoint attributes is a Map<String, List<String>>

We solved this issue for Pinpoint Endpoint User attributes by allowing Map<String, List<String>> in the AWSPinpointUserProfile object, but don't allow Map<String, List<String>> for setting Pinpoint Endpoint attribute.

Proposal

Allow the Pinpoint Endpoint attributes field to be set as a Map<String, List<String>> in UserProfile by:

  • Removing the UserProfile.customProperties field
  • Adding UserProfile.attributes of type Map<String, List<String>>
  • Adding UserProfile.metrics of type Map<String, double>

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Storage

Steps to Reproduce

No response

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.3.10

Amplify Flutter Version

All

Deployment Method

Amplify CLI

Schema

No response

@fjnoyp fjnoyp self-assigned this Apr 12, 2023
@fjnoyp fjnoyp added analytics Issues related to the Amplify Analytics Category feature-request A request for a new feature or an enhancement to an existing API or category. labels Apr 12, 2023
@abdallahshaban557 abdallahshaban557 added the feature-parity A request for a feature that is fully or partially available on another platform (JS, iOS, Android) label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analytics Issues related to the Amplify Analytics Category feature-parity A request for a feature that is fully or partially available on another platform (JS, iOS, Android) feature-request A request for a new feature or an enhancement to an existing API or category.
Projects
None yet
Development

No branches or pull requests

2 participants