# K7 V8 `: a0 D( w% o/ l3 Q
<html xmlns="http://www.w3.org/1999/xhtml">
! @/ |7 x5 b1 u <head>0 q9 J# c- V" r4 j4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />" ]3 C; Q2 o8 B& N, ]( L4 H( U
<title> Afilter Tracker Google 广告点击追踪演示</title>
8 S) Q# {; l5 D b: P8 L" Y# L& t <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>! O* S8 ] P0 q* B2 R+ D
<script type="text/javascript">: N7 a# b) E2 Z( p y
( _1 V2 u. u2 |- f$ a4 \. X var isOverGoogleAd = false; Q% v( D5 _' l! Y4 B# ^
var ad = /adsbygoogle/;
# p. N! a! H1 y$ K& `" V$ e / R" d+ K: E) I" T8 u% m1 d
$(document).ready(function(). }, B9 @: R6 R. m7 ]3 b* O; M' Q
{
. q g' B7 ?- S $('ins').on('mouseover', function () {
5 G0 V+ e% x* C$ J5 T# g if(ad.test($(this).attr('class'))){; d4 }8 X/ \! w* W( c
isOverGoogleAd = true;
/ G% H. l2 O4 H }! K9 X) [/ `, n: _
});1 b; j; s( B5 Z) i. ^: j# v, B
$('ins').on('mouseout', function () {
+ {! B" m+ P& p' A3 h if(ad.test($(this).attr('class'))){
0 x5 j( e. Q& F1 j( F isOverGoogleAd = false;
6 y5 y) f5 C- I( x& t5 Z& M0 {* \1 c }) h( _1 y) m# X6 n- Z) A. Y
});
, I& [7 w2 {3 }* N });
6 x, a, i9 c! o4 r- V$ e 0 z% ?; }; h8 {; n2 @
$(window).blur(function(e){( Q& U; i! Z3 e$ Y6 Q6 q) y0 Y
if(isOverGoogleAd){+ A8 T+ L z6 e$ B0 @; }
//检测到点击。
) J0 J0 ~: m4 k/ N5 N* ~2 g& e }
( ?7 T) Z$ x0 N) C9 M4 I- e });
' h, x E& Y4 [- z5 h+ ] </script>
7 ]" a3 S1 _3 B% `3 U: P! r </head>
7 R% X3 X$ I/ ]3 y6 f8 ~3 T0 V( T4 Z <body>
" O! H! H# r3 K' H
# _( W: S9 ]3 N+ Y <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
F. c7 ~+ _ p$ [" K" e <!-- qym -->1 Q+ o6 n" r, m+ q2 e0 s4 f
<ins class='adsbygoogle'
/ _% G$ d( ?3 q style='display:inline-block;width:970px;height:90px'
- ?0 I7 o7 |- H7 C! ^ data-ad-client='ca-pub-111111111111111'( M5 Z" {' z0 b* b6 s+ R
data-ad-slot='1111111111'></ins>
* Z: m% C2 Q2 z/ P <script>
( ^, M/ O' Q! ?7 Z4 q9 a (adsbygoogle = window.adsbygoogle || []).push({});* M/ V3 q0 G( F6 G9 a
</script>
) ^! X1 C3 p* g3 O9 `" \& g# Q F. s6 d( h) ]
</body>
+ R* I3 W4 L0 k1 z+ v </html> 复制代码
# z: L6 V- F4 L4 V$ {+ D
! F# c; q) B- Y8 m3 A! l" O2 r Google Adsense 广告点击追踪的代码,亲测有效。
- ?" b2 s+ b4 @6 z( }1 L 4 f# i' ^' S2 T3 }
配合点击追踪 对于那些买流量做adsense的 很有帮助。1 a7 K; ?9 G; _5 e. W! B# ^
' y5 y* o% M5 A" S$ q* X
评分
查看全部评分
相关帖子