Improve tracking on new Multi-site 'Add new site' button. #98908
+51
−27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
To improving tracking on our Drive migrations from multi-site dashboard project, we are adding some changes.
When opening the Multi-site popover, triggering
calypso_sites_dashboard_new_site_action_click_open
.Do not trigger
calypso_sites_dashboard_new_site_action_click_add
just from opening the popover.triggers:
calypso_sites_dashboard_new_site_action_click_add
calypso_sites_dashboard_new_site_action_click_item
withaction: 'wordpress'
triggers:
calypso_sites_dashboard_new_site_action_click_jetpack
calypso_sites_dashboard_new_site_action_click_item
withaction: 'jetpack'
triggers:
calypso_sites_dashboard_new_site_action_click_item
withaction: 'migrate'
triggers:
calypso_sites_dashboard_new_site_action_click_import
calypso_sites_dashboard_new_site_action_click_item
withaction: 'import'
triggers:
calypso_sites_dashboard_new_site_action_click_item
withaction: 'offer'
Testing Instructions
Access the dashboard with the feature flag
/sites?flags=-sites%2Fdrive-migrations
.Start to listen to events. Click on each options from the new
Add new site
button.Check that the events work as described above.
Pre-merge Checklist