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
Enhanced Measurement Created Despite Disabled #8409
Comments
I was doing release testing on However, I can reproduce this by selecting an existing account and creating a new Property on it. Note that is only happens in setup, and not when creating a new property in Settings. Moving this forward. 👍 |
AC ✔️ |
IB ✅ |
QA Update: ✅Verified: Noted the need to grant the additional edit permission to create a new property/datastream to reproduce the issue:
I ran through some testing of enhanced measurement in its entirety to ensure everything worked as expected. Including testing the banner on the dashboard when the feature is disabled. Enabling and disabling the feature within settings Note: I did notice a bug, but not a regression related to the banner on the dashboard. I will create a ticket for this. em01.mp4 |
Bug Description
While completing testing on the Singular Analytics Module, I noticed that when setting up Analytics, the user creates a new property/web data stream and disables Enhanced Measurement; when the new property is created, the Enhanced Measurement toggle is changed and enabled. This is not a regression, as it occurs on the latest release.
You can see it in action on this screencast.
sam-em.1.mp4
Steps to reproduce
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
It seems we do not have an implementation for passing the enhanced measurement settings when new web data stream is created from settings, unlike how it is done in account create flow.
assets/js/modules/analytics-4/datastore/webdatastreams.js
and update thecreateWebDataStream
actionCORE_FORMS
where enhanced measurement switch component will store the current valuesite-kit-wp/assets/js/modules/analytics-4/components/common/EnhancedMeasurementSwitch.js
Lines 55 to 57 in d6c58d6
fetchCreateWebDataStream
function , asenhancedMeasurementStreamEnabled
site-kit-wp/assets/js/modules/analytics-4/datastore/webdatastreams.js
Lines 174 to 177 in d6c58d6
site-kit-wp/assets/js/modules/analytics-4/datastore/webdatastreams.js
Lines 114 to 147 in d6c58d6
Google\Site_Kit\Modules\Analytics_4
classPOST:create-webdatastream
endpoint increate_data_request
methodsite-kit-wp/includes/Modules/Analytics_4.php
Lines 1041 to 1055 in d6c58d6
enhancedMeasurementStreamEnabled
parameter, and pass it to thecreate_webdatastream
method. Make it as an optional parametercreate_webdatastream
methodenhancedMeasurementStreamEnabled
parameter is available send the request to theenhanced-measurement-settings
endpointsite-kit-wp/includes/Modules/Analytics_4.php
Lines 838 to 849 in d6c58d6
_id
propertyTest Coverage
QA Brief
Steps to reproduce
sectionedit
permission to create a new property/datastream in reproduce the issue (going through OAuth and coming back and the related automatic creation afterwards)Additional testing points
on
by defaultoff
by default or when switching between account/property/web data stream dropdown.Changelog entry
The text was updated successfully, but these errors were encountered: