Method, apparatus, electronic device and storage medium for determining source data

By determining the page attribute information when the buried point is detected and obtaining the target source data from the cache, the problem of large code workload and low statistical efficiency in the existing technology is solved, and fast and low-cost page source statistics are achieved.

CN114238814BActive Publication Date: 2025-07-11GUAHAO (HANGZHOU) TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111543672.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2025-07-11
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

In the prior art, statistical code is written at all buried points in the page where the page needs to be counted, resulting in large code workload and low statistical efficiency of page sources.

Method used

When the triggered control detects that there is a buried point corresponding to the buried point, it determines the first page attribute information of the page to be determined. If the preset page attribute information to be recorded includes this information, the corresponding target source data is obtained from the target cache, and it is stored corresponding to the buried point, and generates the buried point data to be uploaded to determine the target original page information.

Benefits of technology

Reduces code workload, improves page source statistics efficiency, and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114238814B_ABST
    Figure CN114238814B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses a method, device, electronic device and storage medium for determining source data. The method includes: when it is detected that there is a buried point corresponding to a triggered control, determining first page attribute information of a to-be-determined page to which the buried point belongs; if the to-be-recorded page attribute information set in advance includes the first page attribute information, obtaining target source data corresponding to the to-be-determined page from a target cache; storing the target source data and the buried point in correspondence to obtain to-be-uploaded buried point data, so as to determine target original page information based on the to-be-uploaded buried point data. The problem that the code workload of the page source statistics method in the prior art is large and the statistical efficiency is low is solved, the efficiency of page source statistics is improved, the code workload is reduced at the same time, and the technical effect of reducing costs is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to computer processing technologies, and in particular, to a method, apparatus, electronic device, and storage medium for determining source data. Background Art

[0002] With the rapid development of mobile application software, mobile client data statistics have become increasingly important. Usually, enterprises will consider the security of their mobile application software statistics data and implement their own page source statistics for application software to meet relevant product business requirements.

[0003] The existing page source statistics methods usually write statistics codes at all the buried points in the page that need to count the page source. This method has problems such as large code workload and low page source statistics efficiency. Summary of the Invention

[0004] The embodiments of the present invention provide a method, apparatus, electronic device, and storage medium for determining source data to achieve the technical effect of improving the efficiency of page source statistics, reducing the code workload, and thus reducing the development cost.

[0005] In a first aspect, the embodiments of the present invention provide a method for determining source data, the method including:

[0006] When it is detected that a triggered control has a buried point, determining first page attribute information of a to-be-determined page to which the buried point belongs;

[0007] If the pre-set to-be-recorded page attribute information includes the first page attribute information, obtaining target source data corresponding to the to-be-determined page from a target cache; wherein, the target source data matches target original page information corresponding to a jump to the to-be-determined page;

[0008] Storing the target source data corresponding to the buried point to obtain to-be-uploaded buried point data, and determining the target original page information based on the to-be-uploaded buried point data.

[0009] In a second aspect, the embodiments of the present invention further provide a device for determining source data, the device including:

[0010] A first page attribute information determination module, configured to determine first page attribute information of a to-be-determined page to which a buried point belongs when it is detected that a triggered control has the buried point;

[0011] A target source data acquisition module, configured to obtain target source data corresponding to the to-be-determined page from a target cache when the pre-set page attribute information to be recorded includes the first page attribute information; wherein, the target source data matches the target original page information corresponding to the jump to the to-be-determined page.

[0012] A target original page information determination module, configured to store the target source data corresponding to the buried point, obtain the to-be-uploaded buried point data, and determine the target original page information based on the to-be-uploaded buried point data.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, including:

[0014] One or more processors;

[0015] A storage device, configured to store one or more programs,

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining source data according to any one of the embodiments of the present invention.

[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for determining source data according to any one of the embodiments of the present invention is implemented.

[0018] The technical solution of the embodiment of the present invention, when detecting that the triggered control has a buried point, determines the first page attribute information of the to-be-determined page to which the buried point belongs. When the pre-set page attribute information to be recorded includes the first page attribute information, obtains the target source data corresponding to the to-be-determined page from the target cache, stores the target source data corresponding to the buried point, obtains the to-be-uploaded buried point data, and determines the target original page information based on the to-be-uploaded buried point data, solves the problem in the prior art that it is necessary to write statistical codes at all the buried points in the page that need to count the page source, resulting in a large amount of code work and low page source counting efficiency. By pre-setting the page attribute information to be recorded that needs to count the page source, when obtaining the first page attribute information of the to-be-determined page to which the buried point belongs, it can be quickly determined whether page source statistics are required, without writing statistical codes at each buried point, greatly reducing the amount of code work and improving the counting efficiency. At the same time, the target source data of the original page is pre-stored in the target cache in advance, so that when page source statistics are required, the source data can be timely retrieved from the target cache, without the need for hierarchical parameter passing operations, further improving the efficiency of page source statistics and achieving the technical effect of reducing costs. Description of the Drawings

[0019] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following provides a brief introduction to the drawings required for describing the embodiments. Obviously, the introduced drawings are only the drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0020] Figure 1 Flowchart of a method for determining source data provided in Embodiment 1 of the present invention;

[0021] Figure 2 Schematic flowchart of a method for determining source data provided in Embodiment 2 of the present invention;

[0022] Figure 3 Schematic flowchart of a method for determining source data provided in Embodiment 2 of the present invention;

[0023] Figure 4 Block diagram of the structure of a device for determining source data provided in Embodiment 3 of the present invention;

[0024] Figure 5 Schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed implementation manners

[0025] The following further elaborates on the present invention in conjunction with the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. Additionally, it should be noted that for the sake of convenience of description, only the parts related to the present invention rather than all the structures are shown in the drawings.

[0026] Figure 1 Flowchart of a method for determining source data provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of determining the page source. This method can be executed by the device for determining source data in the embodiments of the present invention. The device can be implemented in software and / or hardware. Optionally, it is implemented through an electronic device, which can be a mobile terminal, a PC terminal, a server, etc. The device can be configured in a computing device. The method for determining source data provided in this embodiment specifically includes the following steps:

[0027] S110. When it is detected that the triggered control has a data point, determine the first page attribute information of the page to be determined to which the data point belongs.

[0028] It should be noted that this technical solution can be applied to the situation of determining the page source in the field of business statistics, and can also be applied to any situation where the page source needs to be determined. It should also be noted that a corresponding system for determining the page source can be developed based on this technical solution, and then corresponding tasks can be processed based on this system, so as to determine the page source. Exemplarily, in the field of order business statistics, when a user places an order, it is necessary to count the original page source corresponding to the generated order. For example, the original page can be a doctor search page, which can indicate that the user came to place the order from the doctor search page and generated this order, so that the page source can be determined based on this technical solution.

[0029] Among them, the control can be an interface element in the web interface, such as interface elements like windows, text boxes, buttons, drop-down menus, etc. in the interface. The first page attribute information can be understood as the page configuration data corresponding to the page. Optionally, the first page attribute information can be information such as page title, page name, background image, background color, text, and margin.

[0030] It should be noted that in the actual business scenario, a series of related business operations can be performed on the web platform. It can be that when the user clicks on a certain control in the platform using the input device, it is considered that the control in the page is triggered; it can also be that the control is exposed for a preset duration, and it is considered that the control in the page is triggered. Thus, when the server detects that there is a buried point corresponding to the triggered control, the buried point can be a click buried point, an exposure buried point, a slide buried point, etc., and it can be considered that a buried point of the triggered control is detected. When the server detects that there is a buried point corresponding to the triggered control, the page attribute information of the page to which the buried point belongs can be obtained through the interface as the first page attribute information. Optionally, the page to which the buried point belongs can be the page of the control triggered by the user, and this page can be used as the page to be determined.

[0031] Specifically, when the server detects that there is a buried point in the triggered page control, the page attribute data corresponding to the triggered page can be obtained through the interface as the first page attribute information.

[0032] It should be noted that, to meet business requirements, the original page can be determined according to the actual business needs. For example, in an actual medical scenario, business pages such as recommended experts, instant consultation, multiple questions about one disease, and search can be set as the original page, so that subsequent optimization of the business can be based on the access situation of the original page. It should also be noted that, to improve the efficiency of determining the source data of the page, the identification data of the original page can be determined in advance. For example, assume that the user triggers a certain control on page A and enters page B, and then enters page C from page B. At this time, it can be considered that the page sources of page B and page C are page A, that is, page A is the original page. For example, the identification of page A can be A1. The identification of page A can also be stored in a preset location, so that when it is detected that the user triggers a buried point on page B, the identification of page A can be directly retrieved from the preset location, and thus the page source of page B is determined.

