-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UA settings hidden from an Admin with no access #7028
Labels
Exp: SP
Module: Analytics
Google Analytics module related issues
P1
Medium priority
Type: Bug
Something isn't working
Comments
18 tasks
IB ✅ |
mxbclang
changed the title
UA settings hidden from an Admin with no access
[HOLD] UA settings hidden from an Admin with no access
May 17, 2023
mxbclang
changed the title
[HOLD] UA settings hidden from an Admin with no access
UA settings hidden from an Admin with no access
May 17, 2023
QA Update ✅
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Exp: SP
Module: Analytics
Google Analytics module related issues
P1
Medium priority
Type: Bug
Something isn't working
Bug Description
With the
ga4Reporting
feature flag enabled, when an authenticated admin does not have access to the connected UA property, then they are not shown the UA settings in the Settings Edit Form. These should be visible but "disabled" as they currently are with the feature flag disabled.Steps to reproduce
ga4Reporting
feature flag.Screenshots
Screen.Recording.2023-05-09.at.15.59.32.mov
Additional Context
While working on #7004, I realised there are a few places in the code which completely hide the "Universal Analytics" toggle and settings if there are no properties available. I believe we would still want to show the toggle and the settings but they should be disabled like the rest of the settings. We simply have to differentiate between when the properties aren't available due to no access or because there really aren't any properties available for the selected account. Some small tweaks will be required below:
site-kit-wp/assets/js/modules/analytics/components/common/AccountSelect.js
Lines 72 to 76 in b5177d3
site-kit-wp/assets/js/modules/analytics/components/settings/SettingsForm.js
Lines 142 to 154 in b5177d3
site-kit-wp/assets/js/modules/analytics/components/common/EnableUniversalAnalytics.js
Lines 115 to 117 in b5177d3
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
ga4Reporting
feature flag enabled, the functionality introduced for Analytics settings in Restrict editing module entity settings to users who have access #4825 should work as before.Implementation Brief
EnableUniversalAnalytics
component so that it is only rendered when the settings should be rendered.Test Coverage
QA Brief
ga4Reporting
feature flag.Changelog entry
The text was updated successfully, but these errors were encountered: