This is going to be a bigger one and contains several sub-tasks.
Spike PR: https://github.com/Automattic/wp-calypso/pull/41284
cc @dubielzyk
Just a note regarding the labels (and translations) we are using for the WordPress.com plans: we should probably think of brand consistency even if the designs are showing different things (eg: we have _Personal_ / _Personal Plan_ or _eCommerce_ / _Commerce_). Here is a recent example: https://github.com/Automattic/wp-calypso/pull/41679#discussion_r418371612
Work on this is happening across these 3 PRs right now:
We'll work on combining these into a feature over Thursday.
@Automattic/ganon do you have thoughts on how to plug analytics into plans grid and if any work for it could already be started? Considering that we'll want to bring the plans grid to wp-admin and challengees to do so with domains modal are highlighted in pbAok1-HS-p2#comment-1635
Reviews on the direction for any of the PRs welcome, too!
@Automattic/ganon do you have thoughts on how to plug analytics into plans grid and if any work for it could already be started?
Can we import @automattic/calypso-analytics
into whatever cross-platform bundle we create?
I'm probably missing some subtleties here, but I can't see a reason not to.
If so, then the "how" is solved and it's just a matter of deciding what you need to track. And we're only tracking enter/leave/open/close events for pages and modals, so implementation would be quick once the components are ready.
If not, then the stats library (A.K.A window._tkq
) is also loaded in wp-admin, so, if necessary we could implement a (supplementary) pared-down analytics lib for either the plans grid or, if we have to, for Gutenboarding itself.
Considering that we'll want to bring the plans grid to wp-admin and challengees to do so with domains modal are highlighted in pbAok1-HS-p2#comment-1635
The domains modal tracking (Traintracks) is another tracks call with extra props, so it's really nothing special. The concern I believe is finding the right hook to fire the event (?)
Also replied in: pbAok1-HS-p2/#comment-1678
_Edit:_
I forgot to add that for the in-Gutenboarding plans page, the only tracking we'll need is the calypso_newsite_step_enter|leave
events, along with perhaps selected_plan
as a prop on the leave event.
In wp-admin, it'd be something similar, but we'd probably want to use the calypso_newsite_modal_open
tracking event.
Show plans grid in the flow instead of Calypso one when purchasing a premium domain
@p-jackson has a draft PR going on https://github.com/Automattic/wp-calypso/pull/42028
@roo2 is making a start on mobile layout https://github.com/Automattic/wp-calypso/pull/42029
Most helpful comment
Just a note regarding the labels (and translations) we are using for the WordPress.com plans: we should probably think of brand consistency even if the designs are showing different things (eg: we have _Personal_ / _Personal Plan_ or _eCommerce_ / _Commerce_). Here is a recent example: https://github.com/Automattic/wp-calypso/pull/41679#discussion_r418371612