英文:
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_storage
和analytics_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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论