-
Notifications
You must be signed in to change notification settings - Fork 144
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
Fastlane analytics #3175
base: fastlane
Are you sure you want to change the base?
Fastlane analytics #3175
Conversation
|
Size Change: +1.06 kB (+0.13%) Total Size: 810 kB
ℹ️ View Unchanged
|
|
size-limit report 📦
|
/** | ||
* Fastlane | ||
*/ | ||
// CHECK: Do we always append the prop even if it is not used? e.g. merchants not using fastlane |
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.
Not sure what is the best here
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.
For other, universal, props we want to know what config the merchant has ended up with, be it something they've set deliberately or a default that we've set for them.
But for something opt-in like Fastlane, we should only send it if it's relevant to their setup, imo
infoType: InfoEventTypes.clicked, | ||
target: 'fastlane_signup_consent_toggle', | ||
configData: { | ||
isToggleOn: newValue |
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.
Are there any backend changes needed?
Have you tested that we don't get network errors sending in new properties like "isToggleOn", "isFastlaneSignupRendered"?
this.props.modules?.analytics.sendAnalytics('dropin', { | ||
type: ANALYTICS_EVENT.info, | ||
infoType: InfoEventTypes.clicked, | ||
target: 'otherpaymentmethod_button' |
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.
Similar to my comment above - can the backend handle this target value, "otherpaymentmethod_button" without errors?
Summary