|
4 ~; o# [$ _' C& v
- <html xmlns="http://www.w3.org/1999/xhtml">
: Z" M, `1 R7 z7 I - <head>
?5 U: h% V" \# c - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />- C) C( o5 J; r9 Q% {: Z5 O+ h
- <title> Afilter Tracker Google 广告点击追踪演示</title>
9 n4 i, L6 j# v3 o, g, s - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
) z7 T3 b4 [3 }& |: k4 Z - <script type="text/javascript">
( W. V# I% p+ K# x - ( I1 h9 _8 J T( i7 c' Q) h4 e3 S0 S
- var isOverGoogleAd = false;* D% _$ E! ]# p- a
- var ad = /adsbygoogle/;
+ ?( ]; K# \) R& g
& G- z5 ^5 P1 P3 F: g& s# a0 h$ X- $(document).ready(function()" p6 N9 W& k, q+ {9 R! L4 z, |
- {# c& |& I! ~+ ^0 C8 i8 H& W
- $('ins').on('mouseover', function () {8 Z5 [# c0 W* l* @. f4 y
- if(ad.test($(this).attr('class'))){
! V) e) |* }. z; v% G, J - isOverGoogleAd = true;
5 f- C# O% i$ r2 j( r. b* n - }' j7 l: m3 c; ]4 H$ W8 t
- });
! G" {/ x) W* { d. Q$ \1 N4 G - $('ins').on('mouseout', function () {# q; l+ D9 G) w1 }: p
- if(ad.test($(this).attr('class'))){7 j+ J8 p; x. e4 n: d0 o
- isOverGoogleAd = false;5 z: m6 D9 ?8 g* k
- }- u6 Z& b' U6 E; H* D! D3 i+ d
- });4 R8 I5 n( E0 Y) r1 m) i) F# C
- });! Q7 A( Q7 M! @8 m5 H
- % j7 O- f2 J/ r; g# a0 M
- $(window).blur(function(e){
+ X; |. @) m$ H/ C8 y - if(isOverGoogleAd){5 A& I4 X! k# A" g. T
- //检测到点击。
4 ^3 l% |+ s6 l' A2 ^! \ - }
. m8 J+ n0 E) V. D - });
. i3 q$ E3 Q" ^4 l" Q - </script>
1 ~, ?" |) n8 |8 q - </head>
+ B9 ?* g9 q( I: Y8 T1 A - <body>
) O! a4 o) }# R! f5 ]: |, H7 g
5 V* V3 \/ M' P+ S: t- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
5 `' q% S5 N/ i! l. r" C - <!-- qym -->
1 V' P U# l6 T3 C. u* t! M$ n, Z - <ins class='adsbygoogle'' K' w% B& V% h9 ^# ?" i- X
- style='display:inline-block;width:970px;height:90px'
( G" {# i+ c: h( A4 s1 H" y% Q - data-ad-client='ca-pub-111111111111111'
0 ?# Z! @$ [9 [5 Q - data-ad-slot='1111111111'></ins>, t9 F6 m4 e' g& ~1 f$ A% ]
- <script>9 E4 {7 V7 n: D- ]& U( S* f. j
- (adsbygoogle = window.adsbygoogle || []).push({});5 F8 z1 q) {3 r2 s- \
- </script>
! d8 S& X8 a0 s7 ]0 k$ E0 f3 j
% G, w6 [& L2 z) R: c6 |5 P- </body>
8 U0 Y: e, H# C. m# ^+ t) P& D4 J - </html>
复制代码
7 Q5 Z9 ~4 Y+ \# L9 x2 p4 L; h/ Z; R9 ?9 W1 |
Google Adsense 广告点击追踪的代码,亲测有效。
3 v" A: j" m+ o
' x! \, _& _5 _配合点击追踪 对于那些买流量做adsense的 很有帮助。# I7 f( D6 Y2 E$ D6 \3 R; f
. F7 c/ T* x( H+ J |
评分
-
查看全部评分
|