-
Notifications
You must be signed in to change notification settings - Fork 69
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 shopper Tracks events #7268
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: +6.14 kB (0%) Total Size: 1.43 MB
ℹ️ View Unchanged
|
const onPaymentRequestButtonClick = () => { | ||
console.log( 'clicked' ); | ||
onButtonClick(); | ||
}; | ||
|
||
return ( | ||
<PaymentRequestButtonElement | ||
onClick={ onButtonClick } | ||
onClick={ onPaymentRequestButtonClick } |
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.
This looks like debug code.
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 catching that!
I had some uncommitted changes. To test them please follow instructions under "Payment Request Buttons" on the Blocks checkout page.
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.
@alefesouza I am requesting another review due to the above changes :)
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.
Code looks good and events are emitted as expected, just a minor change for a code that probably should not be committed.
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.
LGTM, it worth mentioning that the event emitted on Google Pay click is wcpay_googlepay_button_click
, not ´ wcpay_gpay_button_click´ as seen on the PR description.
Thanks @alefesouza fixed the event name in 0287dc7 |
Fixes https://github.com/Automattic/woopay/issues/1907
Changes proposed in this Pull Request
This PR adds the following Tracks events
Testing instructions
Save My Info events
wcpay_checkout_woopay_save_my_info_tooltip_hover
)wcpay_checkout_save_my_info_tos_click
,wcpay_checkout_woopay_save_my_info_privacy_policy_click
)Payment Request Buttons
wcpay_gpay_button_click
andwcpay_apple_pay_button_click
with the relevantsource
property indicating the page.Page Views
wcpay_cart_page_view
andwcpay_product_page_view
events.npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge