CN109684567A - Active page statistical analysis technique and device in a kind of App - Google Patents

Active page statistical analysis technique and device in a kind of App Download PDF

Info

Publication number
CN109684567A
CN109684567A CN201811360552.8A CN201811360552A CN109684567A CN 109684567 A CN109684567 A CN 109684567A CN 201811360552 A CN201811360552 A CN 201811360552A CN 109684567 A CN109684567 A CN 109684567A
Authority
CN
China
Prior art keywords
statistics
app
server
browser
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811360552.8A
Other languages
Chinese (zh)
Inventor
段凌云
孙保全
张宏
王金刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guiyang Yuwan Science & Technology Co Ltd
Original Assignee
Guiyang Yuwan Science & Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guiyang Yuwan Science & Technology Co Ltd filed Critical Guiyang Yuwan Science & Technology Co Ltd
Priority to CN201811360552.8A priority Critical patent/CN109684567A/en
Publication of CN109684567A publication Critical patent/CN109684567A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses active page statistical analysis technique and devices in a kind of App, the technical solution was to remove the url of inquiry string as webpage unique identification, in browser after webpage loaded, script file is returned to browser after receiving request by request statistics js script, server.After statistics script execution is complete in browser, page open statistics request can be sent to server first, related data is sent to server, server obtains browser end public network IP simultaneously, a record is assembled them into, database is written, is convenient for subsequent statistical operational analysis.In the present invention, the statistics script of active web pages is not merely webpage statistics, App, which is realized, by JSBridge shares ASSOCIATE STATISTICS, so that the code of statistics realizes that cohesion is higher, when in face of bug or extension, with more flexibility, App is not needed for activity and additionally issues new version program.

Description

