|
|
2 [5 v+ y2 S, c0 Z4 H3 R8 d4 S- <html xmlns="http://www.w3.org/1999/xhtml">8 a. I6 @% x+ x6 R) ^ s
- <head>
& n# X% H% p# X- Y2 o - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> r8 T! W; `) c9 g, o
- <title> Afilter Tracker Google 广告点击追踪演示</title>$ K1 z) i( F7 q4 Y
- <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
: z- h4 W! r- q% s* X! h9 g - <script type="text/javascript">
5 x9 v$ { J% f: m - ; k8 X; X' c- j# N% U
- var isOverGoogleAd = false;
0 f. O5 ^$ N' K+ v' B/ a, a0 W2 ^1 A - var ad = /adsbygoogle/;: e1 |0 O i9 T A6 x
' E5 V* I" w. O8 b( H- $(document).ready(function()7 X/ x1 C, o+ L: |. [& N) l8 g+ K
- {; F* l/ }9 k! S
- $('ins').on('mouseover', function () {
# X8 }! N* R4 ^( o+ Q( { - if(ad.test($(this).attr('class'))){
. n, q& B9 t" S% |: c/ I. a6 e1 ? - isOverGoogleAd = true;
' y0 s9 d$ \6 g7 K" S0 U( ~ - }0 P% U2 J+ A% A
- });
& e* l; }+ U& F7 ` - $('ins').on('mouseout', function () {
3 ?/ f$ i B8 l - if(ad.test($(this).attr('class'))){: {" ^# v3 I* l* p
- isOverGoogleAd = false;9 j M+ r3 R7 A" x1 m
- }
5 Y, b6 Q0 b* R% n8 @( m% Q - });
9 o& }( N7 l' l. g; S9 ? - });
5 `2 w7 `0 M+ @: ]" k - / N3 B& G7 T& B _% M+ {/ B5 m! c: B
- $(window).blur(function(e){
( M% ~8 P1 V& u: [ - if(isOverGoogleAd){ ^5 h6 B! T# n% n) Y6 }
- //检测到点击。" F2 n* d% {- d, _
- }) s' m+ O. k: Y- O9 J! T! d/ Y; f
- });
1 F# G0 G, D4 O$ ^! ^3 X8 W2 z - </script>) U/ ?) n5 \( |9 @1 ^3 z4 @
- </head>& j8 S+ \: Z7 J1 l: _
- <body>: ^) O) `5 ]' M* J: {* g
- 6 }6 E8 T9 I/ v* y: i5 Z; { t
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
8 m6 S( ^2 B& b7 t1 I8 ^ - <!-- qym -->9 ^9 ^4 b) W" a* s9 @
- <ins class='adsbygoogle'7 ?2 z9 T6 W# Y# N. ]2 F. n
- style='display:inline-block;width:970px;height:90px'7 T* E# v$ _% l% ~# @( M! q
- data-ad-client='ca-pub-111111111111111'& z z0 n C4 R; O; c8 z0 T
- data-ad-slot='1111111111'></ins>
7 o' t8 Y( _- x5 Z. G$ f% w - <script>) e0 Z2 q) d# I
- (adsbygoogle = window.adsbygoogle || []).push({});2 Q% {2 K8 r3 W" y: m n
- </script>
+ p, ~: \) l L6 y% x, \ - ! D n/ _: [$ E0 a; B9 X* W
- </body>
1 @& B( U6 Z3 \* O! B - </html>
复制代码
) }8 k/ k6 [& W" a: u+ ^, Z. c0 d4 c
Google Adsense 广告点击追踪的代码,亲测有效。6 U' w( C, _+ s x
0 V8 h- U6 ^& E
配合点击追踪 对于那些买流量做adsense的 很有帮助。7 B! p: |- U' G" s
$ s: |7 S0 b3 v |
评分
-
查看全部评分
|