-
Notifications
You must be signed in to change notification settings - Fork 994
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
Add analytics to applepaycontext #4708
Conversation
additionalNonPIIParams: [ | ||
"error_message": errorMessage, | ||
]) | ||
self.analyticsClient.log(analytic: errorAnalytic, apiClient: self.apiClient) | ||
handleFinalState(.error, intentCreationError) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is handleFinalState? Can we make the analytics calls in there to consolidate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback! I was trying to get unique messages populated in the handleFinalState, but passing only the analytic seems to make the code cleaner.
After this merges should we add these events to https://trailhead.corp.stripe.com/docs/mobile-sdk/analytics-notes? |
Summary
Add instrumentation to apple pay context by adding analytics
Motivation
Need analytics
Testing
Looking into writing mocked tests
Changelog