E& C- p7 E N# z M* a& y 0 @7 V5 ^& D" l% w这个代码用来检测用户行为并且与我们的系统进行通讯,必须安装到所有能访问的页面,以提高数据准确性。0 S& E% ]3 t E7 J' Q4 J" |$ I3 D
( {+ O: t1 H8 n) Z( O9 S$ x% G
; \ i* h6 |8 w. F: l: J- l: u
以上就是今天完成的内容,明天继续更新。1 z# Y2 g* ]7 ^& [7 z" u, a/ X( Q
4 k7 b3 c+ |8 X1 x& {6 U2 }. C# Q # T' E& N8 b. M% ^* J/ [* r* y' S0 u, G
以下为开发工具的原因 8 b/ Q0 J. C6 ?' i-------------------------------2 c' ?9 \3 m! k) G$ D' {4 R/ ?
业务需要,去popads买了一堆流量,- b- B: T8 Y; V) D' M
结果效果奇差无比,看了一下统计,二次访问连千分之一的比例都没有。 / b# L$ d' O" F7 r1 ]! t9 w l) ^( l: ^! t$ {0 K, z' d
基本上都是一些垃圾流量、或者是刷的流量。 8 |9 B7 x+ Z2 o' ~8 }2 I1 x' R6 r$ s% p! i& e
所以我需要一个识别popads假流量的东西,然后输出可疑的websiteID,方便我屏蔽这些网站。5 q$ A f5 t& c, i4 s" V
0 ~9 l. x2 _ f- d. n2 n
我本来想去搭建一个im或者买一个voluum,但是我只需要单一的功能,所以打算自己做一个。 2 a0 I4 [1 I" y2 n t9 X$ Z / I9 [, Q# j( V7 r. T) B我看到popads提供如下参数8 Z1 h y9 J/ I# Z4 U" N% L
! Q, e2 H( |1 l! N& o3 @$ j [WEBSITEID] - ID of the website that was source of the popunder,6 Z( O6 M: t, ~& s D' _
[CATEGORYID] - ID of the category of traffic source website,( |, f: J: @6 Y- L& R% G5 D& |; c" l/ p
[CATEGORYNAME] - Name of the category of traffic source website,6 N) k c5 l' M2 Q: @
[ISPID] - ID of ISP of visitor,+ a4 G9 i& A$ i1 \* A
[ISPNAME] - Name of ISP of visitor, * T* A. J% _+ c) e9 f6 R: S% W0 P [COUNTRY] - country of the visitor.) C! M) j! E/ }! ~! l
[QUALITY] - Quality score of the website from which the impression orignated. It is a number, from 1 to 10, where 1 means lowest quality website (All websites) and 10 means highest quality website (top 10% of our publisher websites), / _' a3 [4 d' e+ m$ { [BID] - price of the impression.2 d l a. b0 [% Q% i4 f: \8 I- O
[SCREENRESOLUTION] - Detected screen resolution of the visitor,- M- q$ X* B$ T; Q) l c
[OSNAME] - Operating System name, for example Windows 8.1, 7 j& k) @5 d7 t4 g- h8 B [BROWSERNAME] - Browser name, for example Firefox 32,5 T; }0 [: w! s K9 {9 g) @% ]
[FORMFACTORNAME] - Form factor name, for example Smartphone or Tablet,3 K7 s% E6 @/ ~6 H" N e7 @
[DEVICENAME] - Name of the device that visitor uses to browse the Internet, for example Apple iPhone,+ C' S. p1 A3 M
[CAMPAIGNID] - ID of campaign, - t2 z6 H) Q0 A4 H9 B [CAMPAIGNNAME] - Name of campaign, $ F; }# x: t1 a1 l# g3 ] [OSID] - ID of Operating System (for future use), ) F: a; g/ a" W5 o$ e5 F1 }: C7 o2 l, N [BROWSERID] - ID of Browser (for future use),8 J. J/ H6 T% _: }! |; J: u
[FORMFACTORID] - ID of Form Factor (for future use), - x4 A3 p5 o5 G) J) L [DEVICEID] - ID of Device (for future use), & G+ {0 E/ L6 H: w3 v/ \0 O [IMPRESSIONID] - unique ID of the impression. This can be used for troubleshooting/debugging process in case of traffic mistargeting as well as for conversion tracking (S2S).' @; ~( C8 [* S$ A
[ADBLOCK] - is set to 1 when visitor uses AdBlock or 0 otherwise, 2 q. @' B6 `7 d8 ~, s. m [IP] - IP address of the visitor (used for XML feeds),0 G7 Y( e* [' X* y, o8 c
[USERAGENT] - value of User-Agent header of the visitor (used for XML feeds),3 l$ h3 h1 o0 m8 u" h0 [/ K
[LANG] - value of Accept-Language header of the visitors (used for XML feeds).3 J7 a9 I+ F0 R0 Z; o7 B, i
0 h. X& A- @4 i: |
6 p. ~3 {0 I- [我设想是 在popads设置广告地址为我系统的地址,将以上参数全部传递给我,我通过技术手段识别出质量差的网站id,然后输出到我的后台。 8 d: l+ k3 u# O7 [' ^8 y1 } " {5 U7 N* W; z; H- k# @# P然后我就可以在popads内屏蔽网站id了。" l* A1 j9 N/ @3 c3 L* Q8 @
1 B# }0 W9 x, D) g8 ~
不知道这样的东西你们需要不?' ~6 J% Z8 P, s# X' i6 F) U, b( {
p) e, E. `1 U& f
如果有开发建议的话可以加我qq 76762,提供建议的朋友免费开放给你使用。 ( v0 E# |* S& i4 Q5 @+ z 4 T* q5 S+ z$ y3 b3 i8 a& [" \ ( ?8 D% _4 L+ G& P) l5 g$ z/ l# j. Z7 |6 y# m. D- Q' x/ H9 C
! \9 r4 A. r& |1 w
% F% o& K) A- L0 D* w