Skip to content

After PageSpeed Insights or visitor groups is set up from the hub, "Show me" on its success notice does nothing #14216

Todo

Description

@wpdarren

Bug Description

Reported on the FDH bug bash

Once PageSpeed Insights is set up from its card, "Success! PageSpeed Insights is set up" takes the card's place, with "Got it" and "Show me". A click on "Show me" changes nothing: the page stays where it is, and the notice stays. It should open the dashboard's speed section, where PageSpeed Insights shows its report.

Visitor groups' notice does the same. After "Enable visitor groups" on its card, "Success! Visitor groups are enabled" takes the card's place, and its "Show me" changes nothing either. It should open the dashboard's visitor groups.

Steps to reproduce

  1. With the featureDiscoveryHub feature flag on and PageSpeed Insights not connected, open "Site Kit > Add Features".
  2. Click "Set up PageSpeed Insights" on its card.
  3. Click "Show me" on the success notice that takes the card's place.

Screenshots

The success notice in the card's place, with its "Show me" button

image

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

Acceptance criteria

  • When PageSpeed Insights is set up on the hub, clicking "Show me" on its success card should navigate to the dashboard and scroll to the PSI widget.
  • When visitor groups is set up on the hub, clicking "Show me" should navigate to the dashboard and scroll to the visitor groups widget.

Implementation Brief

Note: POC PR: #14251

  • In assets/js/modules/pagespeed-insights/feature-discovery/index.ts, add getURL to the pagespeed-insights feature's successNotice.cta. It returns the dashboard URL (select( CORE_SITE ).getAdminURL( 'googlesitekit-dashboard' )) with the #${ ANCHOR_ID_SPEED } hash. ANCHOR_ID_SPEED is in assets/js/googlesitekit/constants.js. The dashboard navigation scrolls to the section that matches the hash once that section is visible.
  • In assets/js/modules/analytics-4/feature-discovery/index.ts, add getURL to the visitor-groups feature's successNotice.cta. It returns select( CORE_SITE ).getAdminURL( 'googlesitekit-dashboard', { widgetArea: AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION } ).

Test Coverage

  • Add assets/js/modules/pagespeed-insights/feature-discovery/index.test.ts, following the setup in assets/js/modules/analytics-4/feature-discovery/index.test.ts (createTestRegistry(), provideSiteInfo(), registerFeatures( createFeatureDiscovery( registry ) )), covering:
    • the pagespeed-insights success notice CTA URL is the dashboard URL with the #speed hash.
  • Add a visitor-groups block to assets/js/modules/analytics-4/feature-discovery/index.test.ts covering:
    • the success notice CTA URL is the dashboard URL with widgetArea=mainDashboardTrafficAudienceSegmentation.

QA Brief

Changelog entry

Activity

  1. added
    Type: Bug
    P0
    on Nov 20, 2026
  2. added
    Team M
    on Nov 20, 2026
  3. self-assigned this
    on Nov 24, 2026
  4. techanvil commented on Nov 24, 2026

    @techanvil
    Collaborator

    IB ✅

  5. removed their assignment
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Team MType: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions