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 290 forks source link

New Search Funnel widget still showing legacy blue zero data box #4571

Closed felixarntz closed 2 years ago

felixarntz commented 2 years ago

When there is no Search Console data to display (to clarify: "zero data", not "gathering data"), the Search Funnel widget still shows the legacy blue CTA - which per #4085 and #4086 should only be shown if the service is actually gathering data. This should be fixed - it is especially problematic in the case that Analytics isn't activated yet, in which case that CTA will not be shown either.

In other words, the below UI should only be shown if Search Console is actually gathering data. Currently, it is also being shown when Search Console report has zero data, regardless of the "gathering data" situation.

Screen Shot 2021-12-16 at 9 37 56 AM

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

felixarntz commented 2 years ago

@asvinb The IB is almost good to go, except for one thing: Wherever we add isGatheringData checks for analytics, we need to make sure they only run if the analytics module is also active and connected. That limitation, which especially is relevant for assets/js/modules/search-console/components/dashboard/SearchFunnelWidget/index.js where none of those checks are present is currently missing from the IB. In that file, if analytics isn't active and connected, the request shouldn't be made so it shouldn't impact the component's "loading" state.

asvinb commented 2 years ago

Thanks @felixarntz . IB updated!

felixarntz commented 2 years ago

IB ✅

wpdarren commented 2 years ago

QA Update: ❌

@hussain-t @aaemnnosttv I would like some clarification on the last point of the QAB:

Similarly if the Analytics is in gathering data state. Verify the blue CTA for Analytics gathering data should be rendered.

I have a scenario where there is either zero data or actual data in search console, but the SearchFunnelWidget (Search traffic over the last 28 days) is not appearing when Analytics is connected and gathering data. I would have expected to see the Search Console data and a gathering data box where the analytics date is shown. Am I missing something?

This is what I see in 'Traffic' on a site where it has a new Analytics account, but has search console data.

image

This is what I see in 'Traffic' on a site that has an Analytics account with data and search console data.

image

wpdarren commented 2 years ago

QA Update: ⚠️

@aaemnnosttv @tofumatt I've gone through thee QABs again on this one, and have found a scenario where Analytics has zero data and search console is gathering data. It's not really covered in the QAB, but in this situation I would expect to see the zero data on the search funnel for Analytics, and gathering data box for Search console.

image

This is basically the opposite of the issue reported yesterday, which is now fixed.

hussain-t commented 2 years ago

@wpdarren If Search Console is gathering data only Search Console Gathering Data CTA will be rendered, nothing else. In other words, Overview component (that contains Analytics data) will only ever be rendered if Search Console is not gathering data.

Please refer to @aaemnnosttv's comment on the PR. ~I will update the QAB~ I have updated the QAB.

Thanks!

wpdarren commented 2 years ago

QA Update: ✅

Verified: