-
Notifications
You must be signed in to change notification settings - Fork 794
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
Widgets: Record events for the Simple Payments widget #9803
Widgets: Record events for the Simple Payments widget #9803
Conversation
@Automattic/jetpack-crew 👋 Also, we should probably also track when we insert or remove the Simple Payments widget, but I'm wondering if we already track that "globally" somehow. And another doubt: our analytics lib forces us to prepend @gwwar You mentioned a |
Not sure if it'd be too difficult to track, but I think the initial click on the blue edit pencil (or initial load of the form) in the customizer would be interesting. Though I imagine we're smart enough to de-dupe events for users on a single session. |
@gwwar I think that clicking the blue pencils in the preview or opening a widget via the menu, those are (should be?) tracked independently of their widget. In other words, if the pencil doesn't record any events, we (or maybe the JP folks? 😛) should take care of that on a higher level, and not only for this widget. |
This comment has been minimized.
This comment has been minimized.
This PR looks like it might contain user tracking functions. We need to make sure that it is GDPR Compliant. Rules triggering this positive scan:
cc: @pesieminski |
9ee1682
to
81090c3
Compare
20f0b95
to
f9a214c
Compare
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 @Copons I think this looks correct. I did some light smoke testing and checked to see if the jetpack tracks event appeared. I'll of course defer to any Jetpack convention and if we need any other considerations for GDPR.
81090c3
to
f7b9338
Compare
Rebased and ready to go. @pesieminski re: GDPR |
A bit of an explanation of the changes in a9661dd:
|
* Widgets: Adds support for Simple Payment Buttons as Widgets * Simple Payments Widget: Add style overrides (#9580) Override the media query and ensure that Simple Payments widgets are always displayed as a single column. * Widgets: Only render the Simple Payments widget if its button exists (#9673) In the frontend, only show the widget if the Simple Payments shortcode is parsed successfully. In the customizer, show the widget regardless, so that it can be modified via the pencil icon. * Simple Payment Widget: Manage Products from the Customizer (#9699) * Customizer: Simple Payments Widget breaks when starting without products (#9809) * Widgets: Hide Simple Payments create and edit buttons in widgets.php (#9811) * Widgets: Record events for the Simple Payments widget (#9803) * Widgets: Add Plan Check to the Simple Payments Widget (#9824) * Customizer: keep Simple Payments Widget Customizer in sync between instances (#9814) * Customizer: improves price validation on the Simple Payments Widget Customizer * Customizer: improves the behaviour of the action buttons on the Simple Payments Widget Customizer
Fixes Automattic/wp-calypso#25484
Add metrics for the Simple Payments widget.
Changes proposed in this Pull Request:
jetpack_wpa_simple_payments_button_create
jetpack_wpa_simple_payments_button_update
jetpack_wpa_simple_payments_button_delete
The extra event properties are the same as in Calypso: id, price, and currency for create and update; only id for delete.
simple_payments
group:button_created
button_updated
button_deleted
Testing instructions:
I'm not sure how to properly test this on WPCOM while it's still a PR to be merged into a feature branch.