|
|
/ |/ q$ A9 v- ?* d& z1 }7 D
- <html xmlns="http://www.w3.org/1999/xhtml">
2 o7 Z3 ^4 H8 L1 p0 [- a - <head>6 D3 `7 S1 t6 l+ y& v
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- P. N* Y9 Y( C5 e' K- V( l3 d5 z - <title> Afilter Tracker Google 广告点击追踪演示</title>
; ]$ j8 n& {6 u# C - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
- ^4 Q9 S( L' I A - <script type="text/javascript">
, v% r. |& Z0 e/ A, z
. r3 x" n: n, n: }5 V- var isOverGoogleAd = false;
: B5 \5 F0 e8 o( g: h5 ~ - var ad = /adsbygoogle/;
- i/ ]) Y. u; o4 @ - ( v+ b: }: [1 l8 y I9 o4 Z( K
- $(document).ready(function()
9 w1 A7 @- ?; e ^8 y( w. { - {) M1 }1 C8 l- @$ H U
- $('ins').on('mouseover', function () {/ \ M: D( ~) f% t) U! G: G& N# t/ _
- if(ad.test($(this).attr('class'))){) @( G+ B$ y, A7 e$ t
- isOverGoogleAd = true;
# \; C; R5 R# a, _1 }- T8 ^9 e) W - }/ L5 u9 M6 O" G5 v! _; g: X
- });: w4 h( W4 t- v$ W1 p5 c
- $('ins').on('mouseout', function () {6 n7 E: G7 [1 h" z" K: ^7 Q0 `
- if(ad.test($(this).attr('class'))){3 o6 n. \; O7 B
- isOverGoogleAd = false;
2 r. E( E* W E- Y( v6 a - }" R* I$ }% j8 A
- });$ C W% n! l6 V$ ~( z0 v* ]
- });2 Y$ ]( O( R7 E
- " z' @. B/ o1 }
- $(window).blur(function(e){
* d/ ~) I& w; m/ Z - if(isOverGoogleAd){# r4 z6 J: q5 _
- //检测到点击。
1 n- B! P0 S3 J! E9 d* l - }( T0 G' Z( \8 V
- });
6 `, i: G$ y5 K0 h! }; x% o; Y. m, T - </script>, o3 h5 z- m# C1 j* h/ h/ ~) ]
- </head>( y; N; N4 n) H% K
- <body>
8 p% ^, \; R, f3 a - 5 G; g5 O7 {' K a" Z
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
7 _5 y8 [5 r& N - <!-- qym -->" R- b. J) o/ t7 W( C3 r2 `$ |9 ^
- <ins class='adsbygoogle'" K5 y" B* ?5 f( U
- style='display:inline-block;width:970px;height:90px'! f, C0 T$ \ N. Q5 ^* y
- data-ad-client='ca-pub-111111111111111'7 f( c2 Q1 a% E1 I
- data-ad-slot='1111111111'></ins>- q" I9 v$ s3 a( q
- <script>4 ]9 u! Q: F4 t& a# x9 ~3 \+ D1 U
- (adsbygoogle = window.adsbygoogle || []).push({});5 F6 Y! E: q6 ?7 e
- </script>* }( L/ U! e2 c4 _
- , [: G2 B6 s9 b; v( H/ u
- </body>
" |2 ?, X4 r! g( x$ Z6 | - </html>
复制代码 * l% y8 c, @8 N( b9 Y) N# Q
7 H/ H- Y1 u6 {9 f
Google Adsense 广告点击追踪的代码,亲测有效。2 C0 C2 T. {! ?- u
3 d" \+ w7 z: w! Q& S6 O配合点击追踪 对于那些买流量做adsense的 很有帮助。* I7 U. o" d! i- M) C, @3 m
8 n" C: m% P8 ~0 o. U E0 j
|
评分
-
查看全部评分
|