|
1 g7 J' {* D9 @* y* a3 b
- <html xmlns="http://www.w3.org/1999/xhtml">* d4 ^* D1 a/ Q
- <head>
, P# [6 M1 \8 c/ ]7 Q! L' ` - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />+ a& g8 c* y# q% O
- <title> Afilter Tracker Google 广告点击追踪演示</title>, K2 f- K6 y% Q2 I4 j/ ]
- <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> V+ H# M; [0 p0 K; Q9 k# m
- <script type="text/javascript">
: j( w% W# J: g7 R9 E8 f% M - + q9 ?6 h2 \, ~; P- q0 f. z) Y
- var isOverGoogleAd = false;, C4 y s! n2 {5 Y1 _* V8 B
- var ad = /adsbygoogle/;
7 d6 \7 l4 Q! J& i+ O5 v# Z - ! n8 f) b% M6 e# G. j0 b" M
- $(document).ready(function()
8 Z8 Q; p. ^: L6 ^9 T - {5 N$ W: `8 _; ^1 A
- $('ins').on('mouseover', function () {/ u3 \ l" }3 _
- if(ad.test($(this).attr('class'))){
8 s# _& N" R5 P# O: s/ ^ - isOverGoogleAd = true;& M7 K0 q, T) s
- }
+ e0 j8 B/ @: {8 m; C$ M - });
2 O" G3 W1 c/ [ - $('ins').on('mouseout', function () {
( s; y8 a2 J( e - if(ad.test($(this).attr('class'))){
1 n! V1 V" ]8 P/ k3 ^ - isOverGoogleAd = false;& L4 r* ~% i& o9 \
- }
' Y( s. P; w# Z$ [ - });9 g' A4 e$ R. a4 s6 U b
- });9 e2 j) f0 g) _/ J
% Y8 f: t# U# j- $(window).blur(function(e){
_; ?( t: M/ w5 O - if(isOverGoogleAd){
/ @5 ?7 Q: G/ U t6 W - //检测到点击。
. T' `5 d' w9 _ q - }4 |: L0 B3 ~- x- d% Y+ l" c ]5 G& I
- });
7 M' x/ P, f5 s# X - </script>
9 u! j0 T4 L: h - </head>( ]% S! e6 m' ^" K# w
- <body>. C2 g p; A/ z( b" \( J
3 C8 j) O6 f# Y7 }- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>4 [6 i4 \9 q I) ^
- <!-- qym -->
/ o- _+ j8 P" I* q9 O! x - <ins class='adsbygoogle'
, v3 R m, v- X, P' s - style='display:inline-block;width:970px;height:90px'$ b8 z% G H% ^2 P' M
- data-ad-client='ca-pub-111111111111111'8 {. X: p( ]) o. p( t
- data-ad-slot='1111111111'></ins>( W, b9 M0 w1 G* C) p6 O; e
- <script>9 u7 m4 y1 V' Q* b
- (adsbygoogle = window.adsbygoogle || []).push({}); J" R, c* x, i0 \, Y8 P0 p0 \
- </script>7 m. I; Z% Z; \" \: R3 h V$ \
0 R: X0 s* H0 J s8 B" F1 S- </body>
, x) h* F6 G; h6 o - </html>
复制代码 * w; P/ x; |' x! ]) R
! B! Y1 k* D: f
Google Adsense 广告点击追踪的代码,亲测有效。
+ g% L: L! {9 ]& ]
! w. m% D2 t9 Q# l配合点击追踪 对于那些买流量做adsense的 很有帮助。3 f; p @+ \# {- e& s h
: Y9 r7 H* ~( C4 c+ n$ D# s+ O+ Q |
评分
-
查看全部评分
|