Active page statistical analysis technique and device in a kind of App
Technical field
The present invention relates to active page statistical analysis sides in software information statistical technique field more particularly to a kind of App Method and device.
Background technique
Online market, operation drawing New activity are that very frequently, wherein most drawing New activity can be with webpage in mobile App It relies on.It draws new operation activity during online and needs to check many data after offline, evaluate activity from different perspectives Whether target is reached.Each operation activity has data relevant to specific transactions to want, and also has the general character unrelated with business Data, there are also data relevant to App, such as: activity shares that number, activity sharing number, App inside/outside are living in App in App It is logical outside that dynamic page open number, App inside/outside loose-leaf open number, App that number, App download software by the activity outside Cross the number etc. of the active registration.There are many similar things to do in different activities, these similar things are taken out one A system can save development time, the testing time of many statistical correlation functions, reduce error probability, so that it is new to promote drawing Movable online efficiency.
Since most of movable be unfolded using webpage, many developers can select the webpages such as Baidu's statistics, friendly alliance's statistics Statistical tool, by being embedded to one section of identical code to webpage, convenient realize counts the master data of the webpage, such as page The opening number in face opens number, opens IP number etc..If necessary to further function, can by way of the event of definition, Event statistics code is called at the event for needing to count, and realizes the data of event triggering number.
The webpages statistical tools such as Baidu's statistics, friendly alliance's statistics, have stronger versatility, any webpage passes through simple Code embedment, can easily count on the master data that many industries are often seen;However such maximum defect of statistical tool It lies also in its versatility, because excessively general, the data that any webpage is all paid close attention to can only be necessarily acquired, for purposive Draw new operation activity helpless.Because movable webpage statistical data is newly runed in drawing, in addition to needing to check conventional webpage Outside statistical data, it is also necessary to know the effect of the drawing New activity.For example, how many times have been shared in activity in App, bring how many User, installation are how many, and user prefers what channel to open webpage by, and the user quality of which channel is more excellent etc., These data are that needs are associated with App to a certain extent, it is clear that the pure net page statistical tool of versatility can not practise these Function, therefore, drawbacks described above present in the prior art needs to improve.
Summary of the invention
The technical problem to be solved by the present invention is on the basis of keeping versatility webpage statistical function, how easily The data point for drawing New activity of interest is collected, reported and counted.
Technical scheme is as follows:
Active page statistical analysis technique in a kind of App, comprising:
Using the url for removing inquiry string as webpage unique identification, webpage is loaded in browser;
Script file is back to browser, perform script after receiving request by request statistics js script, server;
Page open statistics request is sent to server, statistical data is sent to server, while server acquisition is clear It lookes at device end public network IP, assembles them into a record, database is written.
Preferably, event id, current active page url incoming event are triggered interface, reported event touching when trigger event Hair.
Preferably, being transferred data to by JSBridge when App shares and counting script in browser, statistics script will It is sent to server with active page url and database is written.
Preferably, further include: App server is searched by currently registering User IP in a timing after user's registration Interior identical IP opens the page and triggers the user record of downloading, is marked.
Preferably, further include: background management system pre-defines activity ID, it is associated with active web pages url.
Meanwhile invention further provides active pages in a kind of App to statistically analyze device, comprising:
Webpage loading unit, for being loaded in browser using the url for removing inquiry string as webpage unique identification Webpage;
Data statistics unit, for requesting statistics js script, script file is back to browsing after receiving request by server Device, perform script;
Data write unit requests for sending page open statistics to server, statistical data is sent to server, Server obtains browser end public network IP simultaneously, assembles them into a record, and database is written.
Preferably, further including event trigger unit, for connecing event id, the triggering of current active page url incoming event Mouthful, reported event triggering.
Preferably, further including App sharing unit, foot is counted in browser for transferring data to by JSBridge This, statistics script sends server with active page url for it and database is written.
Preferably, further including conversion IP determination unit, for App server after user's registration, by currently registering User IP searches identical IP within a certain period of time and opens the page and trigger the user record of downloading, is marked.
Preferably, further include activity data determination unit, for pre-defining activity ID in background management system, and will It is associated with active web pages url.
The present invention provides active page statistical analysis technique and devices in a kind of App, and the technical solution was to remove inquiry The url of character string is webpage unique identification, and in browser after webpage loaded, request statistics js script, server, which receives, is asked Script file is returned into browser after asking.After statistics script execution is complete in browser, the page can be sent to server first Statistics request is opened, related data is sent to server, while server obtains browser end public network IP, assembles them into one Item record, is written database, is convenient for subsequent statistical operational analysis.In the present invention, the statistics script of active web pages is not merely It is webpage statistics, App is realized by JSBridge and shares ASSOCIATE STATISTICS, so that the code of statistics realizes that cohesion is higher, When in face of bug or extension, flexibility is had more, App is not needed for activity and additionally issues new version program.The present invention has Effect is realized to drawing the data grabber of New activity webpage identical data statistical items in App, reporting, count, and reduces single-unit activity Development time and error probability.
Detailed description of the invention
Fig. 1 is statistical flowsheet figure of the present invention when loose-leaf is opened;
Fig. 2 is statistical flowsheet figure of the present invention in event triggering;
Fig. 3 is statistical flowsheet figure of the present invention when client is shared.
Specific embodiment
Below in conjunction with specific embodiment, the present invention is described in detail.
Embodiment 1
Active page statistical analysis technique in a kind of App
1) this method was to remove the url of inquiry string as webpage unique identification, because inquiry string is often taken With many service related datas (such as: User ID, Environmental context information etc.).And the pure nets such as Baidu's statistics, friendly alliance's statistics Page statistics does not remove inquiry string, so being not suitable for this scene.
2) in browser after webpage loaded, request statistics js script, server returns script file after receiving request Back to browser.Counting js script mainly includes 2 functions:
A) the statistics interface of JSBridge form is provided for App, comprising:
Triggering the page: App by interface tell webpage current page be out of App which place click come in, such as: Banner, message, task;
Share channel: App tells which channel webpage currently passes through and shared to the webpage by interface, such as: Wechat good friend, circle of friends, QQ friends, QQ space etc..
B) statistics codes are provided for webpage, collect current web page essential information, comprising:
User-agent: server end will be used to distinguish browser type, such as: browser, wechat browser, QQ in App Browser, Safari etc..By the opening channel for distinguishing webpage;
Screen size: server statistics user mobile phone screen size, convenient for statistics;
Event triggering: calling after browser internal trigger event, occurs to server reported event, convenient for statistics.
3) after statistics script execution is complete in browser, page open statistics request can be sent to server first, it will be upper The related data that face is mentioned is sent to server, while server obtains browser end public network IP, assembles them into a record, Database is written, is convenient for subsequent statistical operational analysis.Above method process is as shown in Figure 1.
4) when trigger event, as shown in Fig. 2, by by the event id arranged in advance, current active page url incoming event Trigger interface, reported event triggering.
5) when App shares, script is counted in channel data to browser as shown in figure 3, transmitting by JSBridge, system Meter script sends server with this active page url for it and database is written.
6) App server searches whether that there are phases in 20 minutes by currently registering User IP after user registration success The page is opened with IP, triggers the user record of downloading, if it is present being identified as 1 conversion.(IP obtains the data of conversion only For reference)
7) background management system pre-defines activity ID, it is associated with one or more active web pages url, can be obtained Movable related all webpage related datas, including conversion ratio.
Embodiment 2
Statistics example exemplified below.
When needing an online loose-leaf, in order to understand the movable effect, need to know that how many user opens The page, opens the how many times page, the number of clicks etc. of each button.At this moment it is only necessary to the activity completed in exploitation is every One section is embedded in a webpage<script src="stat.52yuwan.com/analysis.js"></script>code. Browser executes initialization function after having downloaded js script, and JavaScript method is called to obtain the essential informations such as url.Such as Fruit is the webpage opened in APP, is reattempted through JSBridge method call client code, and client correlation letter is obtained Breath.After having collected information, the data of the json format counted on are submitted from trend server by ajax mode, such as:
Server obtains in the HTTP request that browser end is submitted after the statistical data for receiving browser end submission User-agent field, differentiation are wechat browser or QQ browser or other browsers;The IP of browser end is obtained, And all statistical data are inserted into MySQL database.
If user is subsequent to click some button on the page, event statistics code is triggered, clicking can all pass through every time The mode of ajax sends the request of a json format to server, for recording the event, such as:
After server receives request, it is inserted into database.
Can be had according to different statistical classifications much using url as the record of major key in database, as shown in the table:
The citing of 1 database data form of table
url moduleId width height from ……
www.52yuwan.com 1 1080 1920 1 ……
ppws.52yuwan.com 2 1080 1920 2 ……
www.52yuwan.com 1 1080 1920 2 ……
Different url is associated under the same module by backstage by moduleId, in this way can be convenient by screening Check the access situation of some each page entirety of activity.
Embodiment 3
Active page statistical analysis technique in a kind of App, comprising: the url to remove inquiry string is uniquely marked as webpage Know, webpage is loaded in browser;Script file is back to browser after receiving request by request statistics js script, server, Perform script;Page open statistics request is sent to server, statistical data is sent to server, while server acquisition is clear It lookes at device end public network IP, assembles them into a record, database is written.
Active page statisticallys analyze device in a kind of App, comprising: webpage loading unit, for remove inquiry string Url be webpage unique identification, webpage is loaded in browser;Data statistics unit, for requesting statistics js script, server It receives and script file is back to browser, perform script after requesting;Data write unit is beaten for sending the page to server Statistics request is opened, statistical data is sent to server, while server obtains browser end public network IP, assembles them into one Database is written in record.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description, And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.

Claims (10)

1. active page statistical analysis technique in a kind of App characterized by comprising
Using the url for removing inquiry string as webpage unique identification, webpage is loaded in browser;
Script file is back to browser, perform script after receiving request by request statistics js script, server;
Page open statistics request is sent to server, statistical data is sent to server, while server obtains browser Public network IP is held, a record is assembled them into, database is written.
2. active page statistical analysis technique in a kind of App according to claim 1, it is characterised in that:, will when trigger event Event id, current active page url incoming event trigger interface, reported event triggering.
3. active page statistical analysis technique in a kind of App according to claim 1, it is characterised in that: when App shares, lead to It crosses JSBridge and transfers data to statistics script in browser, count script for it and be sent to server simultaneously with active page url Database is written.
4. active page statistical analysis technique in a kind of App according to claim 1, which is characterized in that further include: App clothes Device be engaged in after user's registration, by currently registering User IP lookup, identical IP opens the page and triggers downloading within a certain period of time User record is marked.
5. active page statistical analysis technique in a kind of App according to claim 1, which is characterized in that further include: it manages on backstage Reason system pre-defines activity ID, it is associated with active web pages url.
6. active page statisticallys analyze device in a kind of App characterized by comprising
Webpage loading unit, for loading net in browser using the url for removing inquiry string as webpage unique identification Page;
Data statistics unit, for requesting statistics js script, script file is back to browser after receiving request, held by server Travel far and wide this;
Statistical data is sent to server, simultaneously for sending page open statistics request to server by data write unit Server obtains browser end public network IP, assembles them into a record, and database is written.
7. active page statisticallys analyze device in a kind of App according to claim 6, it is characterised in that further include event triggering Unit, for event id, current active page url incoming event to be triggered interface, reported event triggering.
8. active page statisticallys analyze device in a kind of App according to claim 6, it is characterised in that further include that App shares Unit counts script for transferring data to by JSBridge in browser, statistics script sends it with active page url To server and database is written.
9. active page statisticallys analyze device in a kind of App according to claim 6, it is characterised in that further include conversion IP true Order member searches identical IP opening within a certain period of time by currently registering User IP for App server after user's registration The page and the user record for triggering downloading, are marked.
10. active page statisticallys analyze device in a kind of App according to claim 6, it is characterised in that further include movable number According to determination unit, for pre-defining activity ID in background management system, and it is associated with active web pages url.
CN201811360552.8A 2018-11-15 2018-11-15 Active page statistical analysis technique and device in a kind of App Pending CN109684567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811360552.8A CN109684567A (en) 2018-11-15 2018-11-15 Active page statistical analysis technique and device in a kind of App

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811360552.8A CN109684567A (en) 2018-11-15 2018-11-15 Active page statistical analysis technique and device in a kind of App

