Feature Description
GA events should be added to keep track of interaction with the updated help menu (see #11815 and #11877).
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The following GA event should be tracked for the given action. See the GA events sheet.
- The legacy event should no longer be tracked.
- This change is only active when the
setupFlowRefresh feature flag is enabled.
| Event Name |
Category |
Label |
Trigger |
Condition |
Details |
| click_menu_item |
{viewContext}_headerbar_helpmenu |
one of: browse_documentation, get_support, start_tour, send_feedback, get_adsense_help |
click |
user clicks an item in the help menu |
replaces legacy "click_outgoing_link" |
| __________________ |
______________________________________ |
_____________________________________ |
______ |
____________________ |
______________________ |
Implementation Brief
Test Coverage
- Add tests for
HelpMenu component.
QA Brief
- Enable the
setupFlowRefresh feature flag and navigate to the Site Kit dashboard.
- Enable the Google Analytics Debugger browser extension and open the browser developer tools console to observe tracked events.
- Click the Help menu icon in the header bar to open the help menu.
- Click each of the following menu items one at a time and verify that a GA event is fired with the event name
click_menu_item, category {viewContext}_headerbar_helpmenu, and the corresponding label:
- Browse documentation — label:
browse_documentation
- Get free support — label:
get_support
- Start a feature tour — label:
start_tour
- Send feedback — label:
send_feedback
- Activate the AdSense module, then open the help menu again and click Get help with AdSense — verify the event is fired with label
get_adsense_help.
- Verify that the legacy
click_outgoing_link event is not fired for any of the above actions while setupFlowRefresh is enabled.
- Disable the
setupFlowRefresh feature flag and repeat clicking a help menu item — verify that the legacy click_outgoing_link event is fired instead of click_menu_item.
Changelog entry
- Add GA event tracking for user interaction with the updated help menu.
Feature Description
GA events should be added to keep track of interaction with the updated help menu (see #11815 and #11877).
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
setupFlowRefreshfeature flag is enabled.Implementation Brief
assets/js/components/help/HelpMenu.jsgaEventLabelproperty for following links insetupFlowRefreshMenuItemsarray of objects.gaEventLabelvaluebrowse_documentationget_supportstart_toursend_feedbackget_adsense_helpassets/js/components/help/HelpMenuLink.jsclick_menu_iteminstead ofclick_outgoing_linktotrackEvent()whensetupFlowRefreshfeature is enabled.Test Coverage
HelpMenucomponent.QA Brief
setupFlowRefreshfeature flag and navigate to the Site Kit dashboard.click_menu_item, category{viewContext}_headerbar_helpmenu, and the corresponding label:browse_documentationget_supportstart_toursend_feedbackget_adsense_help.click_outgoing_linkevent is not fired for any of the above actions whilesetupFlowRefreshis enabled.setupFlowRefreshfeature flag and repeat clicking a help menu item — verify that the legacyclick_outgoing_linkevent is fired instead ofclick_menu_item.Changelog entry