|
|
0 ?- f' o2 j# t7 ~9 t" E2 ~- <html xmlns="http://www.w3.org/1999/xhtml">
# n1 G6 B; s/ } D8 {# @3 X; R - <head>
. H2 N6 Z& J1 z" U8 d% v$ x$ h; l - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />4 q* T" H. w. F9 f
- <title> Afilter Tracker Google 广告点击追踪演示</title>
& w+ J4 ^/ S- L - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
9 n* I5 B& y6 P' d$ ` - <script type="text/javascript">" Y# b6 N7 o I. y- J ~' S8 q& s
2 R! O3 u$ x+ r1 Z) N, t- var isOverGoogleAd = false;# l; m1 K! H, Y, U/ \
- var ad = /adsbygoogle/;
3 A0 c) Z, n2 ^7 w& T. A
4 l8 Z% d% W- f. I$ N- $(document).ready(function()! e$ c: N6 `5 L- \, T
- {
3 U m0 G3 X) K$ N+ K+ D - $('ins').on('mouseover', function () {1 E4 D* s2 u! w' E; Q* z
- if(ad.test($(this).attr('class'))){
7 z" q) p, Y9 o: [, v& e - isOverGoogleAd = true;' v1 C7 T( Q. P# }+ j
- }
: b% a4 @4 {7 P- M; _ - });1 `: C- D& u& v9 s. m9 B- M/ d
- $('ins').on('mouseout', function () {0 Z$ F3 f0 ?! A! E& P
- if(ad.test($(this).attr('class'))){2 q( G% f8 Y' p
- isOverGoogleAd = false;, k* p0 |" S! \* ]' U# }2 @
- }
; o4 `' G3 P! C- k0 A# Q - });
# g% e% T% J6 u - });1 T7 V2 ~% R6 C, a
! `0 C9 a3 k, Y; I0 c. O- $(window).blur(function(e){
4 L1 _1 l! G; _- R - if(isOverGoogleAd){: W1 _- g9 p0 o" W A4 I# `, _" A
- //检测到点击。9 m D, ^ f) p" z
- }
8 L! t$ u: k; F1 \8 X - });
2 ]" \( {3 D0 Y5 @9 m5 [& L3 ] - </script>+ E( H5 d" t. S/ _9 h6 k+ ^
- </head># O8 [% L" f$ r9 p# v6 E% {0 y4 m
- <body>
5 V: Q$ B& K" H" p2 R1 K5 X2 _
! z7 _8 u" L4 {0 K; V- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script> P/ ~( l5 d n" z% K# [; V
- <!-- qym -->) ]+ o' L3 m4 l3 o$ |7 p& q
- <ins class='adsbygoogle'+ }1 T0 w4 f1 U5 A1 d4 t
- style='display:inline-block;width:970px;height:90px'
7 f; @5 Z/ `5 s8 G' j2 A - data-ad-client='ca-pub-111111111111111'
3 E! X% @( h" r# k) i& q - data-ad-slot='1111111111'></ins>$ B9 ] t+ H$ Q
- <script>' ]: F& e* g) z) R6 Z
- (adsbygoogle = window.adsbygoogle || []).push({});, T9 |* b- D2 M: P: v4 \
- </script>% A6 ?- i1 p/ g2 O6 |
- 9 o$ `" G+ C0 I# R* Z! ~/ H
- </body>
# ?1 L% e+ D" e* i) e" a - </html>
复制代码 8 I9 _! I% H1 g
4 J" D6 m$ V4 f! o- ?. K, j, FGoogle Adsense 广告点击追踪的代码,亲测有效。/ v* |! a2 J% m, T6 \
, T+ [! P7 I; o9 I6 P& o+ n& ?
配合点击追踪 对于那些买流量做adsense的 很有帮助。3 W3 e: O: Y3 F
' v+ {* P- j9 c9 o0 T6 V |
评分
-
查看全部评分
|