GA4 gtag.js在Chrome中出现CookieDeprecationLabel相关错误求助
- 在Chrome浏览器中加载
gtag/js?id=...时,出现未捕获的Promise类型错误:
Uncaught (in promise) TypeError: Failed to execute 'getValue' on 'CookieDeprecationLabel':
- 错误触发位置在gtag.js的以下代码段中:
try { tc.cookieDeprecationLabel ? (a("pending"), (0, tc.cookieDeprecationLabel.getValue)().then(a)) : a("noapi") // 错误发生在此行 } catch (b) { a("error") }
更新:本地调试时发现,Stack Overflow网站同样存在该错误(至少在我的环境中复现)
内容的提问来源于stack exchange,提问作者buga
相关产品推荐
相关产品推荐

