|
|
2 h" F! X* Q8 i
- <html xmlns="http://www.w3.org/1999/xhtml">" [# t2 {. @) `2 f4 W
- <head>% T/ k4 r: e ]. C/ N+ @" U/ Y7 Y
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />4 I& L- ~1 u! q4 u5 g
- <title> Afilter Tracker Google 广告点击追踪演示</title>
0 o. f ^, [. O, O' [" h P. h9 u - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>. q x2 Z! j" d* Z2 R
- <script type="text/javascript">, r3 z$ W8 _& \1 X1 R
* g# z3 P; W7 f/ g- var isOverGoogleAd = false;
9 i" _2 [+ Z$ y4 `0 R" i1 `5 q - var ad = /adsbygoogle/;- s% u" I2 m* I7 q- _
6 r6 `, G ]7 T& H4 v- $(document).ready(function(): D( ]% I& i$ e0 ^# p/ Q+ i
- {0 T$ H: p6 s9 l6 _: v# f+ x
- $('ins').on('mouseover', function () {
8 O2 ~' ?) a5 o$ W - if(ad.test($(this).attr('class'))){
9 W% A" r1 u; ]0 t8 T7 ? - isOverGoogleAd = true;$ b& |8 A5 }1 n6 X
- }* P7 `, C& a3 ?/ O7 x1 R, b
- });4 b! t- B3 G3 o3 c- }$ s4 a0 j
- $('ins').on('mouseout', function () {; P5 u' r- L7 o. T) u9 K* `
- if(ad.test($(this).attr('class'))){
( i5 j1 @+ ?; v/ {+ b - isOverGoogleAd = false;. L" T' v! G5 t- K \0 L! E+ X
- }
1 v0 P% N* \ Q( E% C - });; ^% L$ f6 v% e8 T4 P2 D/ K N
- });
8 J0 a" d* B8 c+ x+ V5 B - * ^. n4 ?, l4 p6 D
- $(window).blur(function(e){
5 A/ u+ ]; t4 ~& v* i- O q( C& q - if(isOverGoogleAd){6 f+ }. o: d' c+ |* G0 w) B. N
- //检测到点击。$ s P4 x, E% M9 |2 [
- }+ B+ t/ ]: F6 R2 T; g4 \) e& f# ?
- });* c9 \7 W% T; q0 }: L ~
- </script>, _6 ?* u" z: k0 R! C$ ]9 [! E
- </head> t. Q. ^6 g# L2 H) U o
- <body>
3 `% R# Z: ?- B4 X* J. ~ i, L6 Q - " Q5 w7 E' h- f
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
' K& z$ Y& N" T1 w- c0 K. H1 n Q: ? - <!-- qym -->
; A* [) E6 J6 h* O6 a - <ins class='adsbygoogle') e6 V$ |8 b: y% c9 P }" l9 K
- style='display:inline-block;width:970px;height:90px'5 o4 E; L/ v# t4 j* X+ c
- data-ad-client='ca-pub-111111111111111'" M$ Q, _) l5 x8 ]2 Q
- data-ad-slot='1111111111'></ins>7 s( h% S9 l/ _
- <script>
( S/ w" X) d; W5 C/ Q, g; s) k - (adsbygoogle = window.adsbygoogle || []).push({});$ M8 a" C5 Q, f6 k0 T3 C# K4 Q
- </script>
1 i+ ~# ^7 L6 V3 x5 ~ - , m. S. O, H# d
- </body>
# k, l$ t1 E( i& n2 `$ d9 Y } - </html>
复制代码 # O- s! t0 {+ b* c" @% f
' @* N$ k0 Z! \2 N) W9 nGoogle Adsense 广告点击追踪的代码,亲测有效。
: B U6 I- W/ s) o/ T4 W8 ]# Z% g" ^
) c: M3 C' N0 z S配合点击追踪 对于那些买流量做adsense的 很有帮助。4 \1 g% M1 h f1 } v, {
8 P0 a$ O4 M3 K$ X6 c0 P- V4 ]4 u |
评分
-
查看全部评分
|