|
|
/ Y6 j6 o+ Q; {4 R3 v3 }. X% a2 E- <html xmlns="http://www.w3.org/1999/xhtml">
( j0 b& T: X" d: {4 B. A+ A - <head>6 f* t+ A' f, s( X& N* L4 i1 J
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
% e2 G: c/ c# k$ a/ {+ Z - <title> Afilter Tracker Google 广告点击追踪演示</title>
5 C! ?2 R2 c3 ?! | - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
. G' M4 P0 y8 U! h: ~) ^ - <script type="text/javascript">& g5 D% o" B; I8 D+ t/ x
- " | M0 t" l* v" n5 `! ?
- var isOverGoogleAd = false;% N! {- |. J- g5 O3 k- `- X
- var ad = /adsbygoogle/;
7 X( T% |. s' A1 z
4 L) i: p8 T* r- $(document).ready(function()
; [8 f9 G0 L V. _9 A3 `% M - {: \; ^* c3 _6 l9 s: _* V5 i. o
- $('ins').on('mouseover', function () {
" u- Y5 T2 e, u9 G* \ - if(ad.test($(this).attr('class'))){
$ m* A9 `% K/ \5 ~ - isOverGoogleAd = true;
n- f! z9 {; R$ Q. N1 L8 G - }
0 m* T& F7 D7 P' E* D( V3 ^; x - });
1 s3 s2 L U b - $('ins').on('mouseout', function () {" f: x5 }! t( w) f
- if(ad.test($(this).attr('class'))){
+ J) i6 P! z8 H2 e - isOverGoogleAd = false;
9 @7 _* N p7 K% X0 C" N: p - }
( P3 h9 ?5 @; E* B6 [' h# B* I: _ - });' C( |% ?5 [! `$ P: |
- });% p7 z+ C) \- b* g$ M9 G4 s
. `! h+ r% G- f9 M& E- $(window).blur(function(e){
4 p7 ]* g! f% h7 W, X* {1 u - if(isOverGoogleAd){
& }+ [# f* e6 K" U7 ^) D7 h' I - //检测到点击。
2 F3 S, j. Y4 F# U( y - }
& b$ D* \5 M# L, ]# n4 r - });& p8 X8 t5 v1 R0 m1 W: l3 }
- </script>! E/ W1 {$ X7 I M ]/ G
- </head>
1 i" E; O: x2 B+ I- k& _ - <body>
3 m6 u$ c! D" c# | - ( U) w" r+ a, ]8 n
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>9 l* }: ?- D5 e4 J$ d" M& |% ~' @
- <!-- qym --># F( S" l; U" N" a. a
- <ins class='adsbygoogle'# O# Q. q$ F( u
- style='display:inline-block;width:970px;height:90px'
4 n% `/ _' M' }3 [) f" T* l - data-ad-client='ca-pub-111111111111111'0 o0 S0 g4 I. H$ C4 m. D
- data-ad-slot='1111111111'></ins>2 g: f6 t9 M. Z/ g! q3 Z- X
- <script>
; \" T* m T- G' e; o9 B. E - (adsbygoogle = window.adsbygoogle || []).push({});
" H3 u) v. P. ]. D/ a - </script>6 W* u7 `3 c; ]) s2 V ~
' t Q) W& v* o& D& }. G* l- </body>6 |) H7 B. g3 m, l" d
- </html>
复制代码 7 z4 l7 Y4 K: @ [+ [
; ^2 @( c; d* l7 E) o! i
Google Adsense 广告点击追踪的代码,亲测有效。' Z1 b {9 @5 {3 Q4 s
G+ ?8 H- W* T! v3 [2 S
配合点击追踪 对于那些买流量做adsense的 很有帮助。
: J3 T, H, x! r( l7 s" c
; ^5 V+ c+ A1 g |
评分
-
查看全部评分
|