Inconsistencies in Analytics tracking exclusions switch #5243
Labels
Module: Analytics
Google Analytics module related issues
P2
Low priority
Type: Bug
Something isn't working
Bug Description
There are a few minor inconsistencies with the Analytics tracking exclusion switches.
One is an odd wording case if both "All logged-in users" and "Users that can write posts" are selected, the settings view shows these as a comma-separated list of separate values. If "All logged in users" this obviously includes any other subset so this should be the only thing shown.
Secondarily, there is a full-stop at the end of one of the settings view shown below.
Steps to reproduce
Screenshots
Primary issue
Secondary copy issue
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
sanitize_callback
so that if the new value includesloggedinUsers
, the value becomes only an array with this one valuesite-kit-wp/assets/js/modules/analytics/components/settings/SettingsView.js
Line 334 in f527d5d
site-kit-wp/assets/js/modules/analytics/components/settings/SettingsView.js
Line 168 in f527d5d
Test Coverage
SettingsTest
to exercise this functionalityQA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: