|
$ f# t; u$ ^# _1 q( v8 T( @8 j- <html xmlns="http://www.w3.org/1999/xhtml">2 m4 I( ], q( Y, y+ F
- <head>; C; I3 z7 q) ~+ e `
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />" ]/ A% K2 X* u) _
- <title> Afilter Tracker Google 广告点击追踪演示</title>
" R& f j9 _% g j2 `- W - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
8 d+ v( |6 k! u* s - <script type="text/javascript">
. r P4 Z2 r7 X3 X( I - o: x+ m% w* ]6 ?' R1 K+ Q2 L
- var isOverGoogleAd = false;% B, u1 J" c& D
- var ad = /adsbygoogle/;) q3 \2 r. `# C" u
- 5 c! `9 y d3 N7 w
- $(document).ready(function()1 u1 V, W+ n7 b4 N9 v9 g
- {
* ]" v- m# I4 P$ \" j/ t - $('ins').on('mouseover', function () {# H: e+ y' J n1 f, i! q* h
- if(ad.test($(this).attr('class'))){1 B8 Q. l5 N3 u2 ~! @9 |
- isOverGoogleAd = true;
8 c! s# h- U- C! i) m - }
* y. T8 [0 l# A1 n5 F - });/ p) K0 N& V4 A3 X$ Z. Q( x
- $('ins').on('mouseout', function () {
! E) T f; s6 X4 ?" b8 u+ _1 F - if(ad.test($(this).attr('class'))){
1 |! D7 s8 ~& O5 s, M$ _1 a/ L4 X - isOverGoogleAd = false;) P8 {& b/ f f
- }8 y$ v% L, J; d. z0 u9 i
- });
8 G9 G8 H2 }9 Q; N% k* d" ` - });- k) [ ~9 P$ v- Q
( s; Q- i% U, ~- ] n- $(window).blur(function(e){) b9 G# M& F6 I7 [7 e
- if(isOverGoogleAd){
- I1 Z1 n6 O& q$ \% `! { - //检测到点击。
/ j$ ?) m* L' ?1 `9 \/ R J8 @ - }, K1 D3 f0 O; U
- });
@) i4 B+ ^+ G. r* Q8 b2 ?2 h$ T - </script>' q5 r4 z, d& I/ A/ K- x# e2 A5 \ u
- </head>
4 O$ Z `- b. Q2 i/ A# t, R2 x - <body>6 X5 P8 z1 J# x$ R
- . [7 V6 I L) w/ |+ c% q
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
" ~8 w8 a, I C. U - <!-- qym -->
* ^/ D4 h1 B8 _- o9 Z+ e - <ins class='adsbygoogle'* y* z7 T* y: u. Z G* N1 p. ]
- style='display:inline-block;width:970px;height:90px'
( H8 ?% z3 {' O! ?6 h - data-ad-client='ca-pub-111111111111111'9 }7 S! g1 T/ w8 n2 D ^
- data-ad-slot='1111111111'></ins>
9 X& {* D# {) p3 _ - <script>
# p3 z0 C5 S8 t8 o% P4 R' @6 K - (adsbygoogle = window.adsbygoogle || []).push({});1 U3 x0 d" W3 |4 f
- </script>9 Z5 W7 b3 Z: ?2 f) Y9 |( e1 u
2 d6 |6 s( j; I( H& x: T% T, N- </body>
* ^# i# g1 q/ z" O8 Y4 C" } - </html>
复制代码 ; V- [+ x U$ T' H. G1 J) o
! G1 B/ ]% U0 E$ J' }! G1 Z& T* ^
Google Adsense 广告点击追踪的代码,亲测有效。
+ d+ E6 X0 \& C1 o- y4 Q+ }& N& b, X0 G4 f2 g% F
配合点击追踪 对于那些买流量做adsense的 很有帮助。" V4 e: y. y% {
) G! ]6 q/ F) U
|
评分
-
查看全部评分
|