You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GA4 gtag.js在Chrome中出现CookieDeprecationLabel相关错误求助

Chrome中gtag/js?id=...抛出CookieDeprecationLabel相关TypeError错误
  • 在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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.20 09:37:03