google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.25k stars 292 forks source link

Connect Analytics CTA does not appear when Analytics is disconnected, and Settings section disappears #9442

Open techanvil opened 1 month ago

techanvil commented 1 month ago

Bug Description

Steps to reproduce

  1. Setup the Audience Segmentation feature.
  2. Disconnect Analytics and navigate to the dashboard.
  3. The Audiences Widget Area will not be shown at all, while it should display the Connect Analytics CTA.
  4. Navigate to the Settings > Admin Settings screen.
  5. The "Visitor groups" section will not be visible, while it's expected to be showing the "Display visitor groups in dashboard" toggle.

Additional Context


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

Acceptance criteria

Implementation Brief

Test Coverage

QA Brief

Changelog entry

aaemnnosttv commented 1 month ago

@techanvil I must have missed this during UX review because I feel that the expectation as a wholly Analytics-powered feature should be that it no longer has a presence on the dashboard when disconnected (aside from perhaps a generic CTA to connect GA as when originally setting up) just like any other. It seems this has been conceptually modeled after Key Metrics which was the first instance where such a "GA disconnected" informational banner was introduced because nearly all metrics come from GA but not all which made it a dependency. It's also possible because KM has its own settings which are independent from all modules. Given audiences are specific to GA, this doesn't seem like something we should do, and instead the UX should be updated to reflect this.

This will require some additional conversations I'm sure, but even if this was previously discussed I'd like to revisit it before we move forward here. This may affect other issues in motion or hopefully not any which have been already been done, but if so please let me know.

techanvil commented 1 month ago

Thanks @aaemnnosttv, that makes sense to me. We have already implemented the Connect CTA Banner, but we can simply back that code out if we decide not to include it. It's not something we need to do for the bug bash as the code path for showing it is simply no longer reached and the feature is effectively reset when Analytics is disconnected.

I've marked this as a P2 and moved it to the Backlog so we can continue the conversation post bug bash and make the call on how to proceed. Cc @ivonac4