• <sup id="r8adu"></sup>
  • <sup id="r8adu"></sup>
    <dl id="r8adu"></dl>
  • <dl id="r8adu"></dl><progress id="r8adu"><tr id="r8adu"></tr></progress>
  • <li id="r8adu"><s id="r8adu"><strong id="r8adu"></strong></s></li>
  • <div id="r8adu"></div>
    <dl id="r8adu"></dl>
    <li id="r8adu"></li>
    <div id="r8adu"></div>
    <nav id="r8adu"></nav>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
    <dl id="r8adu"><menu id="r8adu"></menu></dl>
  • <div id="r8adu"></div>
    <li id="r8adu"></li>
  • <li id="r8adu"><s id="r8adu"></s></li>
  • <s id="r8adu"><rt id="r8adu"></rt></s><sup id="r8adu"><s id="r8adu"></s></sup>
    <dl id="r8adu"></dl>
  • <progress id="r8adu"></progress>
    <li id="r8adu"></li>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <dl id="r8adu"><ins id="r8adu"><thead id="r8adu"></thead></ins></dl>
    <li id="r8adu"><ins id="r8adu"></ins></li>
  • <progress id="r8adu"><tr id="r8adu"></tr></progress><dl id="r8adu"><ins id="r8adu"></ins></dl>
    <li id="r8adu"></li>
    <div id="r8adu"></div>
    <li id="r8adu"><tr id="r8adu"></tr></li>
    <li id="r8adu"></li>
  • <div id="r8adu"></div>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl><div id="r8adu"></div>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
    <div id="r8adu"></div><li id="r8adu"></li>
  • <dl id="r8adu"></dl><div id="r8adu"><span id="r8adu"><object id="r8adu"></object></span></div>
  • <progress id="r8adu"><span id="r8adu"></span></progress>
    <sup id="r8adu"><ins id="r8adu"></ins></sup>
    <progress id="r8adu"><tr id="r8adu"></tr></progress>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
    <progress id="r8adu"><tr id="r8adu"></tr></progress>
    <dl id="r8adu"></dl>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <div id="r8adu"><s id="r8adu"></s></div>
    <progress id="r8adu"></progress>
    <div id="r8adu"><span id="r8adu"></span></div>
    <div id="r8adu"><tr id="r8adu"></tr></div>
    <sup id="r8adu"></sup>
    <dl id="r8adu"><ins id="r8adu"></ins></dl><div id="r8adu"><span id="r8adu"></span></div>
  • <sup id="r8adu"><ins id="r8adu"></ins></sup>
  • <dl id="r8adu"></dl>
  • <sup id="r8adu"></sup>
  • 专注CJ联盟
    不止CJ联盟

    Afilter Tracker结合wordpress获取谷歌Adsense广告点击事件设置步骤

    Afilter Tracker可以对谷歌Adsense广告点击事件进行统计,方便更好的优化我们的站。

    ???Afilter Tracker??????wordpressè?·???è°·?-?Adsense?1??????1????o????è??????-¥éa¤???

    具体设置

    1. 对于不跑offer,只做Adsense的小伙伴,我来说下如何设置广告被点击的时候回传的事件,通过这个能更好的对流量源的子渠道进行判断,从而设定规则,确定黑白名单。
    2. 编辑wordpress主题模板里的header.php,也就是博客的头部文件。这里我以wordpress新版安装后默认的twentyseventeen这个模板为例,具体大家使用的博客模板都在/wp-content/themes这个文件夹里,找到自己正在使用的进行编辑,而不是跟我一样是twentyseventeen。

      打开文件,在之前填写如下代码:
    <script type="text/javascript">
            var isOverGoogleAd = false;
            var ad = /adsbygoogle/;
            $(document).ready(function()
            {
                $('ins').on('mouseover', function () {
                    if(ad.test($(this).attr('class'))){
                        isOverGoogleAd = true;
                    }
                });
                $('ins').on('mouseout', function () {
                    if(ad.test($(this).attr('class'))){
                        isOverGoogleAd = false;
                    }
                });
            });
            $(window).blur(function(e){
                if(isOverGoogleAd){
                    $.ajax({
                        type: "POST",
                        url: "https://你在at后台绑定的追踪域名/"+"/p/events",
                        data: {"et":4},
                        xhrFields: {withCredentials: true},
                        crossDomain: true,
                    });
                }
            });
        </script>
    

    上面代码有两处需要进行更?#27169;?#19968;个是替换你在Afilter Tracker后台绑定的追踪域名。一个是data: {"et":4},
    这个数字是4,我是使用事件4作为在AT后台接收事件,这个不做限定,大家看自己的10个事件哪个是空闲的就可以了,替换成对应的数字。添加事件请看wiki里,有详细?#27493;鈎ttps://tracker.wiki/afilter-tracker/jin-jie/zhui-zong-shi-jian。
    3. 这个的原理就是当你Adsense广告代码被点击的时候,广告代码里面的adsbygoogle这个class的点击事件,会触发我们添加的js脚本,脚本会把我设置的事件4传回到Afilter Tracker,从而在推广计划的详细报表里显?#22659;?#26469;。

    结语

    本文以wordpress为例,如果是其他静态博客就编辑每个htm/html文件把代码放到上面即可,如果是其他cms程序这个就需要自己找对应模板的header了。
    欢迎留言或qq交流,?#34892;?#21508;位的支持。

    本文由三分醉博客原创

    原文地址:Afilter Tracker结合wordpress获取谷歌Adsense广告点击事件设置步骤 – 三分醉博客

    赞(0)
    未经允许不得转载:赚刀博客 » Afilter Tracker结合wordpress获取谷歌Adsense广告点击事件设置步骤

    评论 抢沙发

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址

    赚刀博客——专注CJ联盟,不止CJ联盟

    联系小龙虾CJ联盟交流群
  • <sup id="r8adu"></sup>
  • <sup id="r8adu"></sup>
    <dl id="r8adu"></dl>
  • <dl id="r8adu"></dl><progress id="r8adu"><tr id="r8adu"></tr></progress>
  • <li id="r8adu"><s id="r8adu"><strong id="r8adu"></strong></s></li>
  • <div id="r8adu"></div>
    <dl id="r8adu"></dl>
    <li id="r8adu"></li>
    <div id="r8adu"></div>
    <nav id="r8adu"></nav>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
    <dl id="r8adu"><menu id="r8adu"></menu></dl>
  • <div id="r8adu"></div>
    <li id="r8adu"></li>
  • <li id="r8adu"><s id="r8adu"></s></li>
  • <s id="r8adu"><rt id="r8adu"></rt></s><sup id="r8adu"><s id="r8adu"></s></sup>
    <dl id="r8adu"></dl>
  • <progress id="r8adu"></progress>
    <li id="r8adu"></li>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <dl id="r8adu"><ins id="r8adu"><thead id="r8adu"></thead></ins></dl>
    <li id="r8adu"><ins id="r8adu"></ins></li>
  • <progress id="r8adu"><tr id="r8adu"></tr></progress><dl id="r8adu"><ins id="r8adu"></ins></dl>
    <li id="r8adu"></li>
    <div id="r8adu"></div>
    <li id="r8adu"><tr id="r8adu"></tr></li>
    <li id="r8adu"></li>
  • <div id="r8adu"></div>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl><div id="r8adu"></div>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
    <div id="r8adu"></div><li id="r8adu"></li>
  • <dl id="r8adu"></dl><div id="r8adu"><span id="r8adu"><object id="r8adu"></object></span></div>
  • <progress id="r8adu"><span id="r8adu"></span></progress>
    <sup id="r8adu"><ins id="r8adu"></ins></sup>
    <progress id="r8adu"><tr id="r8adu"></tr></progress>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
    <progress id="r8adu"><tr id="r8adu"></tr></progress>
    <dl id="r8adu"></dl>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <div id="r8adu"><s id="r8adu"></s></div>
    <progress id="r8adu"></progress>
    <div id="r8adu"><span id="r8adu"></span></div>
    <div id="r8adu"><tr id="r8adu"></tr></div>
    <sup id="r8adu"></sup>
    <dl id="r8adu"><ins id="r8adu"></ins></dl><div id="r8adu"><span id="r8adu"></span></div>
  • <sup id="r8adu"><ins id="r8adu"></ins></sup>
  • <dl id="r8adu"></dl>
  • <sup id="r8adu"></sup>
  • 六肖中特期期免费公开资料
  • <sup id="r8adu"></sup>
  • <sup id="r8adu"></sup>
    <dl id="r8adu"></dl>
  • <dl id="r8adu"></dl><progress id="r8adu"><tr id="r8adu"></tr></progress>
  • <li id="r8adu"><s id="r8adu"><strong id="r8adu"></strong></s></li>
  • <div id="r8adu"></div>
    <dl id="r8adu"></dl>
    <li id="r8adu"></li>
    <div id="r8adu"></div>
    <nav id="r8adu"></nav>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
    <dl id="r8adu"><menu id="r8adu"></menu></dl>
  • <div id="r8adu"></div>
    <li id="r8adu"></li>
  • <li id="r8adu"><s id="r8adu"></s></li>
  • <s id="r8adu"><rt id="r8adu"></rt></s><sup id="r8adu"><s id="r8adu"></s></sup>
    <dl id="r8adu"></dl>
  • <progress id="r8adu"></progress>
    <li id="r8adu"></li>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <dl id="r8adu"><ins id="r8adu"><thead id="r8adu"></thead></ins></dl>
    <li id="r8adu"><ins id="r8adu"></ins></li>
  • <progress id="r8adu"><tr id="r8adu"></tr></progress><dl id="r8adu"><ins id="r8adu"></ins></dl>
    <li id="r8adu"></li>
    <div id="r8adu"></div>
    <li id="r8adu"><tr id="r8adu"></tr></li>
    <li id="r8adu"></li>
  • <div id="r8adu"></div>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl><div id="r8adu"></div>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
    <div id="r8adu"></div><li id="r8adu"></li>
  • <dl id="r8adu"></dl><div id="r8adu"><span id="r8adu"><object id="r8adu"></object></span></div>
  • <progress id="r8adu"><span id="r8adu"></span></progress>
    <sup id="r8adu"><ins id="r8adu"></ins></sup>
    <progress id="r8adu"><tr id="r8adu"></tr></progress>
    <dl id="r8adu"><ins id="r8adu"></ins></dl>
    <progress id="r8adu"><tr id="r8adu"></tr></progress>
    <dl id="r8adu"></dl>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <dl id="r8adu"><ins id="r8adu"></ins></dl>
  • <div id="r8adu"><s id="r8adu"></s></div>
    <progress id="r8adu"></progress>
    <div id="r8adu"><span id="r8adu"></span></div>
    <div id="r8adu"><tr id="r8adu"></tr></div>
    <sup id="r8adu"></sup>
    <dl id="r8adu"><ins id="r8adu"></ins></dl><div id="r8adu"><span id="r8adu"></span></div>
  • <sup id="r8adu"><ins id="r8adu"></ins></sup>
  • <dl id="r8adu"></dl>
  • <sup id="r8adu"></sup>