|
|
0 w) ]; Z) z# k, n" l- <html xmlns="http://www.w3.org/1999/xhtml">6 o6 \ U9 E; g) A/ ]% f! i! |
- <head>
3 F1 b" [! L' v% L! c- \ - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />. V$ E+ R+ P5 C, W) V
- <title> Afilter Tracker Google 广告点击追踪演示</title>
" G* q# g7 w) B5 d3 N" E* c - <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>" G/ R9 A. W! t, l* l
- <script type="text/javascript">$ o, I( y% ?; Z
- * I3 A7 R6 B& N- b
- var isOverGoogleAd = false;! w) P5 p# y8 U3 n7 W& A, v
- var ad = /adsbygoogle/;8 u5 ^( b' B$ C/ ]. h
* _% u- o5 |* R8 F- $(document).ready(function()% |4 h: S6 C* T/ N
- {
3 u) {0 K! p1 F0 L" ? - $('ins').on('mouseover', function () {
4 N# ~4 T/ s- Z. b* G5 [# v - if(ad.test($(this).attr('class'))){
# P$ d3 R8 ^+ v5 o1 ^ - isOverGoogleAd = true; {& r# R: u. v+ s. q$ W2 O8 f; U
- }
5 D F% v" z/ T! ` - });- \: |; C' N' e$ N7 [! h+ B
- $('ins').on('mouseout', function () {
& \5 {: M1 O* q9 y$ F u - if(ad.test($(this).attr('class'))){
& P: O/ _ U( U1 G7 s - isOverGoogleAd = false;' D0 N: a3 c) T+ V- ~* ^
- }
6 L- b) [$ D# e: w# d* { - });
5 C; D4 S' l2 `& ? - });3 W0 T" O' P6 o9 E3 Q
2 V% Y# {( L% Z7 O: Z" {- $(window).blur(function(e){" `. P' O6 y' [" k$ g- R* p0 Y( _
- if(isOverGoogleAd){
1 H8 y" \2 d I# n6 Q - //检测到点击。
3 c( C7 J" K. |! A - }
- _* `. s) |* `5 e4 x/ k! S - });
/ F9 n3 h+ V, ^6 @9 M' H - </script>0 k6 H9 t/ u! Q" f3 {
- </head>
k+ c# y2 C( D* G) p0 B0 S( P' p - <body>4 R9 ]+ P9 P; ?: u3 A, X
- ( f4 G+ V6 e7 {4 a
- <script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>. ^) `2 t2 y7 o9 |0 @7 C2 s4 `% u
- <!-- qym -->+ u. x. a6 `" e( {7 P2 ]
- <ins class='adsbygoogle'2 e3 I9 _4 m$ r. ^( g; r+ e' _
- style='display:inline-block;width:970px;height:90px'
" L7 d4 \8 L8 d: T5 Z. A# d0 r - data-ad-client='ca-pub-111111111111111'
/ S9 ?$ M6 B0 Q - data-ad-slot='1111111111'></ins>
- x" Q0 L$ B/ P. O$ D0 n - <script>' Y% r* v) k2 j
- (adsbygoogle = window.adsbygoogle || []).push({});3 y! q/ X5 C* T t# a& _1 |9 i2 h
- </script>( g$ D3 T7 ?$ t; E( k# ]/ h
4 F1 |' Y' ~; y3 d, M- </body>
6 K: ^& T1 h. L: ?0 ? - </html>
复制代码
0 \( |6 Q' L' o3 Y$ {" l. y
7 m/ R- r" A1 f0 c1 \Google Adsense 广告点击追踪的代码,亲测有效。$ w `+ j% @+ f- k3 w4 a1 A7 b
' U" E9 |: z& M+ p9 F
配合点击追踪 对于那些买流量做adsense的 很有帮助。% }# R! x5 L$ s% @* t* f; {
~" s' b* g" k" e9 N3 E
|
评分
-
查看全部评分
|