This is a small cleanup, as at present the Setup CTA won't actually be displayed when Analytics isn't connected due to its internal check for Analytics data availability on load. However it would be preferable to entirely avoid rendering the component when Analytics is not connected, thus avoiding redundant Analytics store lookups and so forth.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
The Audience Segmentation Setup CTA should only be rendered when the Analytics module is connected.
Implementation Brief
[ ] Include a check for Analytics being connected in the conditions for rendering AudienceSegmentationSetupCTAWidget in DashboardMainApp.
Feature Description
This is a small cleanup, as at present the Setup CTA won't actually be displayed when Analytics isn't connected due to its internal check for Analytics data availability on load. However it would be preferable to entirely avoid rendering the component when Analytics is not connected, thus avoiding redundant Analytics store lookups and so forth.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
AudienceSegmentationSetupCTAWidget
inDashboardMainApp
.https://github.com/google/site-kit-wp/blob/774ea23c2471170c96898f11c1909dedf6bc5db3/assets/js/components/DashboardMainApp.js#L262-L264
Test Coverage
QA Brief
Changelog entry