|
2 [5 ?+ \6 V! F1 K0 `; Z
- <html xmlns="http://www.w3.org/1999/xhtml">( Q" y" p) o0 ]
- <head>
0 c* I: s5 G2 f3 `; | - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
" B4 q' j/ S7 u) \! @ - <title> Afilter Tracker Google 广告点击追踪演示</title>
3 ]5 ] [" Y8 h6 u+ Z4 V+ _ - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
4 F. ]0 r" K o' j - <script type="text/javascript">
; U& t0 Y: a0 x
0 e" c- ]; L$ z3 e: I- var isOverGoogleAd = false;
3 J1 F) E% @* T Z r, K; P - var ad = /adsbygoogle/;
, T) A, |5 i8 }( `5 J - 0 N8 Y3 d a& g! l2 q& T
- $(document).ready(function()! b f6 R. j; M
- {
5 E; \9 ~6 f6 E2 U" U" u# [ - $('ins').on('mouseover', function () {: i* a! g- c& b8 g6 Z
- if(ad.test($(this).attr('class'))){$ N: ~' p; G) T8 g
- isOverGoogleAd = true;
; i' a& b4 }" ]$ D7 X - }1 i! e5 w. C" Q7 [/ `/ Z, k
- });
2 j+ M+ ]- ~0 w7 A8 t) s - $('ins').on('mouseout', function () {8 w$ q! s5 [7 p( P4 s4 [3 P2 g
- if(ad.test($(this).attr('class'))){$ w0 L+ q. {) c7 Y4 A
- isOverGoogleAd = false;$ b" n8 ~ R; Y$ C% t7 |- Q4 c9 S% H
- }) V& o8 g# H; R! V* x1 h, E
- });; Y* j. Q+ x3 e7 e+ z7 @5 I- C d
- });
2 ?. d; b/ o4 |
, t6 o& R0 @; ]1 ^- $(window).blur(function(e){
?9 I* p p) }) Z/ s) ]; y: F5 R - if(isOverGoogleAd){3 R& l2 M- d# e1 O1 W
- //检测到点击。: e) U( w, q. R! e9 {8 c9 O: [. x
- }
5 u" ?4 g0 v) i) K q3 n& [4 ? - });8 b4 f- e5 \! ]* ~
- </script>
( w& \0 l- W) Y2 z+ k7 j/ @2 f) s - </head>0 H1 q; i4 G7 f) _
- <body>+ v* ~( V% h1 W; ?3 [8 ~
@0 K( [8 I. G" i; O- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
6 b4 I) W3 ^1 x4 O- Z# @; H+ X8 j - <!-- qym -->
( v+ i" U3 Q8 k8 L - <ins class='adsbygoogle'; F1 O- {4 r3 r) |, y5 A
- style='display:inline-block;width:970px;height:90px'$ Z+ Z/ Q. w2 ^
- data-ad-client='ca-pub-111111111111111'
9 b9 U, `6 Z) v |5 r - data-ad-slot='1111111111'></ins>
0 c+ u7 B7 i D - <script>. G, z& ?/ G- m& G! P0 ^
- (adsbygoogle = window.adsbygoogle || []).push({});/ q+ T6 j! H6 E. ^. J
- </script>( E& O4 V! F8 p* T. H! ?- e" \
9 x" }* r, [( N! C- </body>
V& o6 N9 B) l( _8 s' I - </html>
复制代码 5 o6 O) g5 Z! \) A& ~5 K
/ l+ U4 r/ ~3 p: X n, T( UGoogle Adsense 广告点击追踪的代码,亲测有效。) n8 Q' z/ z, [7 w3 z' L
" `- e' t, A8 U( j0 ?7 ~配合点击追踪 对于那些买流量做adsense的 很有帮助。
0 T6 L! ^4 C0 X* C& N3 K; t( A- C) }* e6 I# H9 W% T
|
评分
-
查看全部评分
|