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

AWS Pinpoint identifier not found - Address #364

Open
KinGwaL opened this issue Feb 22, 2023 · 1 comment
Open

AWS Pinpoint identifier not found - Address #364

KinGwaL opened this issue Feb 22, 2023 · 1 comment

Comments

@KinGwaL
Copy link

KinGwaL commented Feb 22, 2023

Hi!
Im working on AWS Pinpoint integration and everything looks amazing, but except the identify function seems can't pass the Address into Pinpoint (https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-endpoints.html) which affect the endpoint can't be used in AWS console, any missing from my side to make this work?

analytics.identify('user-id-xyz-6', {
firstName: 'bill',
lastName: 'murray',
email: 'bill@example.com',
Address: 'bill@example.com'
})

Endpoint {
Attributes {lastSessionDate: ["2023-02-22T05:10:03.909Z"], lastSession: ["641b9679-3fa0-4c5c-bf2b-a059310718d5"],…}
Demographic {AppVersion: "awesome-app-testing-123456@0.0.0", Locale: "zh_tw", Make: "Google", Model: "Chrome",…}
Location {}
Metrics {sessions: 139, pageViews: 56}
RequestId "5a73c0e7-dca8-4071-bcbd-69ec859b06e4"
User {UserId: "user-id-xyz-6",…}
}

Right now all traits is stay under Endpoint.User object, I would like to see any quick around to make Address under Endpoint object.
Thank you!

@DavidWells
Copy link
Owner

Oh interesting. What is Address used for?

Yeah the object goes into the User.UserAttributes right now here https://github.com/DavidWells/analytics/blob/master/packages/analytics-plugin-aws-pinpoint/src/browser.js#L301

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

2 participants