Tagmanager error:"Not found or permission denied." console error showing when user selects different tag manager a/c. #8316
Labels
Good First Issue
Good first issue for new engineers
Module: Tag Manager
Google Tag Manager module related issues
P1
Medium priority
Type: Bug
Something isn't working
Bug Description
On selecting different tag manager a/c from drop down during Tag manager set up or after set up under settings throw console error.
googlesitekit-api-6b06a5c9b165bf7e28a4.js:3 Google Site Kit API Error method:GET datapoint:live-container-version type:modules identifier:tagmanager error:"Not found or permission denied."
It is confusing because when I selected one a/c as you can see in below screenshots. No console error appear. After selecting another a/c when I selected that a/c again then console error appeared for the same a/c.
Steps to reproduce
OR
Screenshots
Recording.787.mp4
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
The problem seems to be that the request for the live container version is triggered as soon as the new
accountID
is set, but the oldinternalContainerID
is still set.See
site-kit-wp/assets/js/modules/analytics-4/datastore/properties.js
Lines 500 to 505 in 6ea9e69
selectAccount
to set theaccountID
and reset other IDs all at once usingsetSettings
instead of individual settersTest Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: