|
|
2 c. @9 u/ _' E3 ]
- <html xmlns="http://www.w3.org/1999/xhtml">1 T# w- W2 R* ^, k3 E4 |5 t
- <head>6 l! e$ W/ g( i" c
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
" R8 R' i0 Y# i- e: w; t( B - <title> Afilter Tracker Google 广告点击追踪演示</title>
7 r/ z$ D6 d) x7 R4 w) z - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>7 p! U) V. _% \) p! t* }3 h, V
- <script type="text/javascript">7 e) j) y" H! s/ f T( U
- ' I% d1 q, c) x" z, q. u* g
- var isOverGoogleAd = false;
! E' S+ |1 ?4 ^/ X - var ad = /adsbygoogle/;5 S# ~* h: F9 G8 j
- , C" c4 J$ t1 t7 C& c
- $(document).ready(function()$ O$ P- ]3 H, [( k+ g* G. K3 U; L
- {; M0 E( D' d* z& i+ E
- $('ins').on('mouseover', function () {" Q# [4 _1 M* K7 B+ Q
- if(ad.test($(this).attr('class'))){/ e; C5 K* Q' L; r) |
- isOverGoogleAd = true;
7 w% j0 m. _) N { - }
& {# n9 Y7 t3 W' R' G7 F - });$ n% l3 f) P ^, w) U' t+ [
- $('ins').on('mouseout', function () {
- b! e' A, `0 B+ }* Y/ N - if(ad.test($(this).attr('class'))){
. Y8 Z' ^% L6 o; I; D - isOverGoogleAd = false;1 o3 ~! s# Z4 h& A- p
- }
7 u( G. N, M, G' _8 k+ E: k! \ - });
9 m3 ]9 x. ^* d2 L1 B( a% t2 [ - });* l: A& j9 q$ W2 p
- ; W# r Z* r, }" S; r
- $(window).blur(function(e){
2 g% n! p2 y- F, x( X2 Z+ @ - if(isOverGoogleAd){
( q8 z1 `0 y; ]4 K4 `8 M - //检测到点击。
- a6 x% r% g) j' [7 Q U1 y - }
# J0 ?7 P, A% `0 ]9 J! u - });& e' |# q' y8 ~6 x
- </script>1 D$ s! r7 X* w% i7 f( Z
- </head>/ v" ]3 p) A% \0 P: [6 J/ u! p
- <body>9 R; X, X# T" s# p$ n1 E/ M
- / o# V& R, d& Y& A1 q# s6 N
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>1 T7 j- {# B4 w
- <!-- qym -->; ` A, k. p6 a$ w
- <ins class='adsbygoogle'
+ k6 n& x; N0 ^! y - style='display:inline-block;width:970px;height:90px'9 \3 x& V3 w! c+ m. ]0 H2 T
- data-ad-client='ca-pub-111111111111111'
( e) @$ q# y4 Q0 ^! S/ n: j) W - data-ad-slot='1111111111'></ins>: a, S" K/ u: f4 g: k
- <script>3 o: I! R) k* ]4 q/ b7 B' T
- (adsbygoogle = window.adsbygoogle || []).push({});
- f8 l; T; G% j, h - </script>
% i2 M# Y' E0 ^ - # ?5 z# A) Z# q
- </body>$ L: d1 t$ v5 E# p6 R" C1 N
- </html>
复制代码 & n( M# n8 v: U$ N1 t Q) d
& l; u% l* S* K" ]0 u( p" g+ y$ X( PGoogle Adsense 广告点击追踪的代码,亲测有效。1 m# O! |, t+ C' i4 T0 [
N3 b# e. z3 ^& r+ z* N2 H1 U
配合点击追踪 对于那些买流量做adsense的 很有帮助。. S! \0 T3 _) I2 h
/ m1 Q( n+ M7 m: V6 J4 _ |
评分
-
查看全部评分
|