[0033] Optionally, when it is detected that the page to be displayed is the original page, determine the source data of the original page and store the source data in the target cache to obtain the target source data.

[0034] Among them, the target source data includes the page identification of the original page. The page identification refers to the identification information used to represent the uniqueness of the page. Correspondingly, each page can correspond to a unique page identification. For example, the page identification of page A is A1, and the page identification of page B is B2. The target cache can be a preset cache library, which can be a local disk or a sandbox. It can be determined by technical personnel according to actual work, and this technical solution does not make any limitations in this regard.

[0035] It should be noted that, according to the actual business needs, it can be determined which pages in the system are the original pages, and then an algorithm can be used to set a unique page identification for each original page, so that when a buried point in the original page is triggered, the page identification corresponding to the original page, that is, the source data, can be directly obtained from the buried point data. For example, the original page and the page identification can be set in the form of key-value pairs (key = value). For example, the key is pagefrom, the value of the original page 1 is B1, that is, pagefrom = B1; the value of the original page 1 is B2, that is, pagefrom = B2. When it is necessary to determine the original page, only the value corresponding to pagefrom needs to be obtained.

[0036] Specifically, it can be when the user triggers a buried point in a certain area of the page using an input device, the buried point data corresponding to the trigger operation can be obtained using an interface, and an algorithm can be used to detect whether the buried point data contains a preset page identification. If so, the page identification corresponding to the page can be retrieved, that is, the source data, and then the source data can be stored in the target cache. At this time, the source data in the target cache can be used as the target source data.

[0037] It should be noted that in order to ensure that the target source data obtained each time is the source data of the originally viewed original page, when jumping from one page to another page and the other page is the original page, the value stored in the target cache corresponding to pagefrom can be replaced based on the pagefrom value of the other original page, so that the target source data stored in the target cache is the source data of the most recently jumped-to original page.

[0038] Optionally, when it is detected that a jump is made from the current original page to another original page, determine the source data of the other original page, and update the target source data stored in the target cache based on the source data to obtain the updated target source data.

[0039] It should be noted that when it is necessary to cache the target source data corresponding to each original page, the target source data of any original page can be cached and processed as determining the target source data of the current original page, so as to illustrate one of the original pages as the current original page.

[0040] Specifically, when jumping from the current original page to another original page, the source data of the other original page can be updated to the target source data stored in the target cache as the new target source data. For example, assume that initially, the value stored in the target cache corresponding to pagefrom is the source data B1 of the original page 1, that is, B1 is the target source data at this time. When jumping from the original page 1 to another original page 2, the source data of the original page 2 can be updated to the position corresponding to the value of pagefrom in the target cache, that is, the pagefrom value is updated to B2, that is, B2 is the updated target source data.

[0041] It should be noted that in this embodiment, only the example of determining the source data of the other original page and updating the target source data stored in the target cache based on the source data to obtain the updated target source data when it is detected that a jump is made from the current original page to another original page is introduced. Optionally, when it is detected that a jump is made from any page to any original page, the target source data stored in the target cache can be updated according to the source data corresponding to the jumped-to original page to obtain the updated target source data.

[0042] It should be noted that when it is detected that the triggered control has a data point, determine the first page attribute information of the data point belonging to the page to be determined, and the corresponding first page attribute information can also be determined based on the page attribute information of the page to be determined.

[0043] Optionally, when it is detected that the triggered control corresponds to a buried point, determining the first page attribute information of the page to be determined to which the buried point belongs includes: when it is detected that the triggered control corresponds to a buried point, determining the page name and page identifier of the page to be determined to which the buried point belongs; using the page name and page identifier as the first page attribute information.

[0044] Specifically, when it is detected that the triggered control corresponds to a buried point, the buried point data of the page to be determined to which the buried point belongs can be obtained by using an interface. Furthermore, the page name and page identifier corresponding to the page in the buried point data can be extracted by using an algorithm. Then, the page name and page identifier can be used as the first page attribute information, so as to determine whether the buried point of the page to be determined needs to determine its page source based on the page name and page identifier, improving the efficiency of page source statistics.

[0045] S120. If the first page attribute information is included in the page attribute information to be recorded that is preset, obtaining target source data corresponding to the page to be determined from the target cache.

[0046] Among them, the page attribute information to be recorded refers to the attribute information of the page whose page source needs to be recorded that is preset. For example, in practical applications, when the user completes an order placement operation on page 1, it is necessary to determine from which original page the task corresponding to the order placement operation comes, that is, page source statistics needs to be performed. Page 1 can be used as the page to be recorded, and its page attributes can be used as the page attribute information to be recorded. Optionally, the page attribute information to be recorded may include at least one attribute information corresponding to the page to be recorded. The target source data matches the target original page information corresponding to the page to be determined.

[0047] Specifically, after determining the first page attribute information of the page to be determined to which the buried point belongs, an algorithm can be used to detect whether the first page attribute information is included in the page attribute information to be recorded. If so, an algorithm can be used to retrieve the target source data corresponding to the page to be determined from the target cache. At this time, the page source data corresponding to the page to be determined can be obtained.

[0048] It should be noted that before obtaining the target source data corresponding to the page to be determined from the target cache when the first page attribute information is included in the page attribute information to be recorded that is preset, optionally, the Hook buried point method can be executed to intercept the reporting of the buried point data corresponding to the triggered control, and then it can be determined whether the first page attribute information is included in the page attribute information to be recorded that is preset. If not, the original process buried point can be performed for buried point data reporting. If so, obtain the target source data corresponding to the page to be determined from the target cache.

[0049] It should also be noted that, in order to improve the efficiency of page source statistics, the pages for which the page sources need to be recorded can be stored in a preset library in advance, so that when determining whether to record the source data of the corresponding original page, it can be determined based on whether the page is included in the preset library. Optionally, the page name and / or page identifier corresponding to the page can be stored in the preset library to represent the uniqueness of the page.

[0050] Optionally, when the first page attribute information is included in the preset page attribute information to be recorded, before obtaining the target source data corresponding to the page to be determined from the target cache, it further includes: determining at least one target data point according to the target service, and using the page to which the at least one target data point belongs as the page to be recorded; determining the page identifier and page name of the page to be recorded, and using the page identifier and the page name as the page attribute information to be recorded.

[0051] Among them, the target service can be understood as the business items applied by the user waiting for review and processing. For example, in the medical business processing scenario, the target service can be the registration service, medical treatment service, consultation service, recommendation service, search service, etc. provided by the medical platform. For example, based on the registration service, the user can perform registration operations, handle registration, place orders and other business items. Of course, the above-listed target services are only illustrative. In specific implementation, it can be determined by technical personnel according to the specific application scenario and processing requirements. The target data point can be understood as the data point for which the page source needs to be recorded. For example, in the registration business processing scenario, when the user's order is successfully placed and it is necessary to know from which original page the user came and this registration order was generated, the data point corresponding to the successful order placement can be used as the target data point. At this time, the data point needs to have its page source statistically analyzed, and the page to which the data point belongs can be used as the page to be recorded.

[0052] Specifically, in order to meet the business requirements, the data points in the page for which the source data needs to be determined, that is, the target data points, can be determined according to the business requirements corresponding to the target service. The page to which the target data point belongs can be used as the page to be recorded. Further, the page identifier of the page to be recorded can be generated using an algorithm, and then the page identifier and page name can be used as the page attribute information to be recorded.

[0053] It should be noted that after determining the page attribute information to be recorded, the page attribute information to be recorded can also be stored in a preset file. At this time, the file can contain the page names and page identifiers corresponding to multiple pages to be recorded, so that the page identifiers and page names of the pages to be recorded can be directly retrieved from the preset file later, improving the convenience of data processing.

[0054] It should also be noted that when determining whether the pre-set page property information to be recorded includes the first page property information of the page to be determined, the first page property information of the page to be determined can be compared with the page property information to be recorded by using an algorithm. If the two pieces of information are consistent, it can be considered that the source data of the buried point corresponding to the page to be determined needs to be determined. If the two pieces of information are inconsistent, it can be considered that the source data of the buried point corresponding to the page to be determined does not need to be determined.

[0055] Optionally, when the pre-set page property information to be recorded includes the first page property information, obtaining the target source data corresponding to the page to be determined from the target cache includes: determining whether there is page property information to be recorded that is consistent with the first page property information; if so, obtaining the target source data of the target original page that jumps to the page to be determined stored in the target cache.

[0056] Specifically, the first page property information can be compared with the page property information to be recorded in the preset file by using a comparison algorithm. If there is page property information to be recorded that is consistent with the first page property information, the target source data stored in the target cache can be retrieved by using an algorithm. The target source data is the target source data of the target original page corresponding to the page to be determined.

[0057] S130. Corresponding store the target source data and the buried point to obtain the buried point data to be uploaded, so as to determine the target original page information based on the buried point data to be uploaded.

[0058] Among them, the buried point data to be uploaded refers to the buried point data to be reported.

[0059] Specifically, the obtained target source data and the buried point data can be spliced by using an algorithm. For example, if the target source data is A and the buried point data is B, it can be spliced into A - B. The spliced data can be used as the buried point data to be uploaded, and the buried point data to be uploaded can be reported to the server data management department by using an interface. Furthermore, the corresponding target original page can be determined according to the target source data information in the uploaded buried point data.

[0060] It should be noted that in order to meet the needs of subsequent service optimization, after receiving the buried point data to be uploaded, the traffic data such as the browsing, ordering, or access volume of each original page can be statistically analyzed based on the buried point data to be uploaded, so as to optimize and adjust the original page based on the traffic data.

[0061] Optionally, upload the buried point data to be uploaded to determine the traffic information corresponding to each original page based on the received buried point data to be uploaded.

[0062] In this embodiment, the to-be-uploaded clickstream data can be uploaded to the platform data management system through an interface, so that the system can count the traffic information corresponding to each original page based on the to-be-uploaded clickstream data. Subsequently, the original pages can be optimized and analyzed according to the differences in the page traffic information to meet the user's usage requirements and improve satisfaction.

[0063] In the technical solution of this embodiment, when it is detected that a triggered control has a clickstream, the first page attribute information of the to-be-determined page to which the clickstream belongs is determined. If the preset page attribute information to be recorded includes the first page attribute information, the target source data corresponding to the to-be-determined page is obtained from the target cache, and the target source data and the clickstream are stored correspondingly to obtain the to-be-uploaded clickstream data. Based on the to-be-uploaded clickstream data, the target original page information is determined, which solves the problem in the prior art that statistical codes need to be written at all clickstreams where the page source needs to be counted in the page, resulting in a large amount of code work and low page source statistical efficiency. By presetting the page attribute information to be recorded for counting the page source, when the first page attribute information of the to-be-determined page to which the clickstream belongs is obtained, it can be quickly determined whether page source statistics are required, and there is no need to write statistical codes at each clickstream, greatly reducing the amount of code work and improving the statistical efficiency. At the same time, the target source data of the original page is stored in the target cache in advance, so that when page source statistics are required, the source data can be retrieved from the target cache in a timely manner, and there is no need to perform parameter passing step by step, further improving the efficiency of page source statistics and achieving the technical effect of cost reduction.

[0064] Embodiment 2

[0065] As an alternative embodiment of the above embodiment, Figure 2 It is a schematic flowchart of a method for determining source data provided in Embodiment 2 of the present invention. Specifically, the following specific content can be referred to.

[0066] Exemplarily, refer to Figure 2, within the application software, the user can trigger corresponding data logging from the home page all the way to the order placement process. For example, the home page entry 1 can be for medical consultations, and the home page entry 2 can be for finding a doctor. Further, when it is detected that the page corresponding to the page data logging trigger is the original page, the method of the storage module can be called to store the pageFrom value corresponding to the original page into the target cache. It should be noted that the original pages can include original page 1, original page 2, original page 3, and original page 4. Furthermore, the pageFrom values corresponding to the original pages can be predefined, that is, the source data. For example, original page 1 can be the recommended experts page, and its pageFrom value can be defined as B1; original page 2 can be the express medical consultation page, and its pageFrom value can be defined as B2; original page 3 can be the multiple questions for one disease page, and its pageFrom value can be defined as B3; original page 4 can be the search page, and its pageFrom value can be defined as B4. Further, when the order placement is successful, the method of the storage module can be called to retrieve the pageFrom value stored in the target cache before, and the value can be spliced into the order placement data logging data to obtain the data logging data to be uploaded. So as to determine the original page source corresponding to the order placement based on the pageFrom value in the data logging data to be uploaded.

[0067] Exemplarily, such as Figure 3 As shown, in practical applications, the data logging of multiple pages within the application software needs to determine the page source. At least one target data logging point can be determined according to the target business, and the page to which at least one target data logging point belongs can be used as the page to be recorded. For example, the target business can be the registration business, the medical treatment business, the medical consultation business, the recommendation business, the search business, etc. Furthermore, according to the requirements of each actual business, the pages corresponding to the source data data logging points that need to be determined can be defined. A local plist file can be newly created in advance, the page names of these pages can be added to the plist file, and the data in the plist file can be used as the page property information to be recorded. Further, when it is detected that the triggered page control corresponds to a data logging point, the method of Hook data logging can be executed. An algorithm can be used to determine whether the page name of the current page is in the plist file. If not, the original process of data logging is followed. That is to say, at this time, the data logging data of the page can be reported to the background, and the pageFrom value is not attached to the data. If it is, the pageFrom value in the target cache can be stored corresponding to the data logging of the page to generate the data logging data to be uploaded. So as to determine the corresponding target original page based on the pageFrom value in the data logging data to be uploaded.

[0068] In the technical solution of this embodiment, when it is detected that the triggered control has a data point, the first page attribute information of the page to be determined to which the data point belongs is determined. If the preset page attribute information to be recorded includes the first page attribute information, the target source data corresponding to the page to be determined is obtained from the target cache, and the target source data is stored corresponding to the data point to obtain the data point to be uploaded. By using the data point to be uploaded, the target original page information is determined, which solves the problem in the prior art that it is necessary to write statistical codes at all data points in the page that need to count the page source, resulting in a large amount of code work and low page source statistical efficiency. By presetting the page attribute information to be recorded that needs to count the page source, when the first page attribute information of the page to be determined to which the data point belongs is obtained, it can be quickly determined whether page source statistics are needed, without writing statistical codes at each data point, greatly reducing the amount of code work and improving the statistical efficiency. At the same time, the target source data of the original page is stored in the target cache in advance, so that when page source statistics are needed, the source data can be retrieved from the target cache in time, without performing the operation of passing parameters step by step, further improving the efficiency of page source statistics and achieving the technical effect of reducing costs.

[0069] Embodiment III

[0070] Figure 4 FIG. 7 is a structural block diagram of an apparatus for determining source data according to Embodiment III of the present invention. The apparatus includes: a first page attribute information determination module 410, a target source data acquisition module 420, and a target original page information determination module 430.

[0071] Among them, the first page attribute information determination module 410 is configured to determine the first page attribute information of the page to be determined to which the data point belongs when it is detected that the triggered control has a data point; the target source data acquisition module 420 is configured to obtain the target source data corresponding to the page to be determined from the target cache if the preset page attribute information to be recorded includes the first page attribute information, where the target source data matches the target original page information corresponding to the page to be determined; the target original page information determination module 430 is configured to store the target source data corresponding to the data point to obtain the data point to be uploaded, and determine the target original page information based on the data point to be uploaded.

[0072] The technical solution of this embodiment determines the first page attribute information of the page to be determined to which the buried point belongs when it is detected that the triggered control corresponds to a buried point. If the first page attribute information is included in the page attribute information to be recorded set in advance, the target source data corresponding to the page to be determined is obtained from the target cache, and the target source data is stored corresponding to the buried point to obtain the buried point data to be uploaded. Based on the buried point data to be uploaded, the target original page information is determined, which solves the problem in the prior art that it is necessary to write statistical codes at all the buried points in the page that need to count the page source, resulting in a large amount of code work and low page source statistical efficiency. By presetting the page attribute information to be recorded that needs to count the page source, when the first page attribute information of the page to be determined to which the buried point belongs is obtained, it can be quickly determined whether page source statistics are required, and there is no need to write statistical codes at each buried point, greatly reducing the amount of code work and improving the statistical efficiency. At the same time, the target source data of the original page is stored in the target cache in advance, so that when page source statistics are required, the source data can be retrieved from the target cache in time, and there is no need to perform the operation of passing parameters step by step, further improving the efficiency of page source statistics and achieving the technical effect of reducing costs.

[0073] Based on the above device, optionally, the device further includes: a target source data determination module.

[0074] The target source data determination module is used to determine the source data of the original page when it is detected that the page to be displayed is the original page, and store the source data in the target cache to obtain the target source data; wherein, the target source data includes the page identifier of the original page.

[0075] Based on the above device, optionally, the target source data determination module includes a target source data update unit.

[0076] The target source data update unit is used to determine the source data of the other original page when it is detected that the jump is made from the current original page to another original page, and update the target source data stored in the target cache based on the source data to obtain the updated target source data.

[0077] Based on the above device, optionally, the first page attribute information determination module 410 includes an attribute information determination unit and a first page attribute information determination unit.

[0078] The attribute information determination unit is used to determine the page name and page identifier of the page to be determined to which the buried point belongs when it is detected that the triggered control corresponds to a buried point;

[0079] The first page attribute information determination unit is used to use the page name and page identifier as the first page attribute information.

[0080] Based on the above device, optionally, the target source data acquisition module 420 includes a page to be recorded determination unit and a page attribute information determination unit for the page to be recorded.

[0081] The page to be recorded determination unit is configured to determine at least one target buried point according to the target service, and use the page to which the at least one target buried point belongs as the page to be recorded;

[0082] The page attribute information determination unit for the page to be recorded is configured to determine the page identifier and page name of the page to be recorded, and use the page identifier and the page name as the page attribute information for the page to be recorded.

[0083] Based on the above device, optionally, the target source data acquisition module 420 further includes a second page attribute information determination unit for the page to be recorded and a second target source data acquisition unit.

[0084] The second page attribute information determination unit for the page to be recorded is configured to determine whether there is page attribute information for the page to be recorded that is consistent with the first page attribute information;

[0085] The second target source data acquisition unit is configured to, if so, obtain the target source data of the target original page that jumps to the page to be determined stored in the target cache.

[0086] Based on the above device, optionally, the target original page information determination module 430 includes a traffic information determination unit.

[0087] The traffic information determination unit is configured to upload the buried point data to be uploaded, and determine the traffic information corresponding to each original page based on the received buried point data to be uploaded.

[0088] The device for determining source data provided by the embodiments of the present invention can execute the method for determining source data provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.

[0089] It should be noted that the various units and modules included in the above device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the embodiments of the present invention.

[0090] Embodiment 4

[0091] Figure 5 It is a schematic structural diagram of an electronic device provided by Embodiment 4 of the present invention. Figure 5 It shows a block diagram of an exemplary electronic device 50 suitable for implementing the implementation manner of the embodiment of the present invention. Figure 5The displayed electronic device 50 is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.

[0092] As Figure 5 shown, the electronic device 50 is presented in the form of a general-purpose computing device. The components of the electronic device 50 may include, but are not limited to: one or more processors or processing units 501, a system memory 502, and a bus 503 that connects different system components (including the system memory 502 and the processing unit 501).

[0093] The bus 503 represents one or more of several types of bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. By way of example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0094] The electronic device 50 typically includes a variety of computer system-readable media. These media can be any available media that can be accessed by the electronic device 50, including volatile and non-volatile media, removable and non-removable media.

[0095] The system memory 502 may include computer system-readable media in the form of volatile memory, such as random access memory (RAM) 504 and / or cache memory 505. The electronic device 50 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 506 can be used for reading and writing on non-removable, non-volatile magnetic media ( Figure 5 not shown, typically referred to as a "hard disk drive"). Although Figure 5 not shown in the figure, a disk drive for reading and writing on a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing on a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM, or other optical media) can be provided. In these cases, each drive can be connected to the bus 503 through one or more data media interfaces. The memory 502 may include at least one program product having a set of (e.g., at least one) program modules that are configured to execute the functions of the embodiments of the present invention.

[0096] A program / utilities 508 having a set (at least one) of program modules 507 can be stored, for example, in a memory 502. Such program modules 507 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules 507 generally perform the functions and / or methods in the embodiments described in the present invention.

[0097] The electronic device 50 can also communicate with one or more external devices 509 (such as a keyboard, a pointing device, a display 510, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 50, and / or communicate with any device that enables the electronic device 50 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through an input / output (I / O) interface 511. Moreover, the electronic device 50 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 512. As shown in the figure, the network adapter 512 communicates with other modules of the electronic device 50 through a bus 503. It should be understood that although Figure 5 not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0098] The processing unit 501 executes various functional applications and data processing by running programs stored in the system memory 502, such as implementing the method for determining source data provided in the embodiments of the present invention.

