Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
The Settings > Admin Settings > Visitor groups section should always be shown, with the Display visitor groups in dashboard toggle present, when the current user has set up the Audience Segmentation feature.
Implementation Brief
[x] Within SettingsAdmin:
[x] Retrieve the list of configuredAudiences for the current user via the getConfiguredAudiences() selector.
[x] Update the condition for rendering the SettingsCardVisitorGroups to be audienceSegmentationEnabled && ( isAnalyticsConnected || !!configuredAudiences )
Bug Description
This is related to Audience Segmentation
Refer to video further down.
Steps to reproduce
audienceSegmentation
feature flagScreenshots
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
SettingsAdmin
:configuredAudiences
for the current user via thegetConfiguredAudiences()
selector.SettingsCardVisitorGroups
to beaudienceSegmentationEnabled && ( isAnalyticsConnected || !!configuredAudiences )
https://github.com/google/site-kit-wp/blob/107a1d0924164ff4e8d5d76c6716f07eea5d0a4c/assets/js/components/settings/SettingsAdmin.js#L149-L153
Test Coverage
QA Brief
audienceSegmentation
feature flagChangelog entry