【问题标题】:Universal analytics with custom dimensions for adblock具有自定义维度的通用分析广告块
【发布时间】:2013-07-03 17:52:58
【问题描述】:

我正在尝试弄清楚如何使用 adblock 插件来跟踪人们。 例如 Adblock Plus 设置 div 显示:无。

我在 Google Analytics(分析)中创建了一个自定义维度。

我没有收到任何错误,但感觉不会像我打算的那样工作:

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-xxxxxx', 'domain.de');
ga('send', 'pageview');


if ($(".werbung").css('display') == 'none')
        {
            ga('set', 'Adblock', 'Ja');

        }    
    else
        {
            ga('set', 'Adblock', 'Nein');

        }   
</script>

任何帮助表示赞赏。

【问题讨论】:

标签: javascript jquery analytics adblock


【解决方案1】:

有几种方法可以处理这种情况。其中一个与您在提供的示例中提到的完全相同,但您可以在此处查看其他几个:http://technicalmarketing.io/analytics/track-how-many-of-your-visitors-use-ad-block-style-plugins-in-google-analytics/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多