|
; ]5 L( U1 l2 O W
- <html xmlns="http://www.w3.org/1999/xhtml">3 H, ]6 w, c; j/ K7 ^; @
- <head>. P+ i3 m" {0 a) P
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
" Q+ a) _' @0 n. O b1 a8 e - <title> Afilter Tracker Google 广告点击追踪演示</title>6 z: O# W6 T5 l1 M. J
- <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>8 Y& c2 m7 x9 |1 v6 s
- <script type="text/javascript">
N/ U( Q/ q/ u8 Y+ H( p+ i
: @6 V5 U5 _4 w$ y- var isOverGoogleAd = false; B( E5 W6 e7 ^+ d
- var ad = /adsbygoogle/;: X1 ]( _5 V y
3 p0 Z6 i$ f: v% I- $(document).ready(function()
; M1 @( k- j. F* ]7 S, ? - {
4 k' J$ ?0 }3 B6 }5 p - $('ins').on('mouseover', function () {# e* J% Y7 L/ G" W
- if(ad.test($(this).attr('class'))){! I, I9 m1 ?6 {) k# @$ z
- isOverGoogleAd = true;
6 I8 d) F7 H A2 h) i - }
* N! Q, O5 y) l& ?: l" A - });
2 Z4 F/ G* n( @: r1 Q0 g8 j - $('ins').on('mouseout', function () {" a8 G) ]0 P# T4 r A
- if(ad.test($(this).attr('class'))){! C8 X8 R* S6 \ V! [
- isOverGoogleAd = false;( O' q$ d' g" P2 x! `
- }% n2 d4 E- _ ?1 ~
- });% T( T4 E, W* o7 Z- r! l+ Y2 G
- });
9 D( M& W" g$ M# J
: S2 f# Y; v! U7 J8 _, H9 S- $(window).blur(function(e){
! ^/ B: |, }" [% z - if(isOverGoogleAd){+ X7 O0 I( M6 J
- //检测到点击。# J6 L$ Q5 v" `
- }& _9 U/ c5 |! n/ q* R4 b
- });5 o4 n9 E7 A! n# u3 V1 Q
- </script>
1 c+ ?. v" e2 G+ [6 j1 Q - </head>0 R* T: Q4 P& M. R. D9 D, h
- <body>2 Y- L! x, w& Y2 G
- , K- s \" v$ E4 t+ i, c
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
1 G l# ^' v! j j6 a - <!-- qym -->
6 [9 v# E! S- `2 W( { - <ins class='adsbygoogle'
+ E* |" o! e( Y6 A8 v* A9 R - style='display:inline-block;width:970px;height:90px'
7 O8 I$ F2 c; H( k# Z5 t - data-ad-client='ca-pub-111111111111111'0 r! e/ Y* l- X; w8 d! A
- data-ad-slot='1111111111'></ins>* S ]- t% h$ l( E! f) {
- <script>2 W$ O; z/ `2 S" H
- (adsbygoogle = window.adsbygoogle || []).push({});
1 t& c3 h& F! ~% L0 ?$ e1 K: t4 | - </script>
' h) l6 p9 q5 Y# M9 `9 t$ _
! o4 q1 o* L/ `0 H4 g! N* m- </body>6 P2 W2 l/ B; D3 x; Q" u# J7 D
- </html>
复制代码
- [, k( c: `" K2 x$ w* G( H, T1 k9 r+ U- L- y1 @) O, p
Google Adsense 广告点击追踪的代码,亲测有效。: p2 T3 Q: w+ }6 Z f1 ]7 t+ }# {
8 L* R7 V) y9 a# J% k Y( t配合点击追踪 对于那些买流量做adsense的 很有帮助。& I7 j3 \8 Y% `& f# y
7 v! X6 }. d& x U4 [1 U
|
评分
-
查看全部评分
|