GA4 在跨域跟踪未设置时添加 _gl 参数

huangapple go评论56阅读模式
英文:

GA4 adding _gl parameter when cross-domain tracking is not set up

问题

I have UA and GA4 set up on a site for some time now.

Suddenly a couple of weeks ago, in-page anchor links started to have parameters like the below added to them, causing the page to reload on click.

The parameters look like this:

_gl=1*1sgncz4*_up*MQ..*_ga*NTU1ODYzNjQxLjE2ODM3Mjk0MTI.*_ga_BC9YG14JH3*MTY4Mz cyODM5MS4zLjEuMTY4MzcyOTQxOC4wLjAuMA..

I'm aware this could be for cross-domain tracking, but have nothing set up in GTM or GA4 for cross domain, and have also turned off all enhanced measurement / in-page link events but still had no luck finding what causes this.

英文:

I have UA and GA4 set up on a site for some time now.

Suddenly a couple of weeks ago, in-page anchor links started to have parameters like the below added to them, causing the page to reload on click.

The parameters look like this:

_gl=1*1sgncz4*_up*MQ..*_ga*NTU1ODYzNjQxLjE2ODM3Mjk0MTI.*_ga_BC9YG14JH3*MTY4Mz 
 cyODM5MS4zLjEuMTY4MzcyOTQxOC4wLjAuMA..

I'm aware this could be for cross-domain tracking, but have nothing set up in GTM or GA4 for cross domain, and have also turned off all enhanced mesaurement / in-page link events but still had no luck finding what causes this.

答案1

得分: 1

如果ad_storageanalytics_storage的Cookie同意设置为denied,这种情况可能会发生。它允许通过URL传递ID参数,而不将它们存储在Cookie中。

您可以使用Tag Assistant进行调试,或者如果您是高级用户,可以查找发送到GA4的请求中的gcs参数。gcs反映了同意状态,例如,gcs=G111表示所有同意都已授予。

希望这有所帮助。

英文:

It can happen if ad_storage and analytics_storage cookie consents are set to denied. It allow passing ID parameters through URL without storing them in cookies.

You can debug it using Tag Assistant or, if you're advanced user, looking for gcs parameter in requests sent to GA4. gcs reflects consent status, for example, gcs=G111 means all consents are granted.

Hope it will help.

huangapple
  • 本文由 发表于 2023年5月10日 23:13:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/76220095.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定