-
Notifications
You must be signed in to change notification settings - Fork 337
Closed
Labels
P0High priorityHigh priorityTeam MIssues for Squad 2Issues for Squad 2Type: EnhancementImprovement of an existing featureImprovement of an existing feature
Description
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
setupFlowRefreshfeature 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
- In
assets/js/components/help/HelpMenu.js- Add
gaEventLabelproperty for following links insetupFlowRefreshMenuItemsarray of objects.Link gaEventLabelvalueBrowse documentation browse_documentationGet free support get_supportStart a feature tour start_tourSend feedback send_feedbackGet help with AdSense get_adsense_help
- Add
- In
assets/js/components/help/HelpMenuLink.js- Pass
click_menu_iteminstead ofclick_outgoing_linktotrackEvent()whensetupFlowRefreshfeature is enabled.
- Pass
Test Coverage
- Add tests for
HelpMenucomponent.
QA Brief
- Enable the
setupFlowRefreshfeature 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
- Browse documentation — label:
- 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_linkevent is not fired for any of the above actions whilesetupFlowRefreshis enabled. - Disable the
setupFlowRefreshfeature flag and repeat clicking a help menu item — verify that the legacyclick_outgoing_linkevent is fired instead ofclick_menu_item.
Changelog entry
- Add GA event tracking for user interaction with the updated help menu.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P0High priorityHigh priorityTeam MIssues for Squad 2Issues for Squad 2Type: EnhancementImprovement of an existing featureImprovement of an existing feature