|
|
& n* s3 ^0 \# @; r! Q- <html xmlns="http://www.w3.org/1999/xhtml">/ i4 |+ p4 H2 X. S0 n; K+ B
- <head>+ }9 b; a7 k, m4 C' O
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
! m' J& L* t) n- Q/ w- L6 w - <title> Afilter Tracker Google 广告点击追踪演示</title>
3 F5 C' W: P# K5 m& F: _6 N - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
. I5 L* _- I) u9 ?& w7 Z - <script type="text/javascript">
: }5 s* r& Y) |8 |5 h' u% W - , p& T K% |+ P; D3 ^8 m: D J
- var isOverGoogleAd = false;
/ q+ W2 P' J( p% }5 Q - var ad = /adsbygoogle/;
0 y' Q# L5 m( H* O5 W B7 l" H
) C) `0 ]% w% `7 x& n+ W- $(document).ready(function()
3 Z/ ~+ _4 J1 w, d! X! j - {
+ L4 R& z2 ^% t9 c - $('ins').on('mouseover', function () {2 g x" y( s) Z! D& A% w
- if(ad.test($(this).attr('class'))){
1 h2 a# O5 x' k - isOverGoogleAd = true;
- d9 Z; U! Q" k. A; h2 T - }& n8 r d% Z0 z5 j8 X
- });! |6 i U% @& {" F" x
- $('ins').on('mouseout', function () {/ w! ?2 V8 c( d& B- D5 I; n
- if(ad.test($(this).attr('class'))){
% q) a& P1 W$ ]2 z! M Y M - isOverGoogleAd = false;
_9 P% H* Y* [6 W - }9 u0 ?( U- p2 m1 V9 ~
- });2 G0 I6 c4 }6 W/ p% J4 H8 p
- });
7 m- c' G7 S9 ^2 O
* }" W4 c4 G4 N* \/ N2 M) E- $(window).blur(function(e){
" C% c' c9 e7 w" h& e( W" E - if(isOverGoogleAd){8 {' g5 C- ]* D7 m+ T
- //检测到点击。 N7 q9 ~$ S7 P$ F0 x. i
- }' j9 k# v; o ]$ T: p- [& @
- });0 G+ E, ^+ E7 G6 R; t7 x
- </script>8 Z* b8 F. q" F! X/ _# z
- </head>
6 o" m: }4 a0 _* T - <body>
* l9 @/ h* q9 i2 \$ B" ?0 s - 2 j3 l' O& F+ ?
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>: j4 O4 x+ @$ E2 |
- <!-- qym -->
9 W( |1 F; A4 I" I - <ins class='adsbygoogle'* G' L' }% Z4 I5 ?
- style='display:inline-block;width:970px;height:90px'- V8 [1 @7 |* m! ?1 l k
- data-ad-client='ca-pub-111111111111111'( j- @4 ^/ |- K" W( p% g! V6 J. `
- data-ad-slot='1111111111'></ins>$ Y2 H# E6 B+ j* n
- <script>2 \% F S6 N! [# g: a4 \5 q6 Y
- (adsbygoogle = window.adsbygoogle || []).push({});- p7 |8 M+ J+ \3 u4 i4 l
- </script>
) z: U) F9 D# { V% u7 g - ' j/ Y6 B5 [. [3 K/ p* r) N/ j
- </body>* a2 Q9 p) K/ s
- </html>
复制代码
2 N5 T3 o7 a" m/ d
0 y2 j, u' _5 b. _ B% `Google Adsense 广告点击追踪的代码,亲测有效。
3 V0 M2 ?& ~8 T! W( h! L7 ~) _# s2 \! c$ y7 ?, ~6 b. Y
配合点击追踪 对于那些买流量做adsense的 很有帮助。
; Y: f& H6 C( I7 t. F4 d2 @: e' Q
2 ~. I5 C9 q3 H# J0 s( v |
评分
-
查看全部评分
|