Skip to content

Show the Analytics setup success notification when Analytics is set up after the initial setup flow. #11617

@techanvil

Description

@techanvil

Feature Description

When Analytics is set up after the initial setup flow, via the the Connect More Services screen or a setup CTA, the Analytics setup success notification should be displayed when returning to the dashboard.


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

Acceptance criteria

  • Given that the Analytics module setup is initiated after the initial setup flow, via the the Connect More Services screen or a setup CTA:
    • The Analytics setup success notification is displayed when the user lands on the dashboard from the Key Metrics setup screen.
  • The Analytics setup success notification should not be shown when landing on the dashboard from the initial setup flow.

Implementation Brief

  • To determine if the Analytics setup is initiated from the initial setup flow, use the getQueryArg function to determine if the current URL includes the showProgress query argument.

  • Use the useFeature hook to determine if the setupFlowRefresh feature flag is enabled.

  • In assets/js/components/key-metrics-setup/KeyMetricsSetupApp.js
    • Create a new boolean variable, isInitialSetupFlow, which should be true if the setupFlowRefresh feature flag is enabled and the module setup is initiated from the initial setup flow.
    • If the isInitialSetupFlow is false, add the following query params to the dashboard url.
      • notification: Value should be authentication_success
      • slug: It would be analytics-4

Test coverage

  • Add a test to check the navigation URL when the submission happens on non-initial setup mode.

QA Brief

  1. Install and activate the Site Kit by Google Staging Proxy plugin.
  2. Enable the setupFlowRefresh feature.
  3. Set up the Site Kit plugin, but do not set up the Analytics module.
  4. Go to the dashboard after connecting Site Kit, and set up the Analytics module from Settings.
  5. Once the Key Metrics is set up and the Complete setup CTA is clicked, you will be redirected to the dashboard. Ensure that the URL contains the following query parameters:
Parameter Value
notification authentication_success
slug analytics-4

Changelog entry

  • Ensure the Analytics setup success notification is shown when Analytics is set up after the new initial setup flow.

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