Add which dashboard is in use to Site Health Information #7119
Labels
Good First Issue
Good first issue for new engineers
Module: Analytics
Google Analytics module related issues
P1
Medium priority
Type: Enhancement
Improvement of an existing feature
Type: Support
Support request
Feature Description
As discussed previously with @aaemnnosttv it would be useful for the support team to be able to see which version of the dashboard users have activated via the users Site Health Information after GA4 reporting rollout.
This is currently displayed with a label on the dashboard to users but would be even more helpful for troubleshooting and save some time to have this information in Site Health.
Add a dashboard section to the Site Health Info specifying if the user is using the UA or GA4 dashboard.
Acceptance criteria
DashboardViewIndicator
ga4Reporting
is enabledImplementation Brief
includes/Modules/Analytics.php
:get_debug_fields()
method:$fields
. Return$fields
at the end.analytics_dashboard_view
. Similar to other items, its value should also be an array with the following items:label
:Analytics dashboard view
(translatable).value
: If$settings['dashboardView']
isgoogle-analytics-4
, it should beGoogle Analytics 4 view
. Otherwise, it should beUniversal Analytics view
. The string should be translatable.debug
: It should use the raw value of$settings['dashboardView']
.$fields
variable, check if thega4Reporting
feature flag is enabled (usingFeature_Flags::enabled()
). If not,unset
theanalytics_dashboard_view
key from the$fields
array.Test Coverage
QA Brief
ga4Reporting
feature flag.Analytics dashboard view
.ga4Reporting
feature flag.Analytics dashboard view
exists and its value isUniversal Analytics view
.Analytics dashboard view
exists and its value isGoogle Analytics 4 view
.Copy site info to clipboard
copies the raw dashboard view value for theAnalytics dashboard view
setting, e.g.universal-analytics
orgoogle-analytics-4
.Changelog entry
The text was updated successfully, but these errors were encountered: