|
|
- r8 r$ m% I1 ~. Q" C- <html xmlns="http://www.w3.org/1999/xhtml"> F W: G, g Y) O& A) h7 K
- <head>
' M/ [, H( k2 g5 [2 h2 \: f H - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2 P2 d) @) P7 @. ^3 ]# K. l - <title> Afilter Tracker Google 广告点击追踪演示</title>
1 f5 L9 w8 V, b5 h' R - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
/ \# T$ N- B/ e$ l6 e6 B$ d - <script type="text/javascript">
+ Y. _9 s# x m" Y' M4 `6 o* d
8 N" a5 o: P" r2 [- var isOverGoogleAd = false;
9 b$ {, {, s# `4 j, J - var ad = /adsbygoogle/;0 r% {* F; G$ j! U9 T( b3 A! o& E
& n) v4 x0 o1 K6 c1 Q- $(document).ready(function()3 t& N U3 T: m" \8 N& O- w
- {, [; }! Z! H/ b1 K
- $('ins').on('mouseover', function () {) t! D4 W( g Z: l. z% L
- if(ad.test($(this).attr('class'))){; @$ a3 t) j W
- isOverGoogleAd = true;9 _7 ]1 R! I8 ]
- }4 ^- Z4 E' ^! h2 X
- });
* a* o+ H' f+ E1 W2 H; J - $('ins').on('mouseout', function () {
" |8 f* @* x" Q - if(ad.test($(this).attr('class'))){1 F" `& W5 c/ M1 [7 J# M i
- isOverGoogleAd = false;' H5 K; V6 x( n! l, N9 ]
- }! b1 l+ S& s3 e
- });# X; @! u1 U V) G- t2 f" s
- });
! T% R7 z; o Q0 a* i) ? - 7 r) e" N) L; X
- $(window).blur(function(e){
4 }- H0 C4 w4 ^) @4 K( u - if(isOverGoogleAd){
. R, w* E4 c2 [. E+ l8 {6 z - //检测到点击。
2 u; v1 ^, J, o* @ b6 w+ a; ~% L - }: E1 L8 J" g! v$ Y
- });
! U' m+ q9 }1 L" g. c& a - </script>4 d% b/ |+ B5 Q( V& ~& N& w, n' R
- </head>; t3 `) @4 F- i0 ^! w. ^4 q
- <body>
! N5 ^% n) l9 g8 y2 Z1 x - 2 G! v. e W* m7 i- B# Q
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
e5 u; F4 N) Y2 M( \& u8 ?$ O$ | - <!-- qym -->' w; F$ n& F, `
- <ins class='adsbygoogle'
& c! N2 }: O) v7 c/ ?& t# t - style='display:inline-block;width:970px;height:90px'5 x O. ^9 V3 M4 t6 S$ d% Y2 J9 Y
- data-ad-client='ca-pub-111111111111111'! M" `, d& Z8 ?/ q5 _
- data-ad-slot='1111111111'></ins>1 f ]; ?/ I' q* B
- <script>' G- u. t8 t, }/ P- n
- (adsbygoogle = window.adsbygoogle || []).push({});$ T6 _% n. v% S! y
- </script>- p& h" k' v7 w/ j
- & K! y& j9 L" m1 c% x
- </body>7 ]( m* H9 j; O2 V& l" \* C
- </html>
复制代码
& ] h4 k( O% K) L# K# Q5 M8 n
1 g6 w, L$ p \7 v; ^Google Adsense 广告点击追踪的代码,亲测有效。* ~3 i% `, o1 c3 U0 Q G
+ h( L2 P+ u D/ X* E0 q2 x
配合点击追踪 对于那些买流量做adsense的 很有帮助。2 ]- z3 M S2 B5 I8 l/ P# A
d9 Q& T @" I
|
评分
-
查看全部评分
|