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

Add analytics to applepaycontext #4708

Merged
merged 5 commits into from
Mar 26, 2025
Merged

Add analytics to applepaycontext #4708

merged 5 commits into from
Mar 26, 2025

Conversation

wooj-stripe
Copy link
Collaborator

Summary

Add instrumentation to apple pay context by adding analytics

Motivation

Need analytics

Testing

Looking into writing mocked tests

Changelog

@wooj-stripe wooj-stripe marked this pull request as ready for review March 25, 2025 18:34
@wooj-stripe wooj-stripe requested review from a team as code owners March 25, 2025 18:34
additionalNonPIIParams: [
"error_message": errorMessage,
])
self.analyticsClient.log(analytic: errorAnalytic, apiClient: self.apiClient)
handleFinalState(.error, intentCreationError)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@porter-stripe
Copy link
Collaborator

After this merges should we add these events to https://trailhead.corp.stripe.com/docs/mobile-sdk/analytics-notes?

@wooj-stripe wooj-stripe enabled auto-merge (squash) March 26, 2025 21:55
@wooj-stripe wooj-stripe merged commit 2d35f4b into master Mar 26, 2025
6 checks passed
@wooj-stripe wooj-stripe deleted the wooj/applePayAnalytics branch March 26, 2025 22:06
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

Successfully merging this pull request may close these issues.

2 participants