|
|
$ T. t5 U% |. K% z* y. T
- <html xmlns="http://www.w3.org/1999/xhtml">
; K. j8 f7 C) f' k - <head>
5 A9 g0 S' Y/ R; Y7 H4 ^6 g7 F - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 X! Z) x l* a- _ - <title> Afilter Tracker Google 广告点击追踪演示</title>" v& M) F% z0 }! C
- <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
1 @( ^; _/ m" H; }$ D! M( V - <script type="text/javascript">
- m+ U5 y+ b2 V: T' O4 [& O- u# F- p
+ M v C2 a0 |; z) V- var isOverGoogleAd = false;/ p o" S( H4 r6 r U ~
- var ad = /adsbygoogle/;8 }! B4 X0 m; \% g+ v: T
- 4 s; Y5 o; @" I8 M' S
- $(document).ready(function()5 b& A& t8 \4 u/ n; p6 Q
- {
" y8 b1 ?2 m# z# X - $('ins').on('mouseover', function () {
& }* P% z8 M; A% v# q i4 ? - if(ad.test($(this).attr('class'))){
F, G7 [9 {5 X, z- F - isOverGoogleAd = true;
7 X# B3 a9 K, m- E: x: _- S7 M% Z - }
# X6 k2 Q; d5 z2 b0 z- W% f% A - });
% z9 s* C- Q3 h- Z# E; W8 c - $('ins').on('mouseout', function () {0 `$ O/ V2 m$ O4 e/ q3 U
- if(ad.test($(this).attr('class'))){
+ k$ Q: q# ]% ^! O6 ^ - isOverGoogleAd = false;' L1 Y+ E: u* K
- }
, K7 c2 x% \3 _2 z- M5 v+ U2 T - });: Q' @" n+ c) e' L- M4 x
- });5 q g! Y8 h8 Z/ b# h; w
7 c5 t6 c# Z7 ?* R; ?% _- $(window).blur(function(e){
5 t1 t% S# R7 h" m t/ w/ \ - if(isOverGoogleAd){. ~% C4 T1 L9 q6 Y) @
- //检测到点击。
) \: u, g' [) Y3 t6 d - }
2 \; M" d4 z7 E0 s( q( r4 z - });
6 O. n+ T% ^3 E) F$ R( W5 E; y - </script>- ?: {3 H' _- n8 F! a3 O7 J# p
- </head>! n( e$ R- w1 x. S
- <body>
: W- M- k. c: l N - $ H, X; H- x5 @& y! o
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>" b. }# ^7 j0 E% `% V/ h b P! ^' h
- <!-- qym -->- }; D' _5 h' `5 ]/ Q5 ~& q4 R
- <ins class='adsbygoogle'
7 J' P2 S P7 z, ?" l5 ]; C - style='display:inline-block;width:970px;height:90px'5 c! g# B$ J1 S3 Z% y0 J; [; x
- data-ad-client='ca-pub-111111111111111'
2 b. A4 h" E% l, |# s9 ^ O - data-ad-slot='1111111111'></ins>; e& C% ~3 Q7 I$ Z$ K' m+ c' _% Y {" J! \
- <script>
% |6 z& ]7 u$ |8 T$ }5 G - (adsbygoogle = window.adsbygoogle || []).push({});
0 O! |5 F% J, x Y& d; A5 ^9 e3 J - </script>
7 M1 ]8 w" a/ I6 i
, }% k! ^ B. A2 z, Y1 e5 N5 G- </body>
4 ^/ ~" q+ t" |+ w/ Z: n9 A - </html>
复制代码 ! x, W, `( d7 w- r) w, D
' r- I1 j- r/ H i& |) @" A2 VGoogle Adsense 广告点击追踪的代码,亲测有效。
2 k+ @+ A6 L5 q* t, f! ~5 z! U& s3 U) u
配合点击追踪 对于那些买流量做adsense的 很有帮助。5 Q+ }) d$ g% `$ F
9 B* J% {$ k) i3 z! ]2 U3 P
|
评分
-
查看全部评分
|