|
5 U; r/ d6 g- Z: m8 @- <html xmlns="http://www.w3.org/1999/xhtml">
. U* Y# F0 \. v' ^* I* b - <head>
+ P I, @, V( C5 D - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />; f& g- e* z) w+ X1 r* f( G3 Z! Q
- <title> Afilter Tracker Google 广告点击追踪演示</title>
1 O+ c4 O# H% A/ E7 c9 z& d6 T4 P* Q; C - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
" u4 |' q& R0 j! a7 } - <script type="text/javascript">) Q8 a" p* C( ~/ g* d
- 9 M/ O5 X) J) j. G% t" x+ e
- var isOverGoogleAd = false;
# Q f- ^0 ~- n# K) y - var ad = /adsbygoogle/;
* R. b/ T) y _) d2 u. S - 6 L2 o a& u% M, {! B
- $(document).ready(function()
6 ?/ R0 O& Z9 k! d2 G - {; R+ s- S) T0 s+ K
- $('ins').on('mouseover', function () {2 Q# h! y4 v, ~/ {+ }6 R; ]( U; i+ E0 K
- if(ad.test($(this).attr('class'))){' }. _# p/ _1 z" S# K% V/ P" O; Y0 k- ]
- isOverGoogleAd = true;- l2 S+ u# C% r" Y* Z3 N/ E5 D8 g
- }+ c9 d6 v* D' X' E& a) s+ }/ b0 E
- });
6 c8 n" e4 \& k: w- c- { - $('ins').on('mouseout', function () {
1 z) I0 L' ~) j1 {& c9 t3 `7 g; f9 f - if(ad.test($(this).attr('class'))){: B5 e F# q. {
- isOverGoogleAd = false;1 u' u' E# J( S, B
- }
) c% v9 Z5 S7 l1 |$ u) ` - });
# I- _- A( e* s) U: { - });! u O$ X9 P% g5 J/ C2 S/ @
- . X) A8 v% x( k0 \7 C, v5 f1 b
- $(window).blur(function(e){
7 y6 F! k' B2 R; l6 m - if(isOverGoogleAd){0 D1 W& M0 a& U4 Q7 a g
- //检测到点击。6 o8 P' T F5 }* W
- }
! w% f2 ~3 v/ u8 G% N& R - });) R4 i/ h7 y7 T+ `
- </script>/ o$ W7 D: A+ d. C( R3 i. U
- </head>1 n8 x) ^( W; y
- <body>
& y: x9 e- V" R: a9 N! | - ! J, y, C2 f3 g3 |
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>8 ^- t7 x8 a$ A5 d' Z
- <!-- qym -->
( r/ \' m! ~" H - <ins class='adsbygoogle'
; U' o1 R4 Y6 v+ A, D/ f- ?" | - style='display:inline-block;width:970px;height:90px'9 G u) N/ b& \6 e2 A+ k4 [
- data-ad-client='ca-pub-111111111111111'
1 w/ M; }# t( F& x% a, W - data-ad-slot='1111111111'></ins>/ z3 ~ @# P' \. M6 z; F
- <script>
9 C( e# R: e6 ?! A9 g' y/ m - (adsbygoogle = window.adsbygoogle || []).push({});) ?4 J: q+ G5 X7 [; x
- </script>
# v, O3 f! o) ?
7 _6 ~- r1 ^& U. q- </body>( s! {( E) M1 B5 C3 g
- </html>
复制代码
" m- |+ N. S/ x8 Z- ]2 C( N$ j$ L6 _5 ^' ~7 ^2 U' j4 c+ A
Google Adsense 广告点击追踪的代码,亲测有效。/ k* J; p$ j! L8 |7 r
) U: ]) ?! M, h8 \
配合点击追踪 对于那些买流量做adsense的 很有帮助。' u8 D2 r$ h! N2 t! V& Z, l
' K& r& e# s) m0 z |
评分
-
查看全部评分
|