|
/ `- `5 `5 n- [9 J/ {
- <html xmlns="http://www.w3.org/1999/xhtml">
; j. ~- k4 G2 D% P - <head>+ j5 B) |. X3 Q
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />7 F6 {9 P' i, o: Z
- <title> Afilter Tracker Google 广告点击追踪演示</title>
) B3 `+ p; |2 h, i4 P% X3 @; h - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>7 Y$ _' A! Z3 P* t! e
- <script type="text/javascript">) P j. c" f2 [4 c* x% r8 Z0 V
- ' X A9 o6 u: ]! V* @( u2 [
- var isOverGoogleAd = false;
( h. J* L" X r4 y2 Y9 B - var ad = /adsbygoogle/;1 P) I, y. w) P ]" y& B
# n. ~3 d7 l ]$ Y5 t& Z3 d- $(document).ready(function()
9 a% c' W2 G6 h" z- X% \5 D3 i - {4 ~- H& V5 Y2 |; } C* l. p; @
- $('ins').on('mouseover', function () {
% M+ Q$ Y9 P2 c; j Q% y/ n - if(ad.test($(this).attr('class'))){: l% ]) c4 v9 W6 V& Q& a
- isOverGoogleAd = true;) n. }. E0 [9 g1 {( ]2 {
- }
- Z% V* L. k' ^- O) ?) e - });- F0 y. w& p' p7 j# [
- $('ins').on('mouseout', function () {3 b, L5 ?1 `# L3 r
- if(ad.test($(this).attr('class'))){
% Q. f+ ^# ]- v& W - isOverGoogleAd = false;# L- ]2 o7 P* ?1 ]6 I0 N4 A
- }
2 z# @9 S# z1 _( h/ V, `# b - });
! s) {/ y W( _$ K7 J - });
- d6 d8 j% U2 [
& c Z5 z- F" }$ c6 {+ M/ b- $(window).blur(function(e){
. h, ?; T8 g' v2 ?) i. Z6 o) _ - if(isOverGoogleAd){
5 a A. {4 B! ] - //检测到点击。4 V7 M6 x! z' ]% @
- }
" k! j+ o h r- u6 N2 B$ i4 Y! F - }); o1 u) _3 q" v2 |# _
- </script>
3 t6 W; J% _# N! o3 b+ ]& s - </head>
' D! F2 i/ c2 m' ] H - <body>
; J; b4 g8 e8 e
) l- U- E' _- T: Z& u- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>. l. L W% J! @% P5 l, ^
- <!-- qym --> O1 u' S5 J; F7 `" E& o( |
- <ins class='adsbygoogle'
5 V0 U. e I* @ - style='display:inline-block;width:970px;height:90px': N: h# e2 \% _0 ~% }9 w
- data-ad-client='ca-pub-111111111111111'
+ x% ^. ~) ~0 q2 q, k! T6 f - data-ad-slot='1111111111'></ins>
% W! g( W$ i3 o/ x9 ]* _ - <script>
5 T/ [4 c. E8 ?3 Q - (adsbygoogle = window.adsbygoogle || []).push({});
7 R8 \/ c+ k+ _' A7 G$ a' | - </script>
: l% H+ x7 ?. j7 Y8 c1 H0 W - ( p' s. r7 |5 {: B. g# }
- </body>
+ _8 l0 j( G% d# ]% i2 b - </html>
复制代码 : \! }6 M( E6 [% [5 V1 C7 B
q7 |5 |! v, A) e1 [+ oGoogle Adsense 广告点击追踪的代码,亲测有效。
6 ~2 \$ X; F6 T$ }' C/ s6 q( d" F2 p7 U" h. J
配合点击追踪 对于那些买流量做adsense的 很有帮助。
' ]' n) H" U8 Z% Q) ~( D3 E
7 M- ?# W( e) I/ f9 l/ d7 w; { |
评分
-
查看全部评分
|