|
|
% j: T/ `& B! }4 n. a3 u, d) f- <html xmlns="http://www.w3.org/1999/xhtml">
y9 k! H+ z; H9 V# k - <head>- F* ^- D* G3 V0 I$ I% d. G
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
% w+ N+ [& T2 x7 Z - <title> Afilter Tracker Google 广告点击追踪演示</title>
6 X' A' Y ]8 s. P - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>& g+ j( T$ ^( H! V& v5 e. {
- <script type="text/javascript">& {" v, o0 W) ^* C
- . j/ X y3 P: b/ r1 I8 _ i8 ]8 D3 n: E8 Y
- var isOverGoogleAd = false;
- ]5 O% k& _0 ` u- s8 @9 Q# X8 I' u9 O - var ad = /adsbygoogle/;
7 j: F2 f/ X1 z: Y8 k
% _% T7 ^; _$ S$ T9 ]" t ~- $(document).ready(function()
. d: {# `! r6 x/ {# H$ ^ - { v3 `2 B! i4 Q. k" E$ o
- $('ins').on('mouseover', function () {! \7 {7 B) R3 Z; \; @ V: i
- if(ad.test($(this).attr('class'))){: [- F( @! t" N3 E
- isOverGoogleAd = true;
( T6 ^6 V7 ^0 Z1 n1 C/ g% J Y9 i - }
' u5 s q- L/ \/ K! a9 g; V4 ` - });* c1 _$ e8 O: A+ p& Y' o! u, P
- $('ins').on('mouseout', function () {
/ [ O$ o& N' b3 f7 | - if(ad.test($(this).attr('class'))){+ l" v K: s1 X- }& n' v
- isOverGoogleAd = false;$ W& C b0 |. q, n5 i4 ^
- }; t3 |: Z$ m( }9 ~, I* I
- });) n/ t7 I5 W+ _" p5 M6 s
- }); R8 i1 X: ?; J3 A9 c
- % k" ~3 M B u8 K+ c
- $(window).blur(function(e){9 L" G3 u6 t, j& Z, x& H% S$ {' a% c
- if(isOverGoogleAd){. q- f2 e- d2 _3 R0 M+ y
- //检测到点击。
+ b" R* Z+ Z! C7 L* E - }0 O( r7 D/ u, o
- });! m0 C" Q( H1 t( p( ^/ p3 \
- </script>/ U) J/ D% x0 u$ q: h8 U
- </head>) B& S7 O9 J8 w/ P3 O
- <body>' C- A* X3 q( ]& ]2 i5 J
+ Q! S% t% v1 F" Z9 K. e# p8 W- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>& z0 X3 M9 K7 T9 b- e
- <!-- qym -->1 Q- q# d2 z% Z: e) V* P
- <ins class='adsbygoogle'
D, x( o7 v& t: j - style='display:inline-block;width:970px;height:90px'; o6 H+ q" Z( f, P' Y/ N5 _% m& K
- data-ad-client='ca-pub-111111111111111'
- }% s2 M2 d% {! j: a9 P: s - data-ad-slot='1111111111'></ins>
% T. C6 Q/ l/ Z: `7 r - <script>
, v' }- O' A+ ~) x( t - (adsbygoogle = window.adsbygoogle || []).push({});9 u$ z( ?% o: d& D7 z, n3 H
- </script>- | e% O1 ]5 Y. G8 j$ e
- - ?1 h0 B! { ?2 V& m
- </body>3 t8 t. \! N( F
- </html>
复制代码
; B7 c5 g" I, ?+ U% R6 \# w
# x4 V3 r* J6 E& h, aGoogle Adsense 广告点击追踪的代码,亲测有效。; n4 ?: \9 F. G9 b% B0 s
8 |' }0 h) `9 j1 { m
配合点击追踪 对于那些买流量做adsense的 很有帮助。
1 [7 \& Z- A, o+ x }2 t K2 e
: @6 K# B# g7 b& P+ l% ^5 p: ` |
评分
-
查看全部评分
|