[0099] Embodiment Five

[0100] Embodiment Five of the present invention also provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute a method for determining source data when executed by a computer processor. The method includes:

[0101] When it is detected that a triggered control corresponds to a data point, determining first page attribute information of the page to be determined to which the data point belongs;

[0102] If the pre-set page attribute information to be recorded includes the first page attribute information, obtaining target source data corresponding to the page to be determined from a target cache; wherein, the target source data matches the target original page information corresponding to the jump to the page to be determined.

[0103] Correspondingly store the target source data with the buried points to obtain the buried point data to be uploaded, so as to determine the target original page information based on the buried point data to be uploaded.

[0104] The computer storage medium of the embodiments of the present invention may adopt any combination of one or more computer-readable media. The computer-readable media may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.

[0105] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.

[0106] The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including - but not limited to - wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0107] Computer program code for performing the operations of the embodiments of the present invention may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0108] Note that the above is only the preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein. Various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, more other equivalent embodiments may be included, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for determining source data, characterized in that, Including: When it is detected that the triggered control has a corresponding data point, determining first page attribute information of the page to be determined to which the data point belongs; When the first page attribute information is included in the preset page attribute information to be recorded, obtaining target source data corresponding to the page to be determined from the target cache; wherein, the target source data matches the target original page information corresponding to the jump to the page to be determined; wherein, the page to be recorded is a preset page for which the page source needs to be recorded; the target source data is the page source data corresponding to the page to be determined; Storing the target source data and the data point in a corresponding manner to obtain data points to be uploaded, so as to determine the target original page information based on the data points to be uploaded.

2. The method according to claim 1, wherein Also including: When it is detected that the page to be displayed is an original page, determining the source data of the original page and storing the source data in the target cache to obtain the target source data; Wherein, the target source data includes the page identifier of the original page.

3. The method according to claim 2, wherein Also including: When it is detected that a jump is made from the current original page to another original page, determining the source data of the other original page and updating the target source data stored in the target cache based on the source data to obtain the updated target source data.

4. The method according to claim 1, wherein The step of determining first page attribute information of the page to be determined to which the data point belongs when it is detected that the triggered control has a corresponding data point includes: When it is detected that the triggered control has a corresponding data point, determining the page name and page identifier of the page to be determined to which the data point belongs; Taking the page name and page identifier as the first page attribute information.

5. The method according to claim 1, wherein Before obtaining the target source data corresponding to the page to be determined from the target cache when the first page attribute information is included in the preset page attribute information to be recorded, further including: Determining at least one target data point according to the target service and taking the page to which the at least one target data point belongs as the page to be recorded; Determining the page identifier and page name of the page to be recorded and taking the page identifier and the page name as the page attribute information to be recorded.

6. The method according to claim 5, wherein The step of obtaining the target source data corresponding to the page to be determined from the target cache when the first page attribute information is included in the preset page attribute information to be recorded includes: Determining whether there is page attribute information to be recorded that is consistent with the first page attribute information; If so, obtaining the target source data of the target original page that jumps to the page to be determined stored in the target cache.

7. The method according to claim 1, characterized in that Also including: Uploading the data points to be uploaded to determine the traffic information corresponding to each original page based on the received data points to be uploaded.

8. An apparatus for determining source data, characterized in that, Including: A first page attribute information determination module, configured to determine first page attribute information of the page to be determined to which the data point belongs when it is detected that the triggered control has a corresponding data point; A target source data acquisition module, configured to obtain target source data corresponding to the to-be-determined page from a target cache when the pre-set page attribute information to be recorded includes the first page attribute information; wherein, the target source data matches the target original page information corresponding to the jump to the to-be-determined page; wherein, the to-be-recorded page is a pre-set page for which the page source needs to be recorded; the target source data is the page source data corresponding to the to-be-determined page. A target original page information determination module, configured to store the target source data and the corresponding buried points to obtain to-be-uploaded buried point data, and determine the target original page information based on the to-be-uploaded buried point data.

9. An electronic device, characterized in that, The device includes: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining source data as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method for determining source data as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Method and device for obtaining data

    CN110619100A

  • Page processing method and device, and equipment

    CN111783018A

  • Burying point execution method and device based on event agency

    CN113626158A