Skip to content

Add GA event tracking for the "connect more services" notification. #12029

@techanvil

Description

@techanvil

Feature Description

GA events should be added to keep track of interaction with the "connect more services" notification (see #11818).


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The following GA events should be tracked for the given actions. See the GA events sheet.
  • These changes are only active when the setupFlowRefresh feature flag is enabled.
Event Name Category Trigger Condition
view_notification {viewContext}_connect-more-services-notification element visibility user views the "connect more services" notification
confirm_notification {viewContext}_connect-more-services-notification click user clicks the "Connect more services" button on the notification
dismiss_notification {viewContext}_connect-more-services-notification click user clicks the "Maybe later" or "Don't show again" button to dismiss the notification
tooltip_view {viewContext}_connect-more-services-notification element visibility user views the tooltip pointing to the Settings menu item that is shown when dismissing the notification
tooltip_dismiss {viewContext}_connect-more-services-notification click user clicks "Got it" or "X" to close the tooltip
_____________________ _____________________________________________________ __________________ __________________________________________

Implementation Brief

  • In assets/js/components/notifications/ConnectMoreServices.tsx
    • Pass gaTrackingEventArgs to BannerNotification component, like it is passed in ModuleSetupSuccessNotification component here.
    • The category property should be ${ viewContext }_connect-more-services-notification.

Test Coverage

  • Add tests for these GA tracking events in ConnectMoreServices component's tests.

QA Brief

  • Set up Site Kit with Analytics and setupFlowRefresh
  • When both Analytics and Search Console modules are active and not gathering data, the "Connect More Services" notification will be displayed
  • Verify the events are triggered per the table in AC using a tool like "GA Debug"
    • It may be helpful to enable "Preserve log" in Chrome devtools in order to preserve the GA debug logs when clicking "Connect more service"

Changelog entry

  • Add GA event tracking for user interaction with the "connect more services" notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0High priorityTeam MIssues for Squad 2Type: EnhancementImprovement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions