Statistical method and device for web hits
A statistical method and click volume technology, applied in the network field, can solve the problems of inaccurate click volume statistics and high cost, and achieve the effects of improving accuracy, saving costs, and improving statistical speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] This embodiment will be described from the perspective of an apparatus for counting hits on webpages. The apparatus for counting hits on webpages may specifically be integrated in a terminal or other equipment that needs to count hits on webpages.
[0048] Wherein, the device for counting web page hits can be integrated in the terminal in various manners, for example, it can be installed in the terminal in the form of a terminal application.
[0049] A method for counting web page clicks, comprising: detecting whether a click event occurs on a web page link currently displayed by a browser, and if so, calling the statistical function of the browser to perform statistics on the clicks of the web page link, so as to obtain the number of clicks on the web page link Traffic statistics information, call the browser to send the traffic statistics information to the server.
[0050] Such as figure 1 As shown, the flow chart of the statistical method of the page hits is as fol...
Embodiment 2
[0068] This embodiment will be further described on the basis of the method in Embodiment 1.
[0069] Such as figure 2 As shown, the schematic diagram of the flow chart of the statistical method of the web page hits is as follows:
[0070] In step S201, the browser is initialized, and a script is injected into the browser to form a statistical interface for calling statistical functions.
[0071] In the embodiment of the present invention, when the browser is initialized, a script, such as a JS script, is injected into the browser through the inherent interface of the browser, and the script is used to form a statistical interface for calling statistical functions.
[0072] Step S202, detecting whether a click event occurs on the web page link currently displayed by the browser, if yes, execute step S203, if not, return to execute step 202 to continue detection.
[0073] Specifically, when a user clicks on a webpage link, a click event will be generated, which is pre-define...
Embodiment 3
[0085] According to the methods described in Embodiments 1 and 2, examples will be given below for further detailed description.
[0086] In this embodiment, it will be described in detail by taking the device for counting web page hits integrated in a smart phone as an example.
[0087] Such as image 3 As shown, a method for counting clicks after a web page receives a click event, the specific process can be as follows:
[0088] Step S301, when initializing the WebView of the browser, inject JavaScript for calling the browser statistics function into the WebView.
[0089] In this embodiment, with the help of the feature that AndroidWebView can inject JavaScript, when the client initializes WebView, it calls the inherent interface of WebView and injects statistical JavaScript, wherein the JavaScript object contains statistical methods, that is, JavaScript objects and statistical methods correspond.
[0090]For example, inject JS functions into JS in the form of strings. If...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com