CN106599075A - Statistical method and device for user behavior data - Google Patents
Statistical method and device for user behavior data Download PDFInfo
- Publication number
- CN106599075A CN106599075A CN201611036005.5A CN201611036005A CN106599075A CN 106599075 A CN106599075 A CN 106599075A CN 201611036005 A CN201611036005 A CN 201611036005A CN 106599075 A CN106599075 A CN 106599075A
- Authority
- CN
- China
- Prior art keywords
- data
- page
- user
- website
- user behavior
- 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.)
- Granted
Links
- 238000007619 statistical method Methods 0.000 title abstract 2
- 238000000034 method Methods 0.000 claims abstract description 43
- 238000012545 processing Methods 0.000 claims abstract description 8
- 230000003542 behavioural effect Effects 0.000 claims description 39
- 238000013515 script Methods 0.000 claims description 38
- 235000014510 cooky Nutrition 0.000 claims description 32
- 230000008569 process Effects 0.000 claims description 15
- 238000003780 insertion Methods 0.000 claims 1
- 230000037431 insertion Effects 0.000 claims 1
- 238000011160 research Methods 0.000 abstract description 7
- 241000699666 Mus <mouse, genus> Species 0.000 description 30
- 241001269238 Data Species 0.000 description 5
- 206010033799 Paralysis Diseases 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 238000005457 optimization Methods 0.000 description 3
- 230000003139 buffering effect Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000003071 parasitic effect Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012913 prioritisation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Abstract
The invention provides a statistical method and device for user behavior data. The method comprises the steps of capturing behavior data of a user on web pages by using a js script program; processing the captured user behavior data; and reporting the processed user behavior data to a web server according to a reporting strategy, thus allowing the web server to be capable of performing data statistics on the user behavior data. Therefore, the web server can send a statistical result to research personnel who can optimize functions of an Internet pop-up webcast websites according to the statistical result, and thus operation efficiency of the user is improved.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of method and device of counting user behavioral data.
Background technology
The renewal of the Internet barrage webcast website is very fast, but most of website for web sites function renewal with developed
In subjectivity, in order to allow the operation behavior and custom that the function of website is more close to the users, need in browsing device net page to user
Behavior in website carries out statistics and analysis, summarizes eventually through the result of the analysis to user behavior data and formulates website
The prioritization scheme of function and development plan.
The content of the invention
For prior art exist problem, embodiments provide a kind of counting user behavioral data method and
Device, for solve in prior art can not in the browsing device net page of the Internet barrage webcast website to user in website
Behavior carries out statistics and analysis, and then optimizes the technical problem of web sites function according to statistical result.
The present invention provides a kind of method of counting user behavioral data, and methods described includes:
Behavioral data of the user on Website page is captured using js shell scripts;
The user behavior data to grabbing is processed;
User behavior data after the process is reported to by Website server according to reporting policy so that the website clothes
Business device can be counted to the user behavior data.
In such scheme, when the user behavior data be browse web sites the page frequency data when, the utilization js feet
This program crawl behavioral data of the user on Website page is specifically included:
The onload events of the Website page are monitored, the load time point of the Website page is obtained;
The loading number of times of the Website page is determined according to the load time point;
The unload events of the Website page are monitored, the current point in time that user leaves the Website page is obtained;
The load time of the Website page is determined according to the current point in time and load time point;
Browse web sites according to the loading number of times and the load time determine the frequency data of the page.
In such scheme, when the user behavior data be browse web sites the page track data when, the utilization js feet
This program crawl behavioral data of the user on Website page is specifically included:
Obtain the referrer property values of event under the current site page;
Whether there is track data in judging cookie, such as exist, then the referrer property values are inserted
In track data in the cookie, obtain user and browse web sites the track data of the page.
In such scheme, when there is no the track data in the cookie, methods described also includes:
Based on the referrer property values, the rail of the page that browsed web sites using the js shell scripts generation user
Mark data;
The track data of the page that browses web sites is preserved into the cookie.
In such scheme, when the user behavior data is the frequency data for operating mac function in Website page, institute
State and specifically included using js shell scripts crawl behavioral data of the user on Website page:
Monitor mouse entry event mouseover of mac function outermost layer dom elements in the Website page;
Monitor the mouse moving event mouseover in the mac function;
The frequency of mac function in the Website page is generated according to the mouse entry event and the mouse moving event
Rate data.
In such scheme, when the user behavior data is the track data for operating mac function in Website page, institute
State the behavioral data for capturing mac function in user operation Website page using js shell scripts to specifically include:
Monitor mouse entry event mouseover of current mac function outermost layer dom elements in the Website page;
The mouse monitored in the current mac function leaves event mouseout;
When listening to mouse and leaving event mouseout, the title of the current mac function is assigned to pre-build
Variable lastmod;
When mouse entry event mouseover of next mac function of the current mac function is listened to, obtain
The lastmod;
It is not space-time to determine the lastmod, generates the rail of mac function in operation Website page based on the lastmod
Mark data.
In such scheme, the described pair of user behavior data for grabbing is processed, including:
Merge the user behavior data for grabbing based on user account information;
In merging process, the user behavior data is encrypted.
It is in such scheme, described that user behavior data after the process is reported to by website service according to reporting policy
Device, including:
Aray variable is set up, the user behavior data is stored in the aray variable;
The aray variable is scanned according to the default scan period, user's row described in N bars is extracted from the aray variable
The Website server is reported to for data.
The present invention also provides a kind of device of counting user behavioral data, and described device includes:
Placement unit, for capturing behavioral data of the user on Website page using js shell scripts;
Processing unit, is processed for the user behavior data to grabbing;
Reporting unit, for the user behavior data after the process is reported to Website server according to reporting policy,
The Website server is counted to the user behavior data.
In such scheme, when the user behavior data be browse web sites the page frequency data when, the placement unit
Specifically for:
The onload events of the Website page are monitored, the load time point of the Website page is obtained;
The loading number of times of the Website page is determined according to the load time point;
The unload events of the Website page are monitored, the current point in time that user leaves the Website page is obtained;
The load time of the Website page is determined according to the current point in time and load time point;
Browse web sites according to the loading number of times and the load time determine the frequency data of the page.
The invention provides a kind of method and device of counting user behavioral data, methods described includes:Using js scripts
Program captures behavioral data of the user on Website page;The user behavior data to grabbing is processed;According to upper
User behavior data after the process is reported to Website server by report strategy so that the Website server can be to the use
Family behavioral data is counted;Thus, the Website server can send statistical result to research staff, research staff can
To carry out function optimization to the Internet barrage webcast website according to statistical result, and then improve the operating efficiency of user.
Description of the drawings
Fig. 1 is the method flow schematic diagram of the counting user behavioral data that the embodiment of the present invention one is provided;
Fig. 2 is the apparatus structure schematic diagram of the counting user behavioral data that the embodiment of the present invention two is provided.
Specific embodiment
In order to count to the user behavior data in the Internet barrage webcast website, and then according to statistics
As a result function optimization is carried out to the Internet barrage webcast website, the invention provides a kind of method of counting user behavioral data and
Device, methods described include:Behavioral data of the user on Website page is captured using js shell scripts;Described in grabbing
User behavior data is processed;User behavior data after the process is reported to by Website server according to reporting policy,
The Website server is counted to the user behavior data.
Technical scheme is described in further detail below by drawings and the specific embodiments.
Embodiment one
The present embodiment provides a kind of method of counting user behavioral data, as shown in figure 1, methods described includes:
S101, captures behavioral data of the user on Website page using js shell scripts.
In this step, the js shell scripts are parasitic in a browser, when user opens Website page by browser,
The HTML content of Website page then can quote js script source files path, the HTML of browser resolves Website page by script
When, will load automatically and parse execution js script source files.In this manner it is possible to utilize js shell scripts to capture user in website
Behavioral data on the page.
Here, the type of the user behavior data includes:Browse web sites the page frequency data, browse web sites the page
Track data of mac function etc. in the frequency data of mac function, operation Website page in track data, operation Website page.
The form of the user behavior data is generally JSON forms.
When user behavior data be browse web sites the page frequency data when, the data mainly include Website page access time
Number and the Website page time of staying, then capture the data using js shell scripts and specifically include:Crawl Website page accesses secondary
Several data and the data of the Website page time of staying.
Crawl Website page access times data when, be by loading in Website page after opportunity generate and report
Data are realized.Specifically, can pass through to monitor the onload events of the Website page, obtain the load time of Website page
Point;The loading number of times of the Website page is determined according to the load time point;Wherein, the onload representations of events current page
Face loading is completed.
And when capturing the data of the Website page time of staying, can pass through to monitor the unload events of the Website page,
Obtain the current point in time that user leaves the Website page;Institute is determined according to the current point in time and load time point
State the load time of Website page;Wherein, the unload representations of events current page will be destroyed, that is, represent that user is
Current page will be left, the load time of Website page by current point in time is deducted load time point, will be obtained.
After loading number of times and load time all determine, it is possible to true according to the loading number of times and the load time
The frequency data of the fixed page that browses web sites.
When user behavior data be browse web sites the page track data when, core is by cookie cookie
To carry out data grabber, in js scripts, the referrer attributes of event document represent the source address of current page,
This address is the character string of a URL format.Js scripts after current page loading capture the data and specifically include:
Obtain the referrer property values of event document under the current site page;
Whether there is track data in judging cookie, such as exist, then the referrer property values are inserted
In track data in the cookie, obtain user and browse web sites the track data of the page.Wherein, will be described
The data form that referrer property values are inserted in the track data in the cookie is as follows:
// code starts
Key=ref.ref.ref.ref
// EOC
Track data is a referrer string assemble separated with period.
Here, when whether there is track data in cookie is judged, it is implemented as follows, it is assumed that track data
Key name in cookie is key, if there is key in cookie, has track data in showing cookie;If do not deposited
Then showing no track data in cookie.
Further, when there is no the track data in the cookie, methods described also includes:
Based on the referrer property values, the rail of the page that browsed web sites using the js shell scripts generation user
Mark data;The browse web sites track data of the page of the user is preserved into the cookie.
Here, the track data of the page that browses web sites refers to the order of user's accession page in website, by right
The analysis of track data can learn some demands of user, while website maintenance person can be according to the behaviour of data reduction user
Make, lift the experience of user.
When user behavior data is the frequency data for operating mac function in Website page, then using js shell scripts
Capture the data to specifically include:
Monitor mouse entry event mouseover of mac function outermost layer dom elements in the Website page;Monitor institute
State the mouse moving event mouseover in mac function;Given birth to according to the mouse entry event and the mouse moving event
The frequency data of mac function in the Website page.
Here, in user operation Website page, the frequency of mac function can allow website maintenance person to know work(in Website page
Energy block illustrates this for the value of user if the user operation frequency of some mac function is very low in the block of website
Block is very low for the value of user, so as to need to be modified.
When user behavior data is the track data for operating mac function in Website page, captured using js shell scripts
The data are specifically included:
Monitor mouse entry event mouseover of current mac function outermost layer dom elements in the Website page;Prison
The mouse in the current mac function is listened to leave event mouseout;
When listening to mouse and leaving event mouseout, the title of the current mac function is assigned to pre-build
Global variable lastmod;The global variable lastmod represents the block name in the page of user's last operation.
The mouse for then listening for all mac function leaves event mouseout and mouse leaves event mouseout,
When mouse enters the next mac function of current mac function, the mouseover events of the block can be triggered,
When mouse entry event mouseover of next mac function of the current mac function is listened to, obtain described
lastmod;When the lastmod is not space-time, represent that user operates other functions block before current mac function is operated,
The track data of in operation Website page mac function just can be generated based on the lastmod so, after track data is generated,
Lastmod is set to into sky.
The lastmod is got, when the lastmod is space-time, is left intact.
Thus user behavior data crawl is finished.
S102, the user behavior data to grabbing are processed.
In this step, after the user behavior data of crawl is got, JSON forms are converted the data to.For
The coupling of the data relationship in js codes is avoided, merges the user behavior data for grabbing based on user account information;
In merging process, the user behavior data is encrypted.
Here, in order to ensure the safety of Website server, js scripts define data in advance between Website server
The specification of safety encryption, in order to prevent third party from attacking to the malicious data of Website server.
User behavior data after the process is reported to Website server according to reporting policy by S103.
In this step, the reporting policy includes:Directly report to ease up and rush to report.Described directly reporting is for data volume
The less scene of level, such as, report of user browse web sites the page frequency data when, directly can report.
But, when data magnitude is larger, if directly reporting Website server pressure can be caused excessive and be paralysed, therefore
Can be reported using buffering.Such as, report of user operates the frequency data of mac function in Website page.
Here, in report of user operates Website page during the frequency data of mac function, the mousemove of dom elements
Event can produce substantial amounts of data, if current site has 10,000 users online, an average user was in 1 second internal trigger dom
Mousemove events generate 10 datas, if uncontrolled, then front end may send 100,000 in 1 second simultaneously
It is secondary to ask, to Website server, so cause Website server pressure excessive and paralyse.
When reported data is buffered, specifically include:Aray variable list is set up, the user behavior data is stored in into institute
State in aray variable list;A unique snoop logic is created using setInterval, default scan period scanning is spaced
Aray variable list, from the aray variable extracts N datas and reports to the Website server.Wherein, scan week
Phase is specifically as follows 1000ms, and the N values can be set according to concrete scene, such as when N is 5, extracts 5 every time from list
Bar user behavior data reports to Website server.
When Website server receives these data, just can be to the user after being decrypted to user behavior data
Behavioral data is counted, and statistical result is presented to research staff.
Embodiment two
Corresponding to embodiment one, the present embodiment additionally provides a kind of device of counting user behavioral data, as shown in Fig. 2
Described device includes:Placement unit 21, processing unit 22 and reporting unit 23;Wherein,
Placement unit 21 is used to capture behavioral data of the user on Website page using js shell scripts.Here, it is described
Js shell scripts are parasitic in a browser, and when user opens Website page by browser, the HTML content of Website page is then
Js script source files path can be quoted by script, during the HTML of browser resolves Website page, placement unit 21 will be certainly
Dynamic loading simultaneously parses execution js script source files.In this manner it is possible to utilize js shell scripts capture user on Website page
Behavioral data.
Here, the type of the user behavior data includes:Browse web sites the page frequency data, browse web sites the page
Track data of mac function etc. in the frequency data of mac function, operation Website page in track data, operation Website page.
The form of the user behavior data is generally JSON forms.
When user behavior data be browse web sites the page frequency data when, the data mainly include Website page access time
Number and the Website page time of staying, then placement unit 21 captures the data using js shell scripts and specifically includes:Crawl website
The data and the data of the Website page time of staying of page access number of times.
Crawl Website page access times data when, be by loading in Website page after opportunity generate and report
Data are realized.Specifically, can pass through to monitor the onload events of the Website page, obtain the load time of Website page
Point;The loading number of times of the Website page is determined according to the load time point;Wherein, the onload representations of events current page
Face loading is completed.
And when capturing the data of the Website page time of staying, can pass through to monitor the unload events of the Website page,
Obtain the current point in time that user leaves the Website page;Institute is determined according to the current point in time and load time point
State the load time of Website page;Wherein, the unload representations of events current page will be destroyed, that is, represent that user is
Current page will be left, the load time of Website page by current point in time is deducted load time point, will be obtained.
After loading number of times and load time all determine, it is possible to true according to the loading number of times and the load time
The frequency data of the fixed page that browses web sites.
When user behavior data be browse web sites the page track data when, core is by cookie cookie
To carry out data grabber, in js scripts, the referrer attributes of event document represent the source address of current page,
This address is the character string of a URL format.After current page loading, placement unit 21 captures the data to be had js scripts
Body includes:
Obtain the referrer property values of event document under the current site page;
Whether there is track data in judging cookie, such as exist, then the referrer property values are inserted
In track data in the cookie, obtain user and browse web sites the track data of the page.Wherein, will be described
The data form that referrer property values are inserted in the track data in the cookie is as follows:
// code starts
Key=ref.ref.ref.ref
// EOC
Track data is a referrer string assemble separated with period.
Here, when whether there is track data in cookie is judged, it is implemented as follows, it is assumed that track data
Key name in cookie is key, if there is key in cookie, has track data in showing cookie;If do not deposited
Then showing no track data in cookie.
Further, when there is no the track data in the cookie, placement unit 21 is additionally operable to:
Based on the referrer property values, the rail of the page that browsed web sites using the js shell scripts generation user
Mark data;The browse web sites track data of the page of the user is preserved into the cookie.
Here, the track data of the page that browses web sites refers to the order of user's accession page in website, by right
The analysis of track data can learn some demands of user, while website maintenance person can be according to the behaviour of data reduction user
Make, lift the experience of user.
When user behavior data is the frequency data for operating mac function in Website page, then placement unit 21 is utilized
Js shell scripts capture the data and specifically include:
Monitor mouse entry event mouseover of mac function outermost layer dom elements in the Website page;Monitor institute
State the mouse moving event mouseover in mac function;Given birth to according to the mouse entry event and the mouse moving event
The frequency data of mac function in the Website page.
Here, in user operation Website page, the frequency of mac function can allow website maintenance person to know work(in Website page
Energy block illustrates this for the value of user if the user operation frequency of some mac function is very low in the block of website
Block is very low for the value of user, so as to need to be modified.
When user behavior data is the track data for operating mac function in Website page, placement unit 21 utilizes js feet
This program captures the data and specifically includes:
Monitor mouse entry event mouseover of current mac function outermost layer dom elements in the Website page;Prison
The mouse in the current mac function is listened to leave event mouseout;
When listening to mouse and leaving event mouseout, the title of the current mac function is assigned to pre-build
Global variable lastmod;The global variable lastmod represents the block name in the page of user's last operation.
The mouse for then listening for all mac function leaves event mouseout and mouse leaves event mouseout,
When mouse enters the next mac function of current mac function, the mouseover events of the block can be triggered,
When mouse entry event mouseover of next mac function of the current mac function is listened to, obtain described
lastmod;When the lastmod is not space-time, represent that user operates other functions block before current mac function is operated,
The track data of in operation Website page mac function just can be generated based on the lastmod so, after track data is generated,
Lastmod is set to into sky.
The lastmod is got, when the lastmod is space-time, is left intact.
So placement unit 21 just finishes user behavior data crawl.
After user behavior data crawl is finished by placement unit 21, processing unit 22 is for the use to grabbing
Family behavioral data is processed;In processing procedure, the processing unit 22 converts the data to JSON forms first.For
The coupling of the data relationship in js codes is avoided, merges the user behavior data for grabbing based on user account information;
In merging process, the user behavior data is encrypted.
Here, in order to ensure the safety of Website server, js scripts define data in advance between Website server
The specification of safety encryption, in order to prevent third party from attacking to the malicious data of Website server.
After user behavior data is disposed by the processing unit 22, the reporting unit 23 is reported for basis
User behavior data after the process is reported to Website server by strategy so that the Website server can be to the user
Behavioral data is counted.
Specifically, the reporting policy includes:Directly report to ease up and rush to report.Described directly reporting is for data magnitude
Less scene, such as, report of user browse web sites the page frequency data when, directly can report.
But, when data magnitude is larger, if directly reporting Website server pressure can be caused excessive and be paralysed, therefore
Can be reported using buffering.Such as, report of user operates the frequency data of mac function in Website page.
Here, in report of user operates Website page during the frequency data of mac function, dom is first for the reporting unit 23
The mousemove events of element can produce substantial amounts of data, if current site has 10,000 users online, an average user is 1
The mousemove events of second internal trigger dom generate 10 datas, if uncontrolled, then front end may in 1 second
Send 100,000 times simultaneously and ask, to Website server, may so cause Website server pressure excessive and paralyse.
The reporting unit 23 is specifically included when reported data is buffered:Aray variable list is set up, by user's row
It is data storage in aray variable list;A unique snoop logic is created using setInterval, interval is default
Scan period scan aray variable list, N datas are extracted from the aray variable and report to the website service
Device.Wherein, the scan period be specifically as follows 1000ms, the N values can be set according to concrete scene, such as when N be 5 when, often
Secondary 5 user behavior datas of extraction from list report to Website server.
When Website server receives these data, just can be to the user after being decrypted to user behavior data
Behavioral data is counted, and statistical result is presented to research staff.
The beneficial effect brought of one or more embodiments that the present invention is provided is:
The invention provides a kind of method and device of counting user behavioral data, methods described includes:Using js scripts
Program captures behavioral data of the user on Website page;The user behavior data to grabbing is processed;According to upper
User behavior data after the process is reported to Website server by report strategy so that the Website server can be to the use
Family behavioral data is counted;Thus, the Website server can send statistical result to research staff, research staff can
So that function optimization is carried out to the Internet barrage webcast website according to statistical result, and then improve operating efficiency and the experience of user
Degree.
The above, only presently preferred embodiments of the present invention is not intended to limit protection scope of the present invention, it is all
Any modification, equivalent and improvement for being made within the spirit and principles in the present invention etc., should be included in the protection of the present invention
Within the scope of.
Claims (10)
1. a kind of method of counting user behavioral data, it is characterised in that methods described includes:
Behavioral data of the user on Website page is captured using js shell scripts;
The user behavior data to grabbing is processed;
User behavior data after the process is reported to by Website server according to reporting policy so that the Website server
The user behavior data can be counted.
2. the method for claim 1, it is characterised in that when the user behavior data is the frequency of the page of browsing web sites
During data, the utilization js shell scripts crawl behavioral data of the user on Website page is specifically included:
The onload events of the Website page are monitored, the load time point of the Website page is obtained;
The loading number of times of the Website page is determined according to the load time point;
The unload events of the Website page are monitored, the current point in time that user leaves the Website page is obtained;
The load time of the Website page is determined according to the current point in time and load time point;
Browse web sites according to the loading number of times and the load time determine the frequency data of the page.
3. the method for claim 1, it is characterised in that when the user behavior data is the track of the page of browsing web sites
During data, the utilization js shell scripts crawl behavioral data of the user on Website page is specifically included:
Obtain the referrer property values of event under the current site page;
Whether there is track data in judging cookie, such as exist, then will be referrer property values insertion described
In track data in cookie, obtain user and browse web sites the track data of the page.
4. method as claimed in claim 3, it is characterised in that when there is no the track data in the cookie
When, methods described also includes:
Based on the referrer property values, the track number of the page that browsed web sites using the js shell scripts generation user
According to;
The track data of the page that browses web sites is preserved into the cookie.
5. the method for claim 1, it is characterised in that the function in the user behavior data is for operation Website page
During the frequency data of block, the utilization js shell scripts crawl behavioral data of the user on Website page is specifically included:
Monitor mouse entry event mouseover of mac function outermost layer dom elements in the Website page;
Monitor the mouse moving event mouseover in the mac function;
The frequency number of mac function in the Website page is generated according to the mouse entry event and the mouse moving event
According to.
6. the method for claim 1, it is characterised in that the function in the user behavior data is for operation Website page
During the track data of block, the behavioral data tool of mac function in the utilization js shell scripts crawl user operation Website page
Body includes:
Monitor mouse entry event mouseover of current mac function outermost layer dom elements in the Website page;
The mouse monitored in the current mac function leaves event mouseout;
When listening to mouse and leaving event mouseout, the title of the current mac function is assigned to into the change for pre-building
Amount lastmod;
When mouse entry event mouseover of next mac function of the current mac function is listened to, obtain described
lastmod;
It is not space-time to determine the lastmod, generates the track number of mac function in operation Website page based on the lastmod
According to.
7. the method for claim 1, it is characterised in that at the described pair of user behavior data for grabbing
Reason, including:
Merge the user behavior data for grabbing based on user account information;
In merging process, the user behavior data is encrypted.
8. the method for claim 1, it is characterised in that it is described according to reporting policy by the user behavior after the process
Data report to Website server, including:
Aray variable is set up, the user behavior data is stored in the aray variable;
The aray variable is scanned according to the default scan period, user behavior number described in N bars is extracted from the aray variable
According to reporting to the Website server.
9. a kind of device of counting user behavioral data, it is characterised in that described device includes:
Placement unit, for capturing behavioral data of the user on Website page using js shell scripts;
Processing unit, is processed for the user behavior data to grabbing;
Reporting unit, for the user behavior data after the process is reported to Website server according to reporting policy so that
The Website server can be counted to the user behavior data.
10. device as claimed in claim 9, it is characterised in that when the user behavior data is the frequency of the page of browsing web sites
During rate data, the placement unit specifically for:
The onload events of the Website page are monitored, the load time point of the Website page is obtained;
The loading number of times of the Website page is determined according to the load time point;
The unload events of the Website page are monitored, the current point in time that user leaves the Website page is obtained;
The load time of the Website page is determined according to the current point in time and load time point;
Browse web sites according to the loading number of times and the load time determine the frequency data of the page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611036005.5A CN106599075B (en) | 2016-11-14 | 2016-11-14 | A kind of method and device of counting user behavioral data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611036005.5A CN106599075B (en) | 2016-11-14 | 2016-11-14 | A kind of method and device of counting user behavioral data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106599075A true CN106599075A (en) | 2017-04-26 |
CN106599075B CN106599075B (en) | 2019-07-09 |
Family
ID=58592711
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611036005.5A Active CN106599075B (en) | 2016-11-14 | 2016-11-14 | A kind of method and device of counting user behavioral data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106599075B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107798558A (en) * | 2017-09-30 | 2018-03-13 | 中国平安人寿保险股份有限公司 | User behavior data analysis method and server |
CN107894989A (en) * | 2017-09-30 | 2018-04-10 | 上海壹账通金融科技有限公司 | User behavior data acquisition method and application server |
CN107908748A (en) * | 2017-11-17 | 2018-04-13 | 南京感度信息技术有限责任公司 | Website user's behavioral data acquisition method, system and application based on big data |
CN108334619A (en) * | 2018-02-07 | 2018-07-27 | 政采云有限公司 | A kind of collecting method, device, computing device and storage medium |
CN108446212A (en) * | 2018-03-30 | 2018-08-24 | 武汉斗鱼网络科技有限公司 | Obtain method, apparatus, storage medium and the equipment in user behavior path |
CN108829693A (en) * | 2018-04-13 | 2018-11-16 | 拉扎斯网络科技(上海)有限公司 | A kind of user accesses acquisition methods, device and the storage medium of track |
CN109344067A (en) * | 2018-09-29 | 2019-02-15 | 浙江万朋教育科技股份有限公司 | A kind of method of automatic reprinting related news information |
CN110020073A (en) * | 2017-10-12 | 2019-07-16 | 北京国双科技有限公司 | A kind of live streaming web page crawl method and device |
CN110020273A (en) * | 2017-08-16 | 2019-07-16 | 北京京东尚科信息技术有限公司 | For generating the method, apparatus and system of thermodynamic chart |
CN112148413A (en) * | 2020-09-29 | 2020-12-29 | 无线生活(杭州)信息科技有限公司 | Page optimization method and device |
CN114490315A (en) * | 2021-12-16 | 2022-05-13 | 北京志凌海纳科技有限公司 | Automatic testing method and device for Web application program |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880679A (en) * | 2012-09-11 | 2013-01-16 | 北京易云剪客科技有限公司 | Method and device for storing webpage information |
CN103425706A (en) * | 2012-05-25 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Method and device for realizing element dragging in webpage embedded with floating frame elements |
CN103631806A (en) * | 2012-08-24 | 2014-03-12 | 华为技术有限公司 | Network information fetching method and device |
-
2016
- 2016-11-14 CN CN201611036005.5A patent/CN106599075B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103425706A (en) * | 2012-05-25 | 2013-12-04 | 腾讯科技(深圳)有限公司 | Method and device for realizing element dragging in webpage embedded with floating frame elements |
CN103631806A (en) * | 2012-08-24 | 2014-03-12 | 华为技术有限公司 | Network information fetching method and device |
CN102880679A (en) * | 2012-09-11 | 2013-01-16 | 北京易云剪客科技有限公司 | Method and device for storing webpage information |
Non-Patent Citations (1)
Title |
---|
杨芮: "Web用户行为数据收集统计系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020273A (en) * | 2017-08-16 | 2019-07-16 | 北京京东尚科信息技术有限公司 | For generating the method, apparatus and system of thermodynamic chart |
CN110020273B (en) * | 2017-08-16 | 2021-06-29 | 北京京东尚科信息技术有限公司 | Method, device and system for generating thermodynamic diagram |
CN107894989A (en) * | 2017-09-30 | 2018-04-10 | 上海壹账通金融科技有限公司 | User behavior data acquisition method and application server |
CN107798558A (en) * | 2017-09-30 | 2018-03-13 | 中国平安人寿保险股份有限公司 | User behavior data analysis method and server |
CN110020073B (en) * | 2017-10-12 | 2021-04-27 | 北京国双科技有限公司 | Live broadcast webpage crawling method and device |
CN110020073A (en) * | 2017-10-12 | 2019-07-16 | 北京国双科技有限公司 | A kind of live streaming web page crawl method and device |
CN107908748A (en) * | 2017-11-17 | 2018-04-13 | 南京感度信息技术有限责任公司 | Website user's behavioral data acquisition method, system and application based on big data |
CN108334619A (en) * | 2018-02-07 | 2018-07-27 | 政采云有限公司 | A kind of collecting method, device, computing device and storage medium |
CN108446212A (en) * | 2018-03-30 | 2018-08-24 | 武汉斗鱼网络科技有限公司 | Obtain method, apparatus, storage medium and the equipment in user behavior path |
CN108829693A (en) * | 2018-04-13 | 2018-11-16 | 拉扎斯网络科技(上海)有限公司 | A kind of user accesses acquisition methods, device and the storage medium of track |
CN109344067A (en) * | 2018-09-29 | 2019-02-15 | 浙江万朋教育科技股份有限公司 | A kind of method of automatic reprinting related news information |
CN112148413A (en) * | 2020-09-29 | 2020-12-29 | 无线生活(杭州)信息科技有限公司 | Page optimization method and device |
CN114490315A (en) * | 2021-12-16 | 2022-05-13 | 北京志凌海纳科技有限公司 | Automatic testing method and device for Web application program |
Also Published As
Publication number | Publication date |
---|---|
CN106599075B (en) | 2019-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106599075A (en) | Statistical method and device for user behavior data | |
JP6397470B2 (en) | Content rendering control system and method | |
CN104391979B (en) | Network malice reptile recognition methods and device | |
CN102469435B (en) | Method for raising terminal model identification accuracy of mobile terminal and apparatus thereof | |
CN105516165B (en) | A kind of method illegally acted on behalf of, equipment and the system of identification charging fraud | |
CN103179132A (en) | Method and device for detecting and defending CC (challenge collapsar) | |
US9940391B2 (en) | System, method and computer readable medium for web crawling | |
CN108197125B (en) | Webpage crawling method and device | |
KR101130108B1 (en) | Method, system and computer readable recording medium for detecting web page traps based on perpectual calendar and building the search database using the same | |
CN102486799B (en) | World wide web (WWW) page processing method and device | |
CN105426415A (en) | Management method, device and system of website access request | |
CN105930727A (en) | Web-based crawler identification algorithm | |
CN103873583A (en) | Method and system for analyzing behaviors of internet users based on cloud platform | |
CN104750471A (en) | WEB page performance detection and analysis plug-in and method based on browser | |
CN104933069A (en) | Method and system for analyzing web browsing statistics of desktop terminal | |
CN103218410A (en) | Internet event analysis method and device | |
CN102880830A (en) | Acquisition method and device of original test data | |
CN109241733A (en) | Crawler Activity recognition method and device based on web access log | |
CN103401849A (en) | Abnormal session analyzing method for website logs | |
CN102254018A (en) | Method and system for generating navigation website based on Internet use behaviour analysis system | |
CN103425703A (en) | Method and device for processing network information | |
CN102984003A (en) | Network access detection system and network access detection method | |
CN111767443A (en) | Efficient web crawler analysis platform | |
CN102054042A (en) | Service method and site for exchanging knowledge information and question and answer exchange platform | |
CN104462242B (en) | Webpage capacity of returns statistical method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231115 Address after: Room 606-609, Compound Office Complex Building, No. 757, Dongfeng East Road, Yuexiu District, Guangzhou, Guangdong Province, 510699 Patentee after: China Southern Power Grid Internet Service Co.,Ltd. Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |