-
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
Google Tag settings are not saved when creating a new tag using Set up a new property in Analytics settings #6767
Comments
IB ✅ |
QA Update
|
@mohitwp It looks like what is happening there is correct—the GTE tag (eg the When it's disabled, the Measurement ID is being used. I've updated the QA Brief a bit to clarify that—the wording was admittedly a bit confusing 😅 |
QA Update ✅Thank you ! @tofumatt
Recording.285.mp4 |
Bug Description
This issue was discovered in Bug Bash by @mohitwp and @techanvil.
When creating a new Google tag as a result of selecting "Set up a new property" in the Analytics settings, upon creation of the property, the Google tag settings can be seen to be set, for example here in the JS console.
However, refresh the page, and the settings vanish, either having become unset, or not being saved in the first instance:
In this situation, there is no Google tag setting so the front-end will use the measurement ID in the gtag.
Steps to reproduce
gteSupport
feature flag enabled.getSettings()
selector, where the Google tag settings can be seen to be set. However these do not appear to be persisted in the backend. Note, do not navigate to the Dashboard as this may trigger the Google tag sync.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
assets/js/modules/analytics-4/datastore/settings.js
:submitChanges
function, addawait
before both thedispatch
calls toupdateSettingsForMeasurementID
.Test Coverage
QA Brief
gteSupport
feature flag enabled.googlesitekit.data.select('modules/analytics-4').getSettings()
- the Google tag just created should be returned.Changelog entry
The text was updated successfully, but these errors were encountered: