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

Paypal Messaging Analytics #1161

Merged
merged 32 commits into from
Dec 20, 2023

Conversation

jaxdesmarais
Copy link
Contributor

This work is going into the paypal-messaging-feature branch

Summary of changes

  • Add started, failed, and succeeded events for PayPal Messaging feature

Checklist

  • [ ] Added a changelog entry

Authors

@jaxdesmarais jaxdesmarais requested a review from a team as a code owner December 14, 2023 16:10
@@ -141,10 +142,12 @@ extension BTPayPalMessagingClient: PayPalMessageViewEventDelegate, PayPalMessage
}

public func onSuccess(_ paypalMessageView: PayPalMessages.PayPalMessageView) {
apiClient.sendAnalyticsEvent(BTPayPalMessagingAnalytics.succeeded)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically we have used the notify pattern in other PRs. Open to using that pattern here if folks prefer but to me it seemed odd to extract out the delegate call below and the analytics event for just success and error while keeping the rest of the delegate calls above when we aren't sending analytics.

Copy link
Contributor

@hollabaq86 hollabaq86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, let's keep it simple and build out from there.

Do we have test coverage for events being sent?

@jaxdesmarais
Copy link
Contributor Author

Do we have test coverage for events being sent?

There is a follow up ticket as a whole for testing this feature. Since this is going into a feature branch we wanted to keep the PRs small/digestible. But there will be tests - that will be the next PR once the current 3 are merged in. 😄

@hollabaq86
Copy link
Contributor

@jaxdesmarais ahhhh I see. Carry on!

Base automatically changed from paypal-messaging-demo-app to paypal-messaging-feature December 20, 2023 14:16
# Conflicts:
#	Braintree.xcodeproj/project.pbxproj
#	CHANGELOG.md
#	Demo/Application/Features/PayPalMessagingViewController.swift
#	Sources/BraintreePayPalMessaging/BTPayPalMessagingDelegate.swift
#	Sources/BraintreePayPalMessaging/BTPayPalMessagingError.swift
#	Sources/BraintreePayPalMessaging/BTPayPalMessagingLogoType.swift
#	Sources/BraintreePayPalMessaging/BTPayPalMessagingRequest.swift
#	Sources/BraintreePayPalMessaging/BTPayPalMessagingView.swift
# Conflicts:
#	Braintree.xcodeproj/project.pbxproj
#	CHANGELOG.md
#	Demo/Application/Features/PayPalMessagingViewController.swift
#	Sources/BraintreePayPalMessaging/BTPayPalMessagingDelegate.swift
#	Sources/BraintreePayPalMessaging/BTPayPalMessagingError.swift
#	Sources/BraintreePayPalMessaging/BTPayPalMessagingLogoType.swift
#	Sources/BraintreePayPalMessaging/BTPayPalMessagingRequest.swift
#	Sources/BraintreePayPalMessaging/BTPayPalMessagingView.swift
@jaxdesmarais jaxdesmarais merged commit 805835c into paypal-messaging-feature Dec 20, 2023
7 checks passed
@jaxdesmarais jaxdesmarais deleted the paypal-messaging-analytics branch December 20, 2023 14:50
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.

5 participants