A page processing method and related device
By receiving page conversion rate statistics requests and calculating the conversion rate, it obtains historical error information and optimizes the page, which solves the problem of low efficiency when the page jump fails, and achieves efficient page optimization and user experience improvement.
Patent Information
- Application Number
- CN202010127327.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-02-27
AI Technical Summary
In the existing technology, when the user interacts with the application page, the developer needs to reconfigure the page when the page jump fails, resulting in long processing time and low efficiency.
By receiving the page conversion rate statistics request, the page's identification and session information are obtained, the page conversion rate is calculated, and historical error information is obtained according to the conversion rate threshold for page optimization. In particular, the verification function module adjusts the identification difficulty coefficient to improve the conversion rate.
It achieves efficient and convenient optimization of the page, reduces the developer's configuration time, and improves the page conversion rate and user experience.
Smart Images

Figure CN111428174B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a page processing method and related equipment. Background Art
[0002] With the rapid development of Internet technology, users can access a variety of applications through the Internet, enriching their daily lives. After the application is launched, users can access the application by interacting with the application page, which can be, for example, a login page, a session page, a reading page, etc.
[0003] At present, during the interaction between users and application pages, if the page jump fails due to problems with the page itself (for example, it is impossible to jump from page A to page B normally), developers are usually required to reconfigure or develop the page and optimize the page through version upgrades. It can be seen that such page optimization methods have the disadvantages of long processing time and low efficiency. Summary of the invention
[0004] The embodiments of the present application provide a page processing method and related equipment, which can efficiently and conveniently optimize the page.
[0005] In a first aspect, an embodiment of the present application provides a page processing method, the method comprising:
[0006] receiving a conversion rate statistics request for a first page, the conversion rate statistics request being used to request statistics of a page conversion rate from a second page to the first page, the conversion rate statistics request including an identifier of the first page and an identifier of the second page;
[0007] Acquire from a preset storage area a session identifier stored in association with the identifier of the first page, an output sequence x of the first page, and a first cumulative number of outputs of the first page, where x is an integer greater than 0;
[0008] According to the identifier of the second page, obtaining from the preset storage area a second accumulated number of outputs of the second page which is the same as the session identifier corresponding to the first page and has an output order of x-1;
[0009] Determining a page conversion rate from the second page to the first page based on the first accumulated number of times and the second accumulated number of times;
[0010] Determining a target function type to which the second page belongs according to the identifier of the second page;
[0011] Determine the target page conversion rate threshold corresponding to the target function type from the pre-established correspondence between each function type and each page conversion rate threshold;
[0012] Comparing the page conversion rate with the target page conversion rate threshold, and if the comparison shows that the page conversion rate is less than the target page conversion rate threshold, obtaining historical error information for the second page;
[0013] The second page is optimized based on historical error information for the second page.
[0014] In one embodiment, before obtaining the session identifier, the output sequence x of the first page and the first cumulative number of outputs of the first page that are stored in association with the identifier of the first page from the preset storage area, when a page output is detected during the running of the application, the pre-hooked target function can be called to record the identifier of the page, the session identifier, the output sequence of the page and the cumulative number of outputs of the page; and the identifier of the page, the session identifier, the output sequence of the page and the cumulative number of outputs of the page are stored in association with each other in the preset storage area.
[0015] In one embodiment, before calling the pre-hooked target function to record the page identifier, the application session identifier, the page output order and the cumulative number of page outputs, the target function injected into the application running process can also be run in the form of a hook service, and the target function is the function that needs to be called when the corresponding page of the application is output.
[0016] In one embodiment, the identification of the page includes the class name of the page class corresponding to the page. Before calling the pre-hooked target function to record the identification of the page, the page type of the page can be detected when page output is detected during the application running process; if the page type is detected to be a native page, the class name of the preset subclass is obtained from the pre-hooked target function, and the class name of the preset subclass is determined as the identification of the page.
[0017] In one embodiment, the identifier of the page includes the uniform resource locator URL of the page. Before calling the pre-hooked target function to record the identifier of the page, the page type of the page can be detected when page output is detected during the application running process; if the page type is detected to be an embedded H5 page, the URL of the page is obtained; and the URL of the page is determined as the identifier of the page.
[0018] In one embodiment, the identification of the page includes the routing address of the page. Before calling the pre-hooked target function to record the identification of the page, the page type of the page can be detected when page output is detected during the application running process; if the page type is detected to be a ReactNative page, the routing address of the page is obtained; and the routing address of the page is determined as the identification of the page.
[0019] In one embodiment, when a page output is detected during the running of the application, the specific implementation method of detecting the page type of the page is: when a page output is detected during the running of the application, detecting whether the output of the page calls a preset interface; if it is detected that the output of the page does not call the preset interface, determining that the page type of the page is a native page.
[0020] In one embodiment, the target function type to which the second page belongs is a verification type, and the second page includes a verification function module. The specific implementation method of optimizing the second page based on the historical error information of the second page is:
[0021] Controlling the verification function module in the second page based on historical error information statistics for the second page to perform verification and control error rate;
[0022] If it is detected that the control error rate is greater than or equal to a preset control error rate threshold, the recognition difficulty coefficient threshold configured for the second page is reduced.
[0023] In a second aspect, an embodiment of the present application provides a page processing device, the device comprising:
[0024] a receiving module, configured to receive a conversion rate statistics request for a first page, wherein the conversion rate statistics request is used to request statistics of a page conversion rate from a second page to the first page, and the conversion rate statistics request includes an identifier of the first page and an identifier of the second page;
[0025] an acquisition module, configured to acquire, from a preset storage area, a session identifier stored in association with the identifier of the first page, an output sequence x of the first page, and a first cumulative number of outputs of the first page, wherein x is an integer greater than 0;
[0026] a processing module, configured to obtain, from the preset storage area according to the identifier of the second page, a second accumulated number of outputs of the second page which is the same as the session identifier corresponding to the first page and has an output order of x-1;
[0027] The processing module is further used to determine a page conversion rate from the second page to the first page based on the first accumulated number of times and the second accumulated number of times;
[0028] The processing module is further used to determine the target function type to which the second page belongs according to the identifier of the second page, and determine the target page conversion rate threshold corresponding to the target function type from the pre-established correspondence between each function type and each page conversion rate threshold;
[0029] The processing module is also used to compare the page conversion rate with the target page conversion rate threshold. If the comparison shows that the page conversion rate is less than the target page conversion rate threshold, historical error information for the second page is obtained, and the second page is optimized based on the historical error information for the second page.
[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method of the first aspect above.
[0031] In the embodiment of the present application, the terminal device can determine the page conversion rate of converting from the second page to the first page. If the comparison shows that the page conversion rate is less than the target page conversion rate threshold preset for the second page, the historical error information for the second page is obtained, and the second page is optimized based on the historical error information for the second page. In this way, the optimization of the page can be realized efficiently and conveniently. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1 It is a flow chart of a page processing method provided in an embodiment of the present application;
[0034] Figure 2 is a schematic diagram of a second page provided in an embodiment of the present application;
[0035] Figure 3 It is a flowchart of another page processing method provided by an embodiment of the present application;
[0036] Figure 4 is a schematic block diagram of a page processing device provided in an embodiment of the present application;
[0037] Figure 5 It is a schematic block diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] See also Figure 1 , Figure 1 : is a flow chart of a page processing method provided in an embodiment of the present application. The method is applied to a terminal device. As shown in the figure, the page processing method may include:
[0040] S101: Receive a conversion rate statistics request for a first page, the conversion rate statistics request is used to request statistics of page conversion rates from a second page to the first page, the conversion rate statistics request includes an identifier of the first page and an identifier of the second page, wherein the first page and the second page can be any page of a plurality of pages corresponding to an application.
[0041] In one embodiment, when a user wants to count the page conversion rate from the second page to the first page, the page conversion rate statistics configuration page can be triggered to open through the terminal device. The page conversion rate statistics configuration page includes multiple configuration items. The user can configure the relevant information for counting the page conversion rate from the second page to the first page in the configuration items. When the configuration is completed, the user can input a touch operation on the "Statistics" function button, and the touch operation can be used to trigger the issuance of a conversion rate statistics request for the above-mentioned first page.
[0042] S102: Acquire from a preset storage area a session identifier stored in association with the identifier of the first page, an output sequence x of the first page, and a first cumulative number of outputs of the first page, where x is an integer greater than 0.
[0043] S103: Acquire, from a preset storage area according to the identifier of the second page, a second accumulated number of outputs of the second page which is the same as the session identifier corresponding to the first page and has an output order of x-1.
[0044] In one embodiment, during the application running process, the terminal device can record the identifier of each output page, the session identifier of the application, the output order of the page, and the cumulative number of page outputs, and store the identifier of each output page, the session identifier, the output order of the page, and the cumulative number of page outputs in a preset storage area in association. The identifier of the output page can refer to a page ID, and the session identifier can be a session ID during the current application session.
[0045] Exemplarily, the corresponding association relationship among the identifier of each output page, the session identifier, the output order of the pages, and the cumulative number of page outputs may be as shown in Table 1.
[0046] Table 1
[0047] name Page ID Session ID Output Order Cumulative number of times First page XXX1 M0002 2 2 Second page XXX2 M0002 1 2
[0048] Further, when the terminal device receives a conversion rate statistics request for the first page, it can obtain the first page identifier and the second page identifier carried in the conversion rate statistics request, and obtain the session identifier stored in association with the first page identifier, the output sequence x of the first page, and the first cumulative number of outputs of the first page from the preset storage area. Further, the terminal device can filter out the second cumulative number of outputs of the second page that is the same as the session identifier corresponding to the first page and has an output sequence x-1 from the preset storage area according to the second page identifier.
[0049] In one embodiment, during the entire running process of the application, the output order corresponding to the first page and the second page is unique. For example, as shown in Table 1, during the entire running process of the application, the output order of the first page is always 2, and the output order of the second page is always 1.
[0050] In one embodiment, during the entire operation of the application, the output order corresponding to the first page and the second page may be multiple. Exemplarily, as shown in Table 2, in this case, during the entire operation of the application, there are two output orders of the second page, 1 and 6, respectively. It can be understood that the second page can also jump from the page with the output order of 5.
[0051] Table 2
[0052] name Page ID Session ID Output Order Cumulative number of times First page XXX1 M0002 2 2 Second page XXX2 M0002 1 2 Second page XXX2 M0002 6 3
[0053] Exemplarily, assuming that the association relationship between the identifier of the first page, the session identifier, the output order of the first page, and the cumulative number of outputs of the first page, and the identifier of the second page, the session identifier, the output order of the second page, and the cumulative number of outputs of the second page pre-stored in the preset storage area are as shown in Table 2, the identifier of the first page included in the conversion rate statistics request is "XXX1", and the identifier of the second page is "XXX2". In this case, the terminal device can obtain the session identifier "M0002" stored in association with the identifier of the first page, the output order of the first page is 2 (i.e., x=2), and the cumulative number of outputs of the first page is 2 (i.e., the first cumulative number is 2) from the preset storage area.
[0054] Furthermore, according to the identifier "XXX2" of the second page, the cumulative number of second page outputs 2 (ie, the second cumulative number is 2) which is the same as the session identifier "M0002" corresponding to the first page and has an output order of 2-1 (ie, x-1) is obtained from the preset storage area.
[0055] S104: Determine a page conversion rate from the second page to the first page based on the first accumulated number of times and the second accumulated number of times.
[0056] In one embodiment, the second accumulated number of times may be divided by the first accumulated number of times, and the result of the division may be determined as the page conversion rate from the second page to the first page.
[0057] S105: determining the target function type to which the second page belongs according to the identifier of the second page, and determining the target page conversion rate threshold corresponding to the target function type from the pre-established correspondence between each function type and each page conversion rate threshold.
[0058] S106: Compare the page conversion rate with the target page conversion rate threshold. If the page conversion rate obtained by comparison is less than the target page conversion rate threshold, obtain historical error information for the second page.
[0059] Among them, for different applications, pages of different functional types may be included, and the functional types may include login type, verification type, password input type, session type, etc. In one embodiment, for pages of different functional types, the page conversion rate thresholds set are also different. For example, for page A for inputting SMS verification code, since the probability of the user inputting an incorrect SMS verification code is low, the page conversion rate threshold set for page A can be relatively high, such as 99.99%; for page B for inputting graphic verification code, since the probability of the user inputting an incorrect graphic verification code is higher than the probability of inputting an incorrect SMS verification code, the page conversion rate threshold set for page B can be relatively low, such as 95%. In this case, the pre-established correspondence between each functional type and each page conversion rate threshold can be as shown in Table 3.
[0060] Table 3
[0061] Function Type Page conversion rate threshold SMS verification code type 99.99% Graphic verification code 95%
[0062] The historical error information includes the error information returned by the server each time the jump from the second page to the first page fails. In one embodiment, when the second page fails to jump to the first page, the terminal device can store the error information returned by the server for the second page failure in a preset storage area.
[0063] Furthermore, when the terminal device compares and obtains that the page conversion rate is less than the target page conversion rate threshold, the historical error information for the second page can be obtained from the preset storage area.
[0064] S107: Optimize the second page based on the historical error information for the second page.
[0065] In one embodiment, the target function type to which the second page belongs is a verification type, and the second page includes a verification function module. The specific implementation method of optimizing the second page by the terminal device based on the historical error information for the second page is: based on the historical error information statistics for the second page, the verification function module in the second page is controlled to perform the control error rate of the verification, and if the control error rate is detected to be greater than or equal to the preset control error rate threshold, the recognition difficulty coefficient threshold configured for the second page is reduced. The preset control error rate threshold is pre-set based on experimental data, for example, it can be 15%.
[0066] For example, the second page is as follows Figure 2 As shown, it includes a slider 20 (i.e., a verification function module) and a display area 21. The user can drag the slider 20 to the position corresponding to the display area 21 so that the slider 20 overlaps with the display area 21 to complete the verification. When the terminal device detects that the verification is completed, it can jump from the second page to the first page. Among them, it can be understood that the slider 20 and the display area 21 cannot completely overlap, and the terminal device allows a certain error for the overlap between the slider 20 and the display area 21. The above-mentioned recognition difficulty coefficient threshold configured for the second page is used to characterize this error. The smaller the recognition difficulty coefficient threshold, the larger the allowed error, and the larger the recognition difficulty coefficient threshold, the smaller the allowed error.
[0067] In one embodiment, assuming that the historical error information indicates that the cumulative number of verification failures of the second page is 2 times, and the second cumulative number of second page outputs obtained above is 10 times, in this case, it can be determined based on the historical error information and the second cumulative number that the control error rate of the verification function module in the second page for verification is 20%. If it is greater than 15%, the recognition difficulty coefficient threshold configured for the second page can be adjusted down, thereby reducing the difficulty coefficient of the verification function module in the second page for verification, improving the success rate of users passing the verification, solving the problem of low conversion rate of terminal devices jumping from the second page to the first page, and optimizing the second page.
[0068] In the embodiment of the present application, the terminal device can determine the page conversion rate of converting from the second page to the first page. If the comparison shows that the page conversion rate is less than the target page conversion rate threshold preset for the second page, the historical error information for the second page is obtained, and the second page is optimized based on the historical error information for the second page. In this way, the optimization of the page can be realized efficiently and conveniently.
[0069] See also Figure 3 , Figure 3 : is a flow chart of another page processing method provided in an embodiment of the present application. The method is applied to a terminal device. As shown in the figure, the page processing method may include:
[0070] S301: When a page output is detected during the application running process, the pre-hooked target function is called to record the page identifier, session identifier, page output sequence and the cumulative number of page outputs.
[0071] Among them, Hook (hook technology): is a system mechanism provided in Windows to replace the "interrupt" under DOS, translated into Chinese as "hook" or "hook". After hooking a specific system event, once the hooked event occurs, the program that hooks the event will receive a notification from the system, and the program can respond to the event in the first time. In the application embodiment, the main purpose is to hook the output of the page.
[0072] Statistics on the page conversion rate of an application are of great significance for the optimization of the application process. At present, the method for determining the page conversion rate is usually to add a function to each page of the application to implement the page conversion rate statistics of the corresponding page. When there are a large number of pages in the application, each page corresponds to a function, which is very cumbersome to implement, and the code is highly invasive, resulting in poor readability of the code. In addition, since each page corresponds to a different function, each module of the application needs to be maintained by a different person, and the maintenance personnel need to be familiar with the tracking points, otherwise new problems are prone to occur and the operability is poor.
[0073] In response to the above problems, the embodiment of the present application can run the target function injected into the application running process in the form of a hook service (i.e., hook the target function) before calling the pre-hooked target function to record the page identifier, the application session identifier, the page output order, and the cumulative number of page outputs. The target function is the function that needs to be called when the application outputs the corresponding page. Furthermore, after the target function is hooked, once any page output is detected, the hooked target function will automatically record the current output page identifier, session identifier, page output order, and the cumulative number of page outputs. Every time the same page appears once, the cumulative number of page outputs is automatically increased by 1. In this way, there is no need to add functions to each page, there is no code intrusion, and the code readability is improved.
[0074] S302: The page identifier, the session identifier, the output sequence of the pages and the cumulative number of page outputs are stored in a preset storage area in association with each other.
[0075] In one embodiment, in addition to storing the page identifier, session identifier, page output order and cumulative number of page outputs in a preset storage area, the terminal device can also store the current system time in association with the above information to facilitate subsequent user statistics on the page conversion rate from the second page to the first page within a preset time range.
[0076] S303: Receive a conversion rate statistics request for the first page, where the conversion rate statistics request is used to request statistics of page conversion rates from the second page to the first page, and the conversion rate statistics request includes an identifier of the first page and an identifier of the second page.
[0077] S304: Acquire from a preset storage area a session identifier stored in association with the identifier of the first page, an output sequence x of the first page, and a first cumulative number of outputs of the first page, where x is an integer greater than 0.
[0078] S305: Acquire, from a preset storage area according to the identifier of the second page, a second accumulated number of outputs of the second page which is the same as the session identifier corresponding to the first page and has an output order of x-1.
[0079] S306: Determine a page conversion rate from the second page to the first page based on the first accumulated number of times and the second accumulated number of times.
[0080] S307: Determine the target function type to which the second page belongs according to the identifier of the second page, and determine the target page conversion rate threshold corresponding to the target function type from the pre-established correspondence between each function type and each page conversion rate threshold.
[0081] S308: Compare the page conversion rate with the target page conversion rate threshold. If the page conversion rate obtained by comparison is less than the target page conversion rate threshold, obtain historical error information for the second page.
[0082] S309: Optimize the second page based on the historical error information for the second page.
[0083] The specific implementation of steps S303 to S309 can refer to the relevant description of steps S101 to S107 in the above embodiment, which will not be repeated here.
[0084] In one embodiment, the identification of the above-mentioned page includes the class name of the page class corresponding to the page. Before the terminal device calls the pre-hooked target function to record the identification of the page, when a page output is detected during the application running process, the page type of the page can be detected. If the page type is detected to be a native page, the class name of the preset subclass is obtained from the pre-hooked target function, and the class name of the preset subclass is determined as the identification of the page.
[0085] For example, assuming that the target function is a function and the preset subclass is UIViewController, when the terminal device detects a page output, the type of the page can be detected. If the type of the page is detected to be a native page, the class name of the UIViewController subclass can be obtained from the hooked function function, and the class name can be used as the identifier of the page (such as the page ID).
[0086] In one embodiment, if a preset subclass is used for multiple pages, in addition to obtaining the class name of the preset subclass, a feature identifier for distinguishing the current page can be further obtained. For example, for pages of the same insurance category, auto insurance is 1 and personal finance is 2. If the class name is List, the unique identifier corresponding to the auto insurance page is List_1, and the unique identifier corresponding to the auto insurance page is List_2.
[0087] In one embodiment, the identification of the above-mentioned page includes the uniform resource locator URL of the page. Before the terminal device calls the pre-hooked target function to record the identification of the page, it can also detect the page type of the page when a page output is detected during the application running process. If the page type is detected to be an embedded H5 page, the URL of the page is obtained and the URL of the page is determined as the identification of the page.
[0088] In one embodiment, the identification of the above-mentioned page includes the routing address of the page. Before the terminal device calls the pre-hooked target function to record the identification of the page, it can also detect the page type of the page when a page output is detected during the application running process. If the page type is detected to be a ReactNative page, the routing address of the page is obtained, and the routing address of the page is determined as the identification of the page.
[0089] In one embodiment, when a terminal device detects that a page is output during the running of an application, a specific implementation method of detecting the page type is to detect whether the output of the page calls a preset interface when the output of the page is detected during the running of the application, and if it is detected that the output of the page does not call the preset interface, then determine that the page type of the page is a native page. The preset interface is pre-set by the developer based on experimental measurement data.
[0090] In one embodiment, the above-mentioned page type detection method can be specifically: predefine an interface, define a function type in the interface, and the type function can return the page type (for example, H5 page, ReactNative page, etc.). In this case, if the client detects that the current page implements this interface, it calls the type function to obtain the type of the current page; if it does not detect that the current page implements the interface, it determines that the type of the current page is a native class.
[0091] In an embodiment of the present application, when a page output is detected during the operation of the application, the pre-hooked target function is called to record the page identifier, session identifier, page output order, and the cumulative number of page outputs, and the page identifier, session identifier, page output order, and the cumulative number of page outputs are associated and stored in a preset storage area. Further, the terminal device can determine the page conversion rate from the second page to the first page. If the comparison shows that the page conversion rate is less than the target page conversion rate threshold preset for the second page, the historical error information for the second page is obtained, and the second page is optimized based on the historical error information for the second page. In this way, on the one hand, there is no need to add functions for each page, there is no code intrusion, and the code readability is improved. On the other hand, there is no need for maintenance personnel to be familiar with the embedding points, and the page conversion rate between the first page and the second page can be counted at any time, which is more efficient and convenient.
[0092] The present application also provides a page processing device. The device includes a device for executing the above Figure 1 or Figure 3 Specifically, see Figure 4 , is a schematic block diagram of a page processing device provided in an embodiment of the present application. The page processing device of this embodiment includes:
[0093] A receiving module 30 is used to receive a conversion rate statistics request for a first page, wherein the conversion rate statistics request is used to request statistics of a page conversion rate from a second page to the first page, and the conversion rate statistics request includes an identifier of the first page and an identifier of the second page;
[0094] An acquisition module 31 is used to acquire, from a preset storage area, a session identifier stored in association with the identifier of the first page, an output sequence x of the first page, and a first cumulative number of outputs of the first page, where x is an integer greater than 0;
[0095] A processing module 32 is used to obtain, from the preset storage area according to the identifier of the second page, a second accumulated number of outputs of the second page which is the same as the session identifier corresponding to the first page and has an output order of x-1;
[0096] The processing module 32 is further configured to determine a page conversion rate from the second page to the first page based on the first accumulated number of times and the second accumulated number of times;
[0097] The processing module 32 is further configured to determine the target function type to which the second page belongs according to the identifier of the second page, and determine the target page conversion rate threshold corresponding to the target function type from the pre-established correspondence between each function type and each page conversion rate threshold;
[0098] The processing module 32 is further used to compare the page conversion rate with the target page conversion rate threshold. If the comparison shows that the page conversion rate is less than the target page conversion rate threshold, historical error information for the second page is obtained, and the second page is optimized based on the historical error information for the second page.
[0099] In one embodiment, the processing module 32 is also used to call the pre-hooked target function to record the page identifier, session identifier, page output sequence and the cumulative number of page outputs when a page output is detected during the application running process; and store the page identifier, session identifier, page output sequence and the cumulative number of page outputs in association with each other in a preset storage area.
[0100] In one embodiment, the processing module 32 is further used to run the target function injected into the application running process in the form of a hook service, and the target function is a function to be called when the corresponding page of the application is output.
[0101] In one embodiment, the identification of the page includes the class name of the page class corresponding to the page. The processing module 32 is also used to detect the page type of the page when a page output is detected during the application running process; if the page type is detected to be a native page, the class name of the preset subclass is obtained from the pre-hooked target function, and the class name of the preset subclass is determined as the identification of the page.
[0102] In one embodiment, the identifier of the page includes the uniform resource locator URL of the page. The processing module 32 is also used to detect the page type of the page when a page output is detected during the application running process; if the page type is detected to be an embedded H5 page, the URL of the page is obtained; and the URL of the page is determined as the identifier of the page.
[0103] In one embodiment, the identification of the page includes the routing address of the page. The processing module 32 is further used to detect the page type of the page when a page output is detected during the running of the application; if the page type is detected to be a ReactNative page, the routing address of the page is obtained; and the routing address of the page is determined as the identification of the page.
[0104] In one embodiment, the processing module 32 is specifically used to detect whether the output of the page calls a preset interface when a page output is detected during the application running process; if it is detected that the output of the page does not call the preset interface, determine that the page type of the page is a native page.
[0105] In one embodiment, the target function type to which the second page belongs is a verification type, and the second page includes a verification function module. The processing module 32 is further specifically used to control the verification function module in the second page based on historical error information statistics for the second page to perform a control error rate for verification; if it is detected that the control error rate is greater than or equal to a preset control error rate threshold, the recognition difficulty coefficient threshold configured for the second page is reduced.
[0106] It should be noted that the functions of the functional modules of the page processing device described in the embodiment of the present application can be based on Figure 1 or Figure 3 The specific implementation process of the method in the method embodiment can be referred to Figure 1 or Figure 3 The relevant description of the method embodiment will not be repeated here.
[0107] See also Figure 5 , Figure 5 is a schematic block diagram of a terminal device provided in an embodiment of the present application, such as Figure 5As shown, the terminal device includes a processor 401, a memory 402, an input device 403, and an output device 404. The processor 401, the memory 402, the input device 403, and the output device 404 can be connected via a bus or other means. Figure 5 In the example, the connection through a bus is taken. The memory 402 is used to store a computer program, and the computer program includes program instructions. The processor 401 is used to execute the program instructions stored in the memory 402. The processor 401 is configured to call the program instructions to execute: receiving a conversion rate statistics request for a first page through an input device 403, the conversion rate statistics request is used to request statistics on page conversion rates from a second page to the first page, and the conversion rate statistics request includes an identifier of the first page and an identifier of the second page; obtaining a session identifier stored in association with the identifier of the first page, an output sequence x of the first page, and a first cumulative number of outputs of the first page from a preset storage area, wherein x is an integer greater than 0; obtaining, according to the identifier of the second page, from the preset storage area a session identifier that is the same as the session identifier corresponding to the first page, and the output sequence is x- 1; based on the first cumulative number of times and the second cumulative number of times, determining the page conversion rate of converting from the second page to the first page; determining the target function type to which the second page belongs according to the identifier of the second page; determining the target page conversion rate threshold corresponding to the target function type from the pre-established correspondence between each function type and each page conversion rate threshold; comparing the page conversion rate with the target page conversion rate threshold, if the comparison shows that the page conversion rate is less than the target page conversion rate threshold, obtaining historical error information for the second page; optimizing the second page based on the historical error information for the second page.
[0108] In one embodiment, the processor 401 is also used to call the pre-hooked target function to record the page identifier, session identifier, the page output sequence and the cumulative number of page outputs when a page output is detected during the application running process; and store the page identifier, the session identifier, the page output sequence and the cumulative number of page outputs in an associated manner in a preset storage area.
[0109] In one embodiment, the processor 401 is further used to run the target function injected into the application running process in the form of a hook service, and the target function is a function that needs to be called when the corresponding page of the application is output.
[0110] In one embodiment, the identification of the page includes the class name of the page class corresponding to the page. The processor 401 is also used to detect the page type of the page when a page output is detected during the running of the application; if the page type is detected to be a native page, the class name of the preset subclass is obtained from the pre-hooked target function, and the class name of the preset subclass is determined as the identification of the page.
[0111] In one embodiment, the identifier of the page includes the uniform resource locator URL of the page, and the processor 401 is further used to detect the page type of the page when a page output is detected during the application running process; if the page type is detected to be an embedded H5 page, the URL of the page is obtained; and the URL of the page is determined as the identifier of the page.
[0112] In one embodiment, the identification of the page includes the routing address of the page. The processor 401 is further used to detect the page type of the page when a page output is detected during the running of the application; if the page type is detected to be a ReactNative page, the routing address of the page is obtained; and the routing address of the page is determined as the identification of the page.
[0113] In one embodiment, the processor 401 is specifically used to detect whether the output of the page calls a preset interface when a page output is detected during the running of the application; if it is detected that the output of the page does not call the preset interface, determine that the page type of the page is a native page.
[0114] In one embodiment, the target function type to which the second page belongs is a verification type, and the second page includes a verification function module. The processor 401 is further specifically used to control the verification function module in the second page based on historical error information statistics for the second page to perform a control error rate for verification; if it is detected that the control error rate is greater than or equal to a preset control error rate threshold, the recognition difficulty coefficient threshold configured for the second page is reduced.
[0115] It should be understood that in the embodiment of the present application, the processor 401 may be a central processing unit (CPU), and the processor 401 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0116] The memory 402 may include a read-only memory and a random access memory, and provide instructions and data to the processor 401. A portion of the memory 402 may also include a non-volatile random access memory. For example, the memory 402 may also store page identifiers, session identifiers, page output order, and the cumulative number of page outputs.
[0117] The input device 403 may include a touch panel, a fingerprint sensor, a microphone, etc., and the output device 404 may include a display (LCD, etc.), a speaker, etc.
[0118] In a specific implementation, the processor 401, memory 402, input device 403 and output device 404 described in the embodiment of the present application can execute the embodiment of the present application. Figure 1 or Figure 3 The implementation method described in the method embodiment can also execute the implementation method of the order splitting device based on data processing described in the embodiment of the present application, which will not be repeated here.
[0119] In another embodiment of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the following are implemented: receiving a conversion rate statistics request for a first page, wherein the conversion rate statistics request is used to request statistics of a page conversion rate from a second page to the first page, wherein the conversion rate statistics request includes an identifier of the first page and an identifier of the second page; obtaining from a preset storage area a session identifier stored in association with the identifier of the first page, an output sequence x of the first page, and a first cumulative number of outputs of the first page, wherein x is an integer greater than 0; obtaining from the preset storage area a session identifier associated with the identifier of the second page according to the identifier of the second page; a second cumulative number of outputs of a second page having the same session identifier as a page and an output order of x-1; determining a page conversion rate from the second page to the first page based on the first cumulative number and the second cumulative number; determining a target function type to which the second page belongs according to the identifier of the second page; determining a target page conversion rate threshold corresponding to the target function type from a pre-established correspondence between each function type and each page conversion rate threshold; comparing the page conversion rate with the target page conversion rate threshold, and if the comparison shows that the page conversion rate is less than the target page conversion rate threshold, obtaining historical error information for the second page; and optimizing the second page based on the historical error information for the second page.
[0120] The computer-readable storage medium may be an internal storage unit of the terminal device described in any of the foregoing embodiments, such as a hard disk or memory of the terminal device. The computer-readable storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the computer-readable storage medium may also include both an internal storage unit of the terminal device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0121] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0122] The above disclosure is only part of the embodiments of the present application, which certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and making equivalent changes according to the claims of this application are still within the scope of the invention.
Claims
1. A page processing method, characterized in that: The method comprises: receiving a conversion rate statistics request for a first page, the conversion rate statistics request being used to request statistics of a page conversion rate from a second page to the first page, the conversion rate statistics request including an identifier of the first page and an identifier of the second page; Acquire from a preset storage area a session identifier stored in association with the identifier of the first page, an output sequence x of the first page, and a first cumulative number of outputs of the first page, where x is an integer greater than 0; According to the identifier of the second page, obtaining from the preset storage area a second accumulated number of outputs of the second page which is the same as the session identifier corresponding to the first page and has an output order of x-1; Determining a page conversion rate from the second page to the first page based on the first accumulated number of times and the second accumulated number of times; Determining a target function type to which the second page belongs according to the identifier of the second page; Determine the target page conversion rate threshold corresponding to the target function type from the pre-established correspondence between each function type and each page conversion rate threshold; Comparing the page conversion rate with the target page conversion rate threshold, and if the comparison shows that the page conversion rate is less than the target page conversion rate threshold, obtaining historical error information for the second page; The second page is optimized based on historical error information for the second page.
2. The method according to claim 1, characterized in that Before acquiring the session identifier, the output sequence x of the first page, and the first accumulated number of outputs of the first page stored in association with the identifier of the first page from the preset storage area, the method further includes: When a page output is detected during the application running process, the pre-hooked target function is called to record the page identifier, session identifier, the page output sequence and the cumulative number of page outputs; The page identifier, the session identifier, the output sequence of the pages and the accumulated number of page outputs are associated and stored in a preset storage area.
3. The method according to claim 2, characterized in that The page identifier includes the class name of the page class corresponding to the page. Before calling the pre-hooked target function to record the page identifier, the method further includes: When a page output is detected during the application running process, the page type of the page is detected; If it is detected that the page type is a native page, the class name of the preset subclass is obtained from the pre-hooked target function, and the class name of the preset subclass is determined as the identifier of the page.
4. The method according to claim 2, characterized in that: The page identifier includes a uniform resource locator URL of the page. Before calling the pre-hooked target function to record the page identifier, the method further includes: When a page output is detected during the application running process, the page type of the page is detected; If it is detected that the page type is an embedded H5 page, the URL of the page is obtained; The URL of the page is determined as the identifier of the page.
5. The method according to claim 2, characterized in that: The page identifier includes a routing address of the page. Before calling the pre-hooked target function to record the page identifier, the method further includes: When a page output is detected during the application running process, the page type of the page is detected; If it is detected that the page type is a ReactNative page, the routing address of the page is obtained; The routing address of the page is determined as the identifier of the page.
6. The method according to claim 3, characterized in that When a page output is detected during the application running process, detecting the page type of the page includes: When a page output is detected during the application running process, detecting whether the output of the page calls a preset interface; If it is detected that the output of the page does not call the preset interface, it is determined that the page type of the page is a native page.
7. The method according to claim 1, characterized in that The target function type to which the second page belongs is a verification type. The second page includes a verification function module. The second page is optimized based on historical error information for the second page, including: Controlling the verification function module in the second page based on historical error information statistics for the second page to perform verification and control error rate; If it is detected that the control error rate is greater than or equal to a preset control error rate threshold, the recognition difficulty coefficient threshold configured for the second page is reduced.
8. A page processing device, characterized in that: The device comprises: a receiving module, configured to receive a conversion rate statistics request for a first page, wherein the conversion rate statistics request is used to request statistics of a page conversion rate from a second page to the first page, and the conversion rate statistics request includes an identifier of the first page and an identifier of the second page; an acquisition module, configured to acquire, from a preset storage area, a session identifier stored in association with the identifier of the first page, an output sequence x of the first page, and a first cumulative number of outputs of the first page, wherein x is an integer greater than 0; a processing module, configured to obtain, from the preset storage area according to the identifier of the second page, a second accumulated number of outputs of the second page which is the same as the session identifier corresponding to the first page and has an output order of x-1; The processing module is further used to determine a page conversion rate from the second page to the first page based on the first accumulated number of times and the second accumulated number of times; The processing module is further used to determine the target function type to which the second page belongs according to the identifier of the second page, and determine the target page conversion rate threshold corresponding to the target function type from the pre-established correspondence between each function type and each page conversion rate threshold; The processing module is also used to compare the page conversion rate with the target page conversion rate threshold. If the comparison shows that the page conversion rate is less than the target page conversion rate threshold, historical error information for the second page is obtained, and the second page is optimized based on the historical error information for the second page.
9. A terminal device, characterized in that: The method comprises a processor and a memory, wherein the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 7.
