CN114238814A - Method and device for determining source data, electronic equipment and storage medium - Google Patents

Method and device for determining source data, electronic equipment and storage medium Download PDF

Info

Publication number
CN114238814A
CN114238814A CN202111543672.3A CN202111543672A CN114238814A CN 114238814 A CN114238814 A CN 114238814A CN 202111543672 A CN202111543672 A CN 202111543672A CN 114238814 A CN114238814 A CN 114238814A
Authority
CN
China
Prior art keywords
page
target
source data
attribute information
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111543672.3A
Other languages
Chinese (zh)
Inventor
许阳
张明玮
晋明泉
叶飞翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202111543672.3A priority Critical patent/CN114238814A/en
Publication of CN114238814A publication Critical patent/CN114238814A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method and a device for determining source data, electronic equipment and a storage medium. The method comprises the following steps: when the triggered control is detected to correspond to the embedded point, determining first page attribute information of a page to be determined to which the embedded point belongs; if the preset page attribute information to be recorded comprises the first page attribute information, acquiring target source data corresponding to the page to be determined from a target cache; and correspondingly storing the target source data and the buried points to obtain buried point data to be uploaded, and determining target original page information based on the buried point data to be uploaded. The method solves the problems of large code workload and low statistical efficiency of the page source statistical method in the prior art, improves the efficiency of page source statistics, reduces the code workload and achieves the technical effect of reducing the cost.

Description

Method and device for determining source data, electronic equipment and storage medium
Technical Field
The embodiments of the present invention relate to computer processing technologies, and in particular, to a method and an apparatus for determining source data, an electronic device, and a storage medium.
Background
With the rapid development of mobile application software, mobile client data statistics have become increasingly important. Generally, an enterprise can realize page source statistics of application software by itself in consideration of the statistical data security of the mobile application software of the enterprise, so as to meet related product business requirements.
The conventional page source statistical method generally adopts all embedded points needing to count page sources in a page to write statistical codes, and has the problems of large code workload and low page source statistical efficiency.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining source data, electronic equipment and a storage medium, which are used for improving the efficiency of page source statistics, reducing the workload of codes and achieving the technical effect of reducing the development cost.
In a first aspect, an embodiment of the present invention provides a method for determining source data, where the method includes:
when the triggered control is detected to correspond to a buried point, determining first page attribute information of a page to be determined to which the buried point belongs;
if the preset page attribute information to be recorded comprises the first page attribute information, acquiring target source data corresponding to the page to be determined from a target cache; the target source data is matched with target original page information corresponding to the page to be determined;
and correspondingly storing the target source data and the buried points to obtain buried point data to be uploaded, and determining the target original page information based on the buried point data to be uploaded.
In a second aspect, an embodiment of the present invention further provides an apparatus for determining source data, where the apparatus includes:
the first page attribute information determining module is used for determining first page attribute information of a page to be determined to which a buried point belongs when the triggered control is detected to correspond to the buried point;
the target source data acquisition module is used for acquiring target source data corresponding to the page to be determined from a target cache if the preset page attribute information to be recorded comprises the first page attribute information; the target source data is matched with target original page information corresponding to the page to be determined;
and the target original page information determining module is used for correspondingly storing the target source data and the buried points to obtain buried point data to be uploaded, and determining the target original page information based on the buried point data to be uploaded.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of determining source data as in any one of the embodiments of the invention.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for determining source data according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, when the triggered control is detected to correspond to the embedded point, the first page attribute information of the page to be determined to which the embedded point belongs is determined, if the preset page attribute information to be recorded comprises the first page attribute information, the target source data corresponding to the page to be determined is obtained from the target cache, the target source data and the embedded point are correspondingly stored to obtain the data of the embedded point to be uploaded, and the target original page information is determined based on the data of the embedded point to be uploaded, so that the problems that in the prior art, the code workload is large and the statistical efficiency of the page source is low due to the fact that statistical codes need to be compiled at all embedded points of the page source to be counted, are solved, the page attribute information to be recorded of the page source to be counted is preset, and when the first page attribute information of the page to be determined to which the embedded point belongs is obtained, whether page source statistics is needed or not is judged quickly, statistical codes do not need to be written at each buried point, code workload is greatly reduced, and statistical efficiency is improved. Meanwhile, target source data of the original page are stored in the target cache in advance, so that when page source statistics is needed, the source data are called from the target cache in time without performing step-by-step parameter transmission operation, the efficiency of the page source statistics is further improved, and the technical effect of reducing the cost is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a flowchart of a method for determining source data according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for determining source data according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for determining source data according to a second embodiment of the present invention;
fig. 4 is a block diagram illustrating a structure of an apparatus for determining source data according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a method for determining source data according to an embodiment of the present invention, where this embodiment is applicable to a case of determining a source of a page, and the method may be executed by an apparatus for determining source data according to an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, and optionally, the method is implemented by an electronic device, and the electronic device may be a mobile terminal, a PC terminal, a server terminal, or the like. The apparatus may be configured in a computing device, and the method for determining source data provided in this embodiment specifically includes the following steps:
s110, when the triggered control is detected to correspond to the embedded point, determining first page attribute information of a page to be determined to which the embedded point belongs.
It should be noted that the 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 in which the page source needs to be determined. It should be further noted that a corresponding system for determining a page source may be developed based on the present technical solution, and then a corresponding task is processed based on the system, so as to determine the page source. Illustratively, in the field of order business statistics, when an order for placing an order by a user is generated, an original page source corresponding to the order that needs to be statistically generated at this time is generated, for example, the original page may be a doctor search page, which may mean that the user places the order from the doctor search page to generate the order, so that the page source determination may be performed based on the technical solution.
The control may be an interface element in the web interface, such as an interface element in a window, a text box, a button, a pull-down menu, and the like in the interface. The first page attribute information may be understood as page configuration data corresponding to a page, and optionally, the first page attribute information may be information such as a page title, a page name, a background image, a background color, a text, and an edge distance.
It should be noted that, in an actual service scenario, a series of related service operations may be performed on a web page platform, and when a user clicks a certain control in the platform by using an input device, the control in the page is considered to be triggered; the control may be exposed for a preset time, and the control in the page is considered to be triggered, so that when the server detects that the trigger control correspondingly has a buried point, the buried point may be a click buried point, an exposure buried point, a sliding buried point, or the like, and it is considered that the trigger control has a buried point. When the server detects that the triggered control corresponds to the embedded point, the interface is used to obtain page attribute information of a page to which the embedded point belongs, and the page is used as the first page attribute information.
Specifically, when the server detects that the trigger page control has the embedded point, the interface may be used to obtain page attribute data corresponding to the triggered page, which is used as the first page attribute information.
It should be noted that, in order to meet the service requirement, the original page may be determined according to the requirement of the actual service, for example, in an actual medical scene, service pages such as recommending experts, rapid inquiry, one-patient multiple questions, and search may be set as the original page, so that the service may be optimized based on the access condition of the original page in the following. It should be further noted that, in order to improve the efficiency of determining the page source data, the identification data of the original page may be predetermined, for example, it is assumed that a user triggers a certain control from the page a to enter the page B, and then enters the page C from the page B, and at this time, the page sources of the page B and the page C may be considered as the page a, that is, the page a is the original page. For example, the identification of the A page may be A1. The identifier of the page A can be stored to a preset position, so that when the embedded point in the page B triggered by the user is detected, the identifier of the page A can be directly called from the preset position, and the page source of the page B is determined.
Optionally, when it is detected that the page to be displayed is an original page, determining source data of the original page, and storing the source data in the target cache to obtain the target source data.
And the target source data comprises the page identification of the original page. The page identifier is identification information for representing page uniqueness, and correspondingly, each page can correspond to one page unique identifier. For example, page A has page identification A1 and page B has page identification B2. The target cache can be a preset cache library, a local disk or a sandbox. The determination can be performed by technicians according to actual work, and the technical scheme is not limited to this.
It should be noted that it may be determined which pages in the system are original pages according to actual service requirements, and then a unique page identifier may be set for each original page by using an algorithm, so that when a buried point in an original page is triggered, a page identifier corresponding to the original page, that is, source data, may be directly obtained from the buried point data. For example, the original page and the page identifier may be set to a key value pair (key value), e.g., the key is pagefrom, the value of the original page 1 is B1, i.e., pagefrom is B1; the original page 1 has a value of B2, pagefrom ═ B2. When the original page needs to be acquired, only the value corresponding to the pagefrom needs to be acquired.
Specifically, when the user uses the input device to trigger a buried point in a certain region of the page, the interface may be used to obtain the buried point data corresponding to the trigger operation, and the algorithm may be used to detect whether the buried point data includes the preset page identifier. If so, the page identifier corresponding to the page, that is, the source data, may be called out, and then the source data may be stored in the target cache, and at this time, the source data in the target cache may be used as the target source data.
It should be noted that, in order to ensure that the target source data acquired each time is the source data of the newly browsed original page, when jumping from one page to another page, and the other page is the original page, value replacement may be performed on a value corresponding to pagefrom stored in the target cache 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 newly jumped original page.
Optionally, when it is detected that a jump is made from a current original page to another original page, the source data of the another original page is determined, and the target source data stored in the target cache is updated based on the source data, so as to obtain updated target source data.
It should be noted that, when the target source data corresponding to each original page needs to be cached, the target source data cached in any original page may be used as the target source data for determining the current original page to be processed, so as to describe that one of the original pages is used as the current original page.
Specifically, when jumping from the current original page to another original page, the source data of another original page may be updated to the target source data stored in the target cache as new target source data. For example, assume that pagefrom in the target cache corresponds to the source data B1 of the original page 1, i.e. 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 may be updated to the value corresponding to pagefrom in the target cache, i.e. the pagefrom value is updated to B2, i.e. B2 is the updated target source data.
It should be noted that, in this embodiment, only an example is described in which when it is detected that a jump is made from a current original page to another original page, source data of the another original page is determined, and target source data stored in the target cache is updated based on the source data to obtain updated target source data, and optionally, when it is detected that a jump is made from any page to any original page, target source data stored in the target cache may be updated according to source data corresponding to the jumped original page to obtain updated target source data.
It should be noted that when it is detected that the triggered control corresponds to the embedded point, the first page attribute information of the page to be determined to which the embedded point belongs is determined, and the corresponding first page attribute information may also be determined based on the page attribute information of the page to be determined.
Optionally, when it is detected that the triggered control corresponds to the embedded point, determining first page attribute information of a page to be determined to which the embedded point belongs includes: when the triggered control is detected to correspond to a buried point, determining the page name and the page identifier of a page to be determined to which the buried point belongs; and taking the page name and the page identifier as the first page attribute information.
Specifically, when the triggered control is detected to correspond to the embedded point, the embedded point data of the page to be determined to which the embedded point belongs can be obtained by using the interface, and then the page name and the page identifier corresponding to the page in the embedded point data can be extracted by using the algorithm, so that the page name and the page identifier can be used as the first page attribute information, whether the page source of the page to be determined needs to be determined or not is determined based on the page name and the page identifier, and the efficiency of page source statistics is improved.
And S120, if the preset page attribute information to be recorded comprises the first page attribute information, acquiring target source data corresponding to the page to be determined from a target cache.
The page attribute information to be recorded refers to preset attribute information of a page which needs to be recorded and is from a page source. For example, in practical application, when a user completes a placing operation in a page 1, it is necessary to determine from which original page a task corresponding to the placing operation comes, that is, it is necessary to perform page source statistics, the page 1 may be used as a page to be recorded, a page attribute of the page may be used as page attribute information to be recorded, and optionally, the page attribute information to be recorded may include attribute information of at least one page to be recorded. And matching the target source data with target original page information corresponding to the page to be determined.
Specifically, after the first page attribute information of the page to be determined to which the embedded point belongs is determined, whether the page attribute information to be recorded includes the first page attribute information or not can be detected by using an algorithm, and if so, target source data corresponding to the page to be determined can be called from the target cache by using the algorithm. At this time, the page source data corresponding to the page to be determined may be obtained.
It should be noted that, when the preset page attribute information to be recorded includes the first page attribute information, optionally, before the target source data corresponding to the page to be determined is obtained from the target cache, a Hook embedding method may be executed, so that reporting of embedding data corresponding to the triggered control may be intercepted, and further, it may be executed to determine whether the preset page attribute information to be recorded includes the first page attribute information. If not, the original process can be carried out to bury the points, and buried point data reporting is carried out. And if so, acquiring target source data corresponding to the page to be determined from a target cache.
It should be further noted that, in order to improve the efficiency of page source statistics, a page that needs to record a page source may be stored in a preset library in advance, so that when determining whether source data of a corresponding original page needs to be recorded, the determination may be performed according to whether the preset library includes the page, and optionally, a page name and/or a page identifier corresponding to the page may be stored in the preset library to represent the uniqueness of the page.
Optionally, before obtaining 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, the method further includes: determining at least one target embedded point according to the target service, and taking a page to which the at least one target embedded point belongs as the page to be recorded; and determining the page identification and the page name of the page to be recorded, and taking the page identification and the page name as attribute information of the page to be recorded.
The target service can be understood as a service project which is applied by a user and waits for auditing and handling. For example, in a medical service processing scenario, the target service may be a registration service, a medical treatment service, a consultation service, a recommendation service, a search service, and the like provided by the medical platform. For example, based on the registration service, the user can perform registration operation, and transact business items such as registration and order placement. Of course, the above listed target services are only illustrative. In the specific implementation, the determination can be performed by a technician according to a specific application scenario and a processing requirement. The target buried point can be understood as a buried point of a source of a page to be recorded. For example, in a registration service handling scenario, when a user places an order successfully, the user needs to know from which original page the user came, and the registered order is generated, a buried point corresponding to the successful order placement can be used as a target buried point, the buried point needs to be counted at this time, and a page to which the buried point belongs can be used as a page to be recorded.
Specifically, in order to meet the service requirement, a buried point of the source data, that is, a target buried point, in the page may be determined according to the service requirement corresponding to the target service, and the page to which the target buried point belongs may be used as the page to be recorded. Furthermore, a page identifier of the page to be recorded can be generated by using an algorithm, and the page identifier and the page name can be further used as attribute information of the page to be recorded.
It should be noted that after determining the attribute information of the page to be recorded, the attribute information of the page to be recorded may be stored in a preset file, and at this time, the file may include page names and page identifiers corresponding to a plurality of pages to be recorded, so that the page identifiers and page names of the pages to be recorded may be subsequently and directly called from the preset file, thereby improving convenience of data processing.
It should be further noted that, when it is determined whether the preset page attribute information to be recorded includes the first page attribute information of the page to be determined, the algorithm may be used to compare the first page attribute information of the page to be determined with the page attribute information to be recorded, and if the two pieces of information are consistent, it may be determined that the source data of the embedded point corresponding to the page to be determined needs to be determined. If the two pieces of information are not consistent, 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.
Optionally, if the preset page attribute information to be recorded includes the first page attribute information, acquiring target source data corresponding to the page to be determined from a target cache, including: determining whether page attribute information to be recorded consistent with the first page attribute information exists or not; and if so, acquiring the stored target source data of the target original page jumping to the page to be determined from the target cache.
Specifically, the first page attribute information may be compared with the page attribute information to be recorded in the preset file by using a comparison algorithm, and if the page attribute information to be recorded that is consistent with the first page attribute information exists, the stored target source data may be called from the target cache by using the algorithm, where the target source data is the target source data of the target original page corresponding to the page to be determined.
S130, the target source data and the buried point are correspondingly stored to obtain buried point data to be uploaded, and the target original page information is determined based on the buried point data to be uploaded.
The data of the buried point to be uploaded refers to the data of the buried point to be reported.
Specifically, the obtained target source data and the buried point data may be spliced by using an algorithm, for example, the target source data is a, the buried point data is B, and the target source data and the buried point data may be spliced as a-B. The spliced data can be used as data of buried points to be uploaded, the data of the buried points to be uploaded can be reported to a server data management position by using an interface, and then a corresponding target original page can be determined according to target source data information in the data of the buried points to be uploaded.
It should be noted that, in order to meet the requirement of subsequent service optimization, after receiving the data of the buried point to be uploaded, based on the data of the buried point to be uploaded, the flow data such as browsing, ordering, or access amount of each original page may be statistically analyzed, so that the original page is optimally adjusted based on the flow data.
Optionally, the data of the buried point to be uploaded is uploaded, so as to determine the flow information corresponding to each original page based on the received data of the buried point to be uploaded.
In this embodiment, the data of the buried point to be uploaded may be uploaded to the platform data management system by using the interface, so that the system may count the traffic information corresponding to each original page based on the data of the buried point to be uploaded. Therefore, the original page can be optimized and analyzed according to the difference of the page flow information in the following process, so that the use requirements of users are met, and the satisfaction degree is improved.
According to the technical scheme of the embodiment, when the triggered control is detected to correspond to the embedded point, the first page attribute information of the page to be determined to which the embedded point belongs is determined, if the preset page attribute information to be recorded comprises the first page attribute information, the target source data corresponding to the page to be determined is obtained from the target cache, the target source data and the embedded point are correspondingly stored to obtain the data of the embedded point to be uploaded, and the target original page information is determined based on the data of the embedded point to be uploaded, so that the problems that in the prior art, the code workload is large and the statistical efficiency of page sources is low due to the fact that statistical codes need to be compiled at all embedded points of the page sources to be counted, are solved, and when the first page attribute information of the page to be determined to which the embedded point belongs is obtained by presetting the attribute information of the page to be recorded to which the page sources need to be counted, whether page source statistics is needed or not is judged quickly, statistical codes do not need to be written at each buried point, code workload is greatly reduced, and statistical efficiency is improved. Meanwhile, target source data of the original page are stored in the target cache in advance, so that when page source statistics is needed, the source data are called from the target cache in time without performing step-by-step parameter transmission operation, the efficiency of the page source statistics is further improved, and the technical effect of reducing the cost is achieved.
Example two
As an alternative embodiment of the foregoing embodiment, fig. 2 is a schematic flowchart of a method for determining source data according to a second embodiment of the present invention. Specifically, the following details can be referred to.
For example, referring to fig. 2, in the application software, the user can open the top page until the next process triggers the corresponding buried point. For example, home page portal 1 may be an interview and home page portal 2 may be a physician. Further, when it is detected that the page corresponding to the user-triggered page burying point is the original page, a method of the storage module may be called to store the pageFrom value corresponding to the original page in the target cache. It should be noted that the original pages may include original page 1, original page 2, original page 3, and original page 4. Further, the pageFrom value corresponding to the original page, i.e. the source data, may be predefined, for example, the original page 1 may be a recommendation expert page, whose pageFrom value may be defined as B1, the original page 2 may be an extreme speed inquiry page, whose pageFrom value may be defined as B2, the original page 3 may be a one-illness multi-question page, whose pageFrom value may be defined as B3, and the original page 4 may be a search page, whose pageFrom value may be defined as B4. Furthermore, when the ordering is successful, a method of the storage module can be called to take out the pageFrom value stored in the previous target cache, and the pageFrom value is spliced into the ordering buried point data to obtain the buried point data to be uploaded. So that the original page source corresponding to the order is determined based on the pageFrom value in the buried point data to be uploaded.
For example, as shown in fig. 3, in practical applications, the burial points of multiple pages within the application software need to determine the page source. At least one target embedding point can be determined according to the target service, a page to which the at least one target embedding point belongs can be used as a page to be recorded, for example, the target service can be a registration service, a diagnosis service, an inquiry service, a recommendation service, a search service and the like, then a page corresponding to the source data embedding point needs to be determined can be defined according to the requirements of each actual service, a local plist file can be created in advance, page names of the pages can be added into the plist file, and data in the plist file can be used as attribute information of the page to be recorded. Further, when it is detected that the triggered page control corresponds to a buried point, a method of Hook burying point may be executed, an algorithm may be used to determine that the page name of the current page is not in the plist file, and if the page name is not in the plist file, the original flow burying point is removed, that is, the data of the page buried point may be reported to the background, and the pageFrom value is not attached to the data. If so, the pageFrom value in the target cache can be stored corresponding to the embedded point of the page, and the embedded point data to be uploaded is generated. And determining a corresponding target original page based on the pageFrom value in the buried point data to be uploaded.
According to the technical scheme of the embodiment, when the triggered control is detected to correspond to the embedded point, the first page attribute information of the page to be determined to which the embedded point belongs is determined, if the preset page attribute information to be recorded comprises the first page attribute information, the target source data corresponding to the page to be determined is obtained from the target cache, the target source data and the embedded point are correspondingly stored to obtain the data of the embedded point to be uploaded, and the target original page information is determined based on the data of the embedded point to be uploaded, so that the problems that in the prior art, the code workload is large and the statistical efficiency of page sources is low due to the fact that statistical codes need to be compiled at all embedded points of the page sources to be counted, are solved, and when the first page attribute information of the page to be determined to which the embedded point belongs is obtained by presetting the attribute information of the page to be recorded to which the page sources need to be counted, whether page source statistics is needed or not is judged quickly, statistical codes do not need to be written at each buried point, code workload is greatly reduced, and statistical efficiency is improved. Meanwhile, target source data of the original page are stored in the target cache in advance, so that when page source statistics is needed, the source data are called from the target cache in time without performing step-by-step parameter transmission operation, the efficiency of the page source statistics is further improved, and the technical effect of reducing the cost is achieved.
EXAMPLE III
Fig. 4 is a block diagram of an apparatus for determining source data according to a third embodiment of the present invention. The device 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.
The first page attribute information determining module 410 is configured to determine, when it is detected that the triggered control corresponds to a buried point, first page attribute information of a page to be determined to which the buried point belongs; a target source data obtaining module 420, configured to obtain, from a target cache, target source data corresponding to the page to be determined if the preset page attribute information to be recorded includes the first page attribute information; the target source data is matched with target original page information corresponding to the page to be determined; and a target original page information determining module 430, configured to store the target source data and the buried point correspondingly to obtain buried point data to be uploaded, and determine the target original page information based on the buried point data to be uploaded.
According to the technical scheme of the embodiment, when the triggered control is detected to correspond to the embedded point, the first page attribute information of the page to be determined to which the embedded point belongs is determined, if the preset page attribute information to be recorded comprises the first page attribute information, the target source data corresponding to the page to be determined is obtained from the target cache, the target source data and the embedded point are correspondingly stored to obtain the data of the embedded point to be uploaded, and the target original page information is determined based on the data of the embedded point to be uploaded, so that the problems that in the prior art, the code workload is large and the statistical efficiency of page sources is low due to the fact that statistical codes need to be compiled at all embedded points of the page sources to be counted, are solved, and when the first page attribute information of the page to be determined to which the embedded point belongs is obtained by presetting the attribute information of the page to be recorded to which the page sources need to be counted, whether page source statistics is needed or not is judged quickly, statistical codes do not need to be written at each buried point, code workload is greatly reduced, and statistical efficiency is improved. Meanwhile, target source data of the original page are stored in the target cache in advance, so that when page source statistics is needed, the source data are called from the target cache in time without performing step-by-step parameter transmission operation, the efficiency of the page source statistics is further improved, and the technical effect of reducing the cost is achieved.
On the basis of the above device, optionally, the device further includes: and a target source data determination module.
The target source data determining module is used for determining source data of an original page when the page to be displayed is detected to be the original page, and storing the source data into the target cache to obtain the target source data; wherein the target source data comprises a page identifier of the original page.
On the basis of the foregoing apparatus, optionally, the target source data determining module includes a target source data updating unit.
And the target source data updating unit is used for determining the source data of another original page when jumping from the current original page to another original page is detected, and updating the target source data stored in the target cache based on the source data to obtain the updated target source data.
On the basis of the foregoing apparatus, optionally, the first page attribute information determining module 410 includes an attribute information determining unit and a first page attribute information determining unit.
The attribute information determining unit is used for determining the page name and the page identifier of the page to be determined to which the embedded point belongs when the triggered control is detected to correspond to the embedded point;
a first page attribute information determining unit configured to use the page name and the page identifier as the first page attribute information.
On the basis of the foregoing apparatus, optionally, the target source data obtaining module 420 includes a to-be-recorded page determining unit and a to-be-recorded page attribute information determining unit.
The page to be recorded determining unit is used for determining at least one target embedded point according to the target service and taking the page to which the at least one target embedded point belongs as the page to be recorded;
and the page attribute information to be recorded determining unit is used for determining the page identifier and the 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.
On the basis of the foregoing apparatus, optionally, the target source data obtaining module 420 further includes a second unit for determining attribute information of a page to be recorded and a second unit for obtaining target source data.
The second unit for determining the attribute information of the page to be recorded is used for determining whether the attribute information of the page to be recorded consistent with the first page attribute information exists or not;
and the target source data acquisition second unit is used for acquiring the stored target source data of the target original page which jumps to the page to be determined from the target cache if the target source data is the target source data.
On the basis of the above device, optionally, the target original page information determining module 430 includes a traffic information determining unit.
And the flow information determining unit is used for uploading the data of the buried points to be uploaded so as to determine the flow information corresponding to each original page based on the received data of the buried points to be uploaded.
The device for determining source data provided by the embodiment of the invention can execute the method for determining source data provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary electronic device 50 suitable for use in implementing embodiments of the present invention. The electronic device 50 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 5, electronic device 50 is embodied 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 couples the various system components (including the system memory 502 and the processing unit 501).
Bus 503 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such 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.
Electronic device 50 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 50 and includes both volatile and nonvolatile media, removable and non-removable media.
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/nonvolatile computer system storage media. By way of example only, storage system 506 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 503 by one or more data media interfaces. Memory 502 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 508 having a set (at least one) of program modules 507 may be stored, for instance, in memory 502, such program modules 507 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 507 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
The electronic device 50 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), with one or more devices that enable a user to interact with the electronic device 50, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 50 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 511. Also, the electronic device 50 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 512. As shown, the network adapter 512 communicates with the other modules of the electronic device 50 over the bus 503. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with 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, among others.
The processing unit 501 executes various functional applications and data processing, for example, implementing a method of determining source data provided by an embodiment of the present invention, by executing a program stored in the system memory 502.
EXAMPLE five
Embodiments of the present invention also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, perform a method of determining source data. The method comprises the following steps:
when the triggered control is detected to correspond to a buried point, determining first page attribute information of a page to be determined to which the buried point belongs;
if the preset page attribute information to be recorded comprises the first page attribute information, acquiring target source data corresponding to the page to be determined from a target cache; the target source data is matched with target original page information corresponding to the page to be determined;
and correspondingly storing the target source data and the buried points to obtain buried point data to be uploaded, and determining the target original page information based on the buried point data to be uploaded.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of determining source data, comprising:
when the triggered control is detected to correspond to a buried point, determining first page attribute information of a page to be determined to which the buried point belongs;
if the preset page attribute information to be recorded comprises the first page attribute information, acquiring target source data corresponding to the page to be determined from a target cache; the target source data is matched with target original page information corresponding to the page to be determined;
and correspondingly storing the target source data and the buried points to obtain buried point data to be uploaded, and determining the target original page information based on the buried point data to be uploaded.
2. The method of claim 1, further comprising:
when detecting that a page to be displayed is an original page, determining source data of the original page, and storing the source data into the target cache to obtain the target source data;
wherein the target source data comprises a page identifier of the original page.
3. The method of claim 2, further comprising:
when jumping from the current original page to another original page is detected, determining source data of the other original page, and updating target source data stored in the target cache based on the source data to obtain updated target source data.
4. The method according to claim 1, wherein when it is detected that the triggered control corresponds to a buried point, determining first page attribute information of a page to be determined to which the buried point belongs comprises:
when the triggered control is detected to correspond to a buried point, determining the page name and the page identifier of a page to be determined to which the buried point belongs;
and taking the page name and the page identifier as the first page attribute information.
5. The method according to claim 1, wherein before acquiring target source data corresponding to the page to be determined from a target cache if the preset page attribute information to be recorded includes the first page attribute information, the method further includes:
determining at least one target embedded point according to the target service, and taking a page to which the at least one target embedded point belongs as the page to be recorded;
and determining the page identification and the page name of the page to be recorded, and taking the page identification and the page name as attribute information of the page to be recorded.
6. The method according to claim 5, wherein if the preset page attribute information to be recorded includes the first page attribute information, acquiring target source data corresponding to the page to be determined from a target cache, including:
determining whether page attribute information to be recorded consistent with the first page attribute information exists or not;
and if so, acquiring the stored target source data of the target original page jumping to the page to be determined from the target cache.
7. The method of claim 1, further comprising:
and uploading the data of the buried points to be uploaded so as to determine the flow information corresponding to each original page based on the received data of the buried points to be uploaded.
8. An apparatus for determining source data, comprising:
the first page attribute information determining module is used for determining first page attribute information of a page to be determined to which a buried point belongs when the triggered control is detected to correspond to the buried point;
the target source data acquisition module is used for acquiring target source data corresponding to the page to be determined from a target cache if the preset page attribute information to be recorded comprises the first page attribute information; the target source data is matched with target original page information corresponding to the page to be determined;
and the target original page information determining module is used for correspondingly storing the target source data and the buried points to obtain buried point data to be uploaded, and determining the target original page information based on the buried point data to be uploaded.
9. An electronic device, characterized in that the device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of determining source data as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of determining source data according to any one of claims 1 to 7.
CN202111543672.3A 2021-12-16 2021-12-16 Method and device for determining source data, electronic equipment and storage medium Pending CN114238814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111543672.3A CN114238814A (en) 2021-12-16 2021-12-16 Method and device for determining source data, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111543672.3A CN114238814A (en) 2021-12-16 2021-12-16 Method and device for determining source data, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114238814A true CN114238814A (en) 2022-03-25

Family

ID=80757459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111543672.3A Pending CN114238814A (en) 2021-12-16 2021-12-16 Method and device for determining source data, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114238814A (en)

Similar Documents

Publication Publication Date Title
CN109739717B (en) Page data acquisition method and device and server
US20160349928A1 (en) Generating summary of activity on computer gui
CN112162965B (en) Log data processing method, device, computer equipment and storage medium
CN110874307B (en) Method and device for collecting and reporting event buried points
CN113076104A (en) Page generation method, device, equipment and storage medium
CN113704102B (en) Application program compliance detection method, device, equipment and medium
CN112559095A (en) Target service execution method, system, server and storage medium
CN112817817A (en) Buried point information query method and device, computer equipment and storage medium
CN112269799A (en) Data query method, device, equipment and medium
CN111563015A (en) Data monitoring method and device, computer readable medium and terminal equipment
CN109561212B (en) Merging method, device, equipment and storage medium for published information
CN110866205B (en) Method and apparatus for storing information
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN114358742A (en) Workflow execution method, device, equipment and storage medium
US10599689B2 (en) Identifying parameter values in log entries
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN114238814A (en) Method and device for determining source data, electronic equipment and storage medium
CN115759040A (en) Electronic medical record analysis method, device, equipment and storage medium
CN116028917A (en) Authority detection method and device, storage medium and electronic equipment
CN112000491B (en) Application program interface calling method, device, equipment and storage medium
CN110554892A (en) Information acquisition method and device
CN114238391A (en) Data paging query method and device, electronic equipment and storage medium
CN114090514A (en) Log retrieval method and device for distributed system
CN113919310A (en) Short message content determination method and device, electronic equipment and storage medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination