gpt4 book ai didi

google-analytics - Universal Analytics (analytics.js) 忽略自己的流量

转载 作者:行者123 更新时间:2023-12-03 15:27:03 28 4
gpt4 key购买 nike

从谷歌的文档:

The analytics.js snippet is part of Universal Analytics, which is currently in public beta. New users should use analytics.js. Existing ga.js users should create a new web property for analytics.js and dual tag their site. It is perfectly safe to include both ga.js and analytics.js snippets on the same page.



但是,我似乎找不到设置过滤器以使用 cookie 排除我自己的流量的方法。有 this for ga.js ,但据我所知,无法使用 analytics.js 设置自定义变量,并且我可以使用自定义维度。

编辑:到目前为止我所做的:
  • Set up a custom dimension called 'ignore' in GA via the UI
  • Created a filter specifying the custom dimension from step 1
  • ga('set', 'dimension1', 1);我的网站

  • 交通不被忽视

    最佳答案

    为什么不设置您自己的 cookie 并使用 opt out var 来检查它?

    window['ga-disable-UA-XXXX-Y'] = true;

    关于google-analytics - Universal Analytics (analytics.js) 忽略自己的流量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19625745/

    28 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com