• <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>
    

    上面代碼有兩處需要進行更改,一個是替換你在Afilter Tracker后臺綁定的追蹤域名。一個是data: {"et":4},
    這個數字是4,我是使用事件4作為在AT后臺接收事件,這個不做限定,大家看自己的10個事件哪個是空閑的就可以了,替換成對應的數字。添加事件請看wiki里,有詳細講解https://tracker.wiki/afilter-tracker/jin-jie/zhui-zong-shi-jian。
    3. 這個的原理就是當你Adsense廣告代碼被點擊的時候,廣告代碼里面的adsbygoogle這個class的點擊事件,會觸發我們添加的js腳本,腳本會把我設置的事件4傳回到Afilter Tracker,從而在推廣計劃的詳細報表里顯示出來。

    結語

    本文以wordpress為例,如果是其他靜態博客就編輯每個htm/html文件把代碼放到上面即可,如果是其他cms程序這個就需要自己找對應模板的header了。
    歡迎留言或qq交流,感謝各位的支持。

    本文由三分醉博客原創

    原文地址: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>