|
|
2 Q% J- n# t" R/ w
- <html xmlns="http://www.w3.org/1999/xhtml">6 `& n) C: R5 H+ A$ t$ j
- <head>
. X% H, O, {* Y4 V( g - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
( i9 U/ ~3 W6 l - <title> Afilter Tracker Google 广告点击追踪演示</title>
. }9 U) B) F, e T1 n% t9 ] - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>1 t# K+ R, b L) j% C1 u' X$ M
- <script type="text/javascript">: V+ j8 C2 g- B- G
* L8 B, s) l) }$ P- var isOverGoogleAd = false;
8 D2 L2 l5 p2 [* W - var ad = /adsbygoogle/;$ [2 k$ {0 C9 g! P+ y& u) M
/ {; ~' y* G! f9 f- $(document).ready(function()
% w; F& V7 V4 H5 @9 J - {
8 V) w" f( m9 w/ T3 M% P. p - $('ins').on('mouseover', function () {8 H5 k' A5 s/ [. l+ }9 t
- if(ad.test($(this).attr('class'))){
' A' R' J+ H! K9 [2 w+ l - isOverGoogleAd = true;* Z( s& r ~) o' e0 H- S: _
- }- g, ^ z% e# a3 L; _1 {5 H7 d f
- });
0 G# S8 ]5 ]5 g4 t/ ?# O* C - $('ins').on('mouseout', function () {
: w; o5 ?9 _ }) I5 I4 l8 _ - if(ad.test($(this).attr('class'))){) e: L. g6 s) l$ Z
- isOverGoogleAd = false;
! E" `- y) r! E - }
. N4 Q; s' {9 @% A - });3 U2 g* h7 A3 I8 C: ]
- });
- [ U( O* U6 B+ { - 8 ~& z/ \. h% c0 m5 {# P
- $(window).blur(function(e){
8 L7 E) d3 a5 d0 L* M9 B2 n - if(isOverGoogleAd){
; m- M7 r0 T+ z/ }. o* ]: p c - //检测到点击。
7 e x7 v7 n: X8 V) w V% O; _/ J - }1 m; Q3 A \/ x9 L. l9 a$ l; f
- });" \: M+ |% Q! a3 d9 q
- </script>
7 {( J4 I. c% D6 w; A - </head> m! d! W4 s6 K, S
- <body>. X7 z# [( C8 d) q, e1 D* O) W
4 @- h! H. Q& T1 M8 l- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>9 c. M7 Y" g. p) g! n6 N6 f
- <!-- qym -->
1 F! u# @3 o$ V5 \9 x8 ? - <ins class='adsbygoogle'
. w! P& @1 i( e2 \ - style='display:inline-block;width:970px;height:90px', P$ N* I1 X" t; e9 _7 p. s! n1 ], |
- data-ad-client='ca-pub-111111111111111'
: {" w" Q. }( A- R& } - data-ad-slot='1111111111'></ins>
1 }# P2 ~/ Y' g G9 s# @ - <script>
: E6 z- Y8 e6 E5 h8 G, W - (adsbygoogle = window.adsbygoogle || []).push({});
; |6 t6 A4 k+ H* |9 V) W - </script>! j/ q/ Y e2 p$ k5 ~6 ~; p
3 Q" A1 c/ ?1 C! c1 p- </body> d; K, q9 `* t/ s+ h/ r
- </html>
复制代码
/ ]! J$ d) @: g, ?' ~% O( T" R# O ?' f
Google Adsense 广告点击追踪的代码,亲测有效。
! V+ X; w$ b2 N. q7 m4 n# M. t4 L; [
配合点击追踪 对于那些买流量做adsense的 很有帮助。
9 G6 ~6 Q* W N: F8 k, n3 C" x" h) {- z4 ?5 P
|
评分
-
查看全部评分
|