|
|
3 u' v4 F7 D4 e _4 g
- <html xmlns="http://www.w3.org/1999/xhtml">5 P) _: g9 {5 O. }6 ]" E" U( U
- <head>
* c$ u& S9 B/ j0 p) F1 J$ Y! B$ | - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />" k" H2 K, |% B: y7 c, B
- <title> Afilter Tracker Google 广告点击追踪演示</title>4 @1 }& x/ g1 K# O( n1 |
- <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>* S4 v7 B3 t3 S3 S. i5 s" Z
- <script type="text/javascript">
3 g+ \6 h# [4 d5 p' C3 P' n* j
% \$ B( G/ m! b% s' ^+ {- var isOverGoogleAd = false;
: J/ \' }( n* F Z( u; z3 C: Y - var ad = /adsbygoogle/;* y. f6 G- _" h: X, H* u; _0 O
- , l1 o5 g8 r: H) O) y" b3 U& I' X0 B
- $(document).ready(function()+ k/ t# A9 v3 `& ]' H% H3 Q
- {- W5 g3 r M' }0 b; s' d
- $('ins').on('mouseover', function () {+ c/ [+ }! ~* a. p7 X& X+ R; u
- if(ad.test($(this).attr('class'))){" P' q$ e3 X' d, A
- isOverGoogleAd = true;
6 |8 Y0 Z3 }. s+ G8 C% l* t - }/ t# C d( s- A3 }8 P$ C
- });+ E0 w& e6 g! W' } F& u
- $('ins').on('mouseout', function () {5 J1 c; _5 g. V' p# k
- if(ad.test($(this).attr('class'))){
4 N, q+ W7 F9 D7 f& i1 j - isOverGoogleAd = false;
- k! `- i. a i6 G8 B2 m+ E- g* c - }
/ c7 l$ i- ~! M* J - });
1 {$ B- I* s6 O3 P5 L" d- h F - });8 i1 R! E3 E+ z( |8 u, h
- , D3 n/ v- G4 D
- $(window).blur(function(e){ W8 I/ n+ g: C& [! P: U* A
- if(isOverGoogleAd){
; @; s1 E( D7 ? - //检测到点击。7 F* Z$ u6 I" {7 Y2 V- m" u) Y( s
- }
! }6 \6 q% O3 v2 j7 ^8 f3 x4 N - });
L0 Y8 o6 a5 T% t0 r' _7 ?$ L) }' Y - </script> m$ P* G, f! b. g' ]
- </head>
: Z8 M2 M, o, _. X4 @ - <body>! E9 \8 w# s& W! J8 L, x4 D- L3 N
- 0 g+ @! y9 x; Q# j' Y* ~0 F
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
4 n( ?5 j% ]0 A. n: D - <!-- qym -->
6 _& c& s6 @! {' s" P# k' _0 B - <ins class='adsbygoogle'0 f2 [) l' S' }3 s+ M7 Y7 ~
- style='display:inline-block;width:970px;height:90px'1 C; H6 a3 v% r
- data-ad-client='ca-pub-111111111111111'$ `3 m6 V* d$ U) F6 ?
- data-ad-slot='1111111111'></ins>8 ~- W& e% n" M- D E& S
- <script>
1 P9 E: I" q: y4 h9 L4 t - (adsbygoogle = window.adsbygoogle || []).push({});
9 `0 S. j* ]4 m8 f0 a) t9 n - </script>
- O8 F( B# n1 h" Y - , P0 k& h1 a) z* g
- </body>
/ j" y8 H0 P' Z6 b6 f' o( H - </html>
复制代码 6 t- j) L; v) O
# Q% t# A4 n i1 rGoogle Adsense 广告点击追踪的代码,亲测有效。0 W0 u) [! Y& Z& e- A
% |$ N5 \4 W q# i+ O
配合点击追踪 对于那些买流量做adsense的 很有帮助。
" O9 S+ U$ w& I7 k, \7 y! G/ n0 Z( T# [5 g
|
评分
-
查看全部评分
|