Publications (1)

Publication Number Publication Date
CN109684567A true CN109684567A (en) 2019-04-26

Family

ID=66184714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811360552.8A Pending CN109684567A (en) 2018-11-15 2018-11-15 Active page statistical analysis technique and device in a kind of App

Country Status (1)

Country Link
CN (1) CN109684567A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221711A (en) * 2019-10-12 2020-06-02 中国平安财产保险股份有限公司 User behavior data processing method, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521760A (en) * 2011-12-02 2012-06-27 互动通天图信息技术有限公司 User data acquisition method base on internet
CN104219078A (en) * 2013-06-04 2014-12-17 阿里巴巴集团控股有限公司 Method and device for processing multiple runtime environment data
CN106469185A (en) * 2016-08-29 2017-03-01 浪潮电子信息产业股份有限公司 A kind of method carrying out data collection in website statistics
CN107943921A (en) * 2017-11-21 2018-04-20 腾讯数码(天津)有限公司 Page sharing information generation method, device, computer equipment and storage medium
CN108932413A (en) * 2017-05-22 2018-12-04 腾讯科技(北京)有限公司 A kind of digital signature generation method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521760A (en) * 2011-12-02 2012-06-27 互动通天图信息技术有限公司 User data acquisition method base on internet
CN104219078A (en) * 2013-06-04 2014-12-17 阿里巴巴集团控股有限公司 Method and device for processing multiple runtime environment data
CN106469185A (en) * 2016-08-29 2017-03-01 浪潮电子信息产业股份有限公司 A kind of method carrying out data collection in website statistics
CN108932413A (en) * 2017-05-22 2018-12-04 腾讯科技(北京)有限公司 A kind of digital signature generation method, device and storage medium
CN107943921A (en) * 2017-11-21 2018-04-20 腾讯数码(天津)有限公司 Page sharing information generation method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221711A (en) * 2019-10-12 2020-06-02 中国平安财产保险股份有限公司 User behavior data processing method, server and storage medium

Similar Documents

Publication Publication Date Title
CN106649063B (en) Method and system for monitoring time-consuming data during program operation
CN105553769B (en) A kind of data acquisition and analysis system and method
US8725794B2 (en) Enhanced website tracking system and method
CN104219108B (en) Monitor the movable system of mobile Internet, method and apparatus
CN106202117B (en) Data processing method and device and server
US11816172B2 (en) Data processing method, server, and computer storage medium
WO2011069255A1 (en) A method and system for efficient and exhaustive url categorization
CN110163654B (en) Advertisement delivery data tracking method and system
US9491223B2 (en) Techniques for determining a mobile application download attribution
WO2015103122A2 (en) A method and system for tracking and gathering multivariate testing data
CN111459624B (en) Resource data distribution method, device and equipment
EP2756432A1 (en) System and method for automated classification of web pages and domains
US11830040B2 (en) Methods and apparatus to expand panelist enrollment
EP2577584A1 (en) Method of identifying remote users of websites
Pintor et al. A dataset of labelled device Wi-Fi probe requests for MAC address de-randomization
US10775751B2 (en) Automatic generation of regular expression based on log line data
CN109684567A (en) Active page statistical analysis technique and device in a kind of App
CN112016027A (en) Method and device for monitoring access data operation platform
US10616306B2 (en) System and method for large-scale capture and tracking of web-based application parameters
CN104579754A (en) User access time characteristic statistic method for Web application
CN110020166A (en) A kind of data analysing method and relevant device
CA2914898C (en) A method and survey server for performing a web survey based on behavioral data specific to a web page
US8868064B1 (en) Mobile device metrics management
CN112270008A (en) Method and system for accurately calculating group characteristics
CN110737693A (en) Data mining processing method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190426

RJ01 Rejection of invention patent application after publication