CN116484131A - Buried point processing method and device - Google Patents
Buried point processing method and device Download PDFInfo
- Publication number
- CN116484131A CN116484131A CN202310544822.5A CN202310544822A CN116484131A CN 116484131 A CN116484131 A CN 116484131A CN 202310544822 A CN202310544822 A CN 202310544822A CN 116484131 A CN116484131 A CN 116484131A
- Authority
- CN
- China
- Prior art keywords
- page
- elements
- buried point
- information
- analyzed
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 23
- 230000001960 triggered effect Effects 0.000 claims abstract description 17
- 238000000034 method Methods 0.000 claims description 57
- 238000012545 processing Methods 0.000 claims description 20
- 230000004044 response Effects 0.000 claims description 13
- 238000004458 analytical method Methods 0.000 abstract description 7
- 238000012423 maintenance Methods 0.000 abstract description 7
- 238000011161 development Methods 0.000 abstract description 2
- 238000011160 research Methods 0.000 abstract 1
- 238000013480 data collection Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 5
- 238000012827 research and development Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Document Processing Apparatus (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机技术领域,特别是涉及一种埋点处理方法及装置。The present application relates to the field of computer technology, in particular to a method and device for processing buried points.
背景技术Background technique
埋点分析,是网站分析的一种常用的数据采集方法。对于网页端应用而言,可以由开发或者运维人员编写埋点对应的软件代码,并在网页端应用上运行该软件代码,从而对网页端应用对应的运行数据进行采集。Buried point analysis is a commonly used data collection method for website analysis. For web-side applications, development or operation and maintenance personnel can write the software code corresponding to the buried point, and run the software code on the web-side application, so as to collect the operation data corresponding to the web-side application.
但是,采用编写埋点对应的软件代码的方式来进行数据采集,其需要耗费大量的研发和运维成本。一方面,编写埋点对应的软件代码,需要消耗一定的研发成本。另外,当网页端应用的应用逻辑发生变更,或者,需要采集的埋点数据发生变更时,均需要重新编写埋点对应的软件代码,从而消耗大量的运维成本。However, data collection is performed by writing software codes corresponding to buried points, which requires a lot of research and development and operation and maintenance costs. On the one hand, writing the software code corresponding to the buried point requires a certain amount of research and development costs. In addition, when the application logic of the web application changes, or when the buried point data that needs to be collected changes, the software code corresponding to the buried point needs to be rewritten, which consumes a lot of operation and maintenance costs.
因此,急需一种方案,能够解决上述问题。Therefore, there is an urgent need for a solution that can solve the above problems.
发明内容Contents of the invention
为了解决或者至少部分解决上述技术问题,本申请实施例提供了一种埋点处理方法及装置。In order to solve or at least partly solve the above-mentioned technical problems, the embodiments of the present application provide a buried point processing method and device.
第一方面,本申请实施例提供了一种埋点处理方法,所述方法包括:In the first aspect, the embodiment of the present application provides a buried point processing method, the method comprising:
响应于在埋点信息配置页面中针对第一元素触发的选择操作,获取所述第一元素的标识,所述第一元素为待分析页面中的元素;In response to the selection operation triggered for the first element in the buried point information configuration page, the identifier of the first element is acquired, and the first element is an element in the page to be analyzed;
根据所述第一元素的标识,确定所述待分析页面中的若干个第二元素,所述第二元素为所述第一元素的同类元素;According to the identification of the first element, determine several second elements in the page to be analyzed, the second elements are elements of the same type as the first element;
将所述第一元素的标识、所述若干个第二元素中至少一个第二元素的标识、以及在所述埋点信息配置页面中配置的目标配置信息,发送给服务端,以使得所述服务端基于所述第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息,生成与所述待分析页面对应的埋点配置文件,所述埋点配置文件用于对所述待分析页面进行埋点数据采集。The identifier of the first element, the identifier of at least one second element among the plurality of second elements, and the target configuration information configured in the buried point information configuration page are sent to the server, so that the server generates a buried point configuration file corresponding to the page to be analyzed based on the identifier of the first element, the identifier of the at least one second element, and the target configuration information, and the buried point configuration file is used for collecting buried point data on the page to be analyzed.
可选的,所述第一元素的标识包括所述第一元素的路径位置,所述路径位置包括路径信息以及第一位置信息,所述路径信息指示所述第一元素的元素路径包括N个层级,N为大于1的整数,所述第一位置信息指示所述第一元素的标签名在各个所述层级下分别对应的编号,其中,所述N个层级包括第一层级,所述第一层级包括至少一个具备所述标签名的元素,所述第一元素的标签名在第一层级下对应的编号,指示所述第一元素在所述至少一个具备所述标签名的元素中的编号,所述根据所述第一元素的标识,确定所述待分析页面中的若干个第二元素,包括:Optionally, the identifier of the first element includes a path position of the first element, the path position includes path information and first position information, the path information indicates that the element path of the first element includes N levels, and N is an integer greater than 1, and the first position information indicates the number corresponding to the tag name of the first element in each of the levels, wherein the N levels include the first level, the first level includes at least one element with the tag name, and the number corresponding to the tag name of the first element under the first level indicates that the first element is in the at least one level. The number in the element with the tag name, and according to the identification of the first element, determine several second elements in the page to be analyzed, including:
将所述第一位置信息中的第一编号,替换为预设路径通配符,得到第二位置信息,所述预设路径通配符指示忽略所述第一编号;replacing the first number in the first location information with a preset path wildcard to obtain second location information, the preset path wildcard indicating to ignore the first number;
根据所述第二位置信息和所述路径信息,确定所述若干个第二元素。The plurality of second elements are determined according to the second location information and the path information.
可选的,所述将所述第一位置信息中的第一编号,替换为预设路径通配符,得到第二位置信息,包括:Optionally, the first number in the first location information is replaced with a preset path wildcard to obtain the second location information, including:
按照预设顺序,依次将所述N个层级中各个层级分别对应在所述第一位置信息中的编号替换为预设路径通配符,得到与所述各个层级分别对应的所述第二位置信息,所述各个层级分别对应在所述第一位置信息中的编号包括所述第一编号。According to a preset sequence, sequentially replacing numbers in the first location information corresponding to each of the N levels with preset path wildcards to obtain the second location information corresponding to the respective levels, and the numbers corresponding to each level in the first location information include the first number.
可选的,所述第一元素的标识包括所述第一元素的第一层叠样式表选择器,所述根据所述第一元素的标识,确定所述待分析页面中的若干个第二元素,包括:Optionally, the identifier of the first element includes a first cascading style sheet selector of the first element, and the determining several second elements in the page to be analyzed according to the identifier of the first element includes:
根据所述第一层叠样式表选择器,确定待选层叠样式表选择器;Determine a cascading style sheet selector to be selected according to the first cascading style sheet selector;
确定所述第一层叠样式表选择器和待选层叠样式表选择器之间的相对层叠样式表路径;determining a relative CSS path between the first CSS selector and the candidate CSS selector;
根据所述待选层叠样式表选择器和所述相对层叠样式表选择器,确定所述若干个第二元素。The plurality of second elements are determined according to the cascaded style sheet selector to be selected and the relative cascaded style sheet selector.
可选的,所述根据所述第一层叠样式表选择器,确定待选层叠样式表选择器,包括:Optionally, the determining the cascading style sheet selector to be selected according to the first cascading style sheet selector includes:
经过M轮迭代确定每轮迭代分别对应的所述待选层叠样式表选择器,所述M为大于1的整数;其中:After M rounds of iterations, the corresponding cascading style sheet selectors corresponding to each round of iterations are determined, and the M is an integer greater than 1; wherein:
在第1轮迭代时,将所述第一层叠样式表选择器的第一父层叠样式表选择器,确定为所述第1轮迭代所对应的所述待选层叠样式表选择器;During the first iteration, determining the first parent CSS selector of the first CSS selector as the candidate CSS selector corresponding to the first iteration;
在第i轮迭代时,将与第i-1轮迭代所确定的所述待选层叠样式表选择器具备继承关系的层叠样式表选择器,确定为所述第i轮迭代所对应的所述待选层叠样式表选择器,所述i为大于1且小于或者等于M的整数。In the i-th iteration, the cascading style sheet selector that has an inheritance relationship with the candidate cascaded style sheet selector determined in the i-1th iteration is determined as the candidate cascaded style sheet selector corresponding to the i-th iteration, and the i is an integer greater than 1 and less than or equal to M.
可选的,所述根据所述第一元素的标识,获取所述待分析页面中的若干个第二元素,包括:Optionally, the acquiring several second elements in the page to be analyzed according to the identification of the first element includes:
响应于在所述埋点信息配置页面中触发的同类元素自动获取操作,根据所述第一元素的标识,确定所述待分析页面中的若干个第二元素。In response to the automatic acquisition operation of similar elements triggered on the buried point information configuration page, several second elements in the page to be analyzed are determined according to the identifier of the first element.
可选的,所述方法还包括:Optionally, the method also includes:
展示所述若干个第二元素;displaying the plurality of second elements;
响应于针对所述若干个元素中的所述至少一个第二元素触发的选择操作,获取所述至少一个第二元素的标识。In response to a selection operation triggered for the at least one second element among the plurality of elements, an identifier of the at least one second element is acquired.
可选的,所述目标配置信息,包括以下其中一项或者多项:Optionally, the target configuration information includes one or more of the following:
所述埋点数据采集对应的事件类型、所述埋点数据采集的触发条件以及埋点元素对应的属性值,所述埋点元素包括所述第一元素和所述至少一个第二元素。The event type corresponding to the buried point data collection, the trigger condition of the buried point data collection, and the attribute value corresponding to the buried point element, where the buried point element includes the first element and the at least one second element.
第二方面,本申请实施例提供了一种埋点处理方法,所述方法包括:In the second aspect, the embodiment of the present application provides a buried point processing method, the method comprising:
接收服务端发送的埋点配置文件,所述埋点配置文件为以上第一方面任意一项中所述的埋点配置文件;Receive the buried point configuration file sent by the server, and the buried point configuration file is the buried point configuration file described in any one of the above first aspects;
获取所述待分析页面中的目标事件,并将所述目标事件与所述埋点配置文件相匹配;Obtaining the target event in the page to be analyzed, and matching the target event with the buried point configuration file;
在所述目标事件与所述埋点配置文件匹配成功的情况下,采集与所述目标事件对应的埋点数据。If the target event is successfully matched with the buried point configuration file, the buried point data corresponding to the target event is collected.
第三方面,本申请实施例提供了一种埋点处理装置,所述装置包括:In a third aspect, the embodiment of the present application provides a buried point processing device, the device comprising:
第一获取单元,用于响应于在埋点信息配置页面中针对第一元素触发的选择操作,获取所述第一元素的标识,所述第一元素为待分析页面中的元素;The first acquiring unit is configured to acquire the identifier of the first element in response to a selection operation triggered for the first element in the buried point information configuration page, and the first element is an element in the page to be analyzed;
确定单元,用于根据所述第一元素的标识,确定所述待分析页面中的若干个第二元素,所述第二元素为所述第一元素的同类元素;A determining unit, configured to determine a plurality of second elements in the page to be analyzed according to the identification of the first element, the second elements being elements of the same type as the first element;
发送单元,用于将所述第一元素的标识、所述若干个第二元素中至少一个第二元素的标识、以及在所述埋点信息配置页面中配置的目标配置信息,发送给服务端,以使得所述服务端基于所述第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息,生成与所述待分析页面对应的埋点配置文件,所述埋点配置文件用于对所述待分析页面进行埋点数据采集。The sending unit is configured to send the identifier of the first element, the identifier of at least one second element among the plurality of second elements, and the target configuration information configured in the buried point information configuration page to the server, so that the server generates a buried point configuration file corresponding to the page to be analyzed based on the identifier of the first element, the identifier of the at least one second element, and the target configuration information, and the buried point configuration file is used for collecting buried point data on the page to be analyzed.
可选的,所述第一元素的标识包括所述第一元素的路径位置,所述路径位置包括路径信息以及第一位置信息,所述路径信息指示所述第一元素的元素路径包括N个层级,N为大于1的整数,所述第一位置信息指示所述第一元素的标签名在各个所述层级下分别对应的编号,其中,所述N个层级包括第一层级,所述第一层级包括至少一个具备所述标签名的元素,所述第一元素的标签名在第一层级下对应的编号,指示所述第一元素在所述至少一个具备所述标签名的元素中的编号,所述确定单元,用于:Optionally, the identifier of the first element includes a path position of the first element, the path position includes path information and first position information, the path information indicates that the element path of the first element includes N levels, and N is an integer greater than 1, and the first position information indicates the number corresponding to the tag name of the first element in each of the levels, wherein the N levels include the first level, the first level includes at least one element with the tag name, and the number corresponding to the tag name of the first element under the first level indicates that the first element is in the at least one level. The number in the element with the tag name, the determination unit, for:
将所述第一位置信息中的第一编号,替换为预设路径通配符,得到第二位置信息,所述预设路径通配符指示忽略所述第一编号;replacing the first number in the first location information with a preset path wildcard to obtain second location information, the preset path wildcard indicating to ignore the first number;
根据所述第二位置信息和所述路径信息,确定所述若干个第二元素。The plurality of second elements are determined according to the second location information and the path information.
可选的,所述将所述第一位置信息中的第一编号,替换为预设路径通配符,得到第二位置信息,包括:Optionally, the first number in the first location information is replaced with a preset path wildcard to obtain the second location information, including:
按照预设顺序,依次将所述N个层级中各个层级分别对应在所述第一位置信息中的编号替换为预设路径通配符,得到与所述各个层级分别对应的所述第二位置信息,所述各个层级分别对应在所述第一位置信息中的编号包括所述第一编号。According to a preset sequence, sequentially replacing numbers in the first location information corresponding to each of the N levels with preset path wildcards to obtain the second location information corresponding to the respective levels, and the numbers corresponding to each level in the first location information include the first number.
可选的,所述第一元素的标识包括所述第一元素的第一层叠样式表选择器,所述确定单元,用于:Optionally, the identifier of the first element includes a first CSS selector of the first element, and the determining unit is configured to:
根据所述第一层叠样式表选择器,确定待选层叠样式表选择器;Determine a cascading style sheet selector to be selected according to the first cascading style sheet selector;
确定所述第一层叠样式表选择器和待选层叠样式表选择器之间的相对层叠样式表路径;determining a relative CSS path between the first CSS selector and the candidate CSS selector;
根据所述待选层叠样式表选择器和所述相对层叠样式表选择器,确定所述若干个第二元素。The plurality of second elements are determined according to the cascaded style sheet selector to be selected and the relative cascaded style sheet selector.
可选的,所述根据所述第一层叠样式表选择器,确定待选层叠样式表选择器,包括:Optionally, the determining the cascading style sheet selector to be selected according to the first cascading style sheet selector includes:
经过M轮迭代确定每轮迭代分别对应的所述待选层叠样式表选择器,所述M为大于1的整数;其中:After M rounds of iterations, the corresponding cascading style sheet selectors corresponding to each round of iterations are determined, and the M is an integer greater than 1; wherein:
在第1轮迭代时,将所述第一层叠样式表选择器的第一父层叠样式表选择器,确定为所述第1轮迭代所对应的所述待选层叠样式表选择器;During the first iteration, determining the first parent CSS selector of the first CSS selector as the candidate CSS selector corresponding to the first iteration;
在第i轮迭代时,将与第i-1轮迭代所确定的所述待选层叠样式表选择器具备继承关系的层叠样式表选择器,确定为所述第i轮迭代所对应的所述待选层叠样式表选择器,所述i为大于1且小于或者等于M的整数。In the i-th iteration, the cascading style sheet selector that has an inheritance relationship with the candidate cascaded style sheet selector determined in the i-1th iteration is determined as the candidate cascaded style sheet selector corresponding to the i-th iteration, and the i is an integer greater than 1 and less than or equal to M.
可选的,所述确定单元,用于:Optionally, the determining unit is used for:
响应于在所述埋点信息配置页面中触发的同类元素自动获取操作,根据所述第一元素的标识,确定所述待分析页面中的若干个第二元素。In response to the automatic acquisition operation of similar elements triggered on the buried point information configuration page, several second elements in the page to be analyzed are determined according to the identifier of the first element.
可选的,所述装置还包括:Optionally, the device also includes:
展示单元,用于展示所述若干个第二元素;a display unit, configured to display the plurality of second elements;
第二获取单元,用于响应于针对所述若干个元素中的所述至少一个第二元素触发的选择操作,获取所述至少一个第二元素的标识。The second acquiring unit is configured to acquire an identifier of the at least one second element in response to a selection operation triggered for the at least one second element among the plurality of elements.
可选的,所述目标配置信息,包括以下其中一项或者多项:Optionally, the target configuration information includes one or more of the following:
所述埋点数据采集对应的事件类型、所述埋点数据采集的触发条件以及埋点元素对应的属性值,所述埋点元素包括所述第一元素和所述至少一个第二元素。The event type corresponding to the buried point data collection, the trigger condition of the buried point data collection, and the attribute value corresponding to the buried point element, where the buried point element includes the first element and the at least one second element.
第四方面,本申请实施例提供了一种埋点处理装置,所述装置包括:In a fourth aspect, the embodiment of the present application provides a buried point processing device, the device comprising:
接收单元,用于接收服务端发送的埋点配置文件,所述埋点配置文件为以上第一方面任意一项中所述的埋点配置文件;The receiving unit is used to receive the buried point configuration file sent by the server, and the buried point configuration file is the buried point configuration file described in any one of the above first aspects;
获取单元,用于获取所述待分析页面中的目标事件,并将所述目标事件与所述埋点配置文件相匹配;An acquisition unit, configured to acquire a target event in the page to be analyzed, and match the target event with the buried point configuration file;
采集单元,用于在所述目标事件与所述埋点配置文件匹配成功的情况下,采集与所述目标事件对应的埋点数据。The collection unit is configured to collect buried point data corresponding to the target event when the target event is successfully matched with the buried point configuration file.
第五方面,本申请实施例提供了一种埋点处理设备,所述设备包括处理器和存储器;In the fifth aspect, the embodiment of the present application provides a buried point processing device, the device includes a processor and a memory;
所述处理器用于执行所述存储器中存储的指令,以使得所述设备执行如以上第一方面中任一项所述的方法,或者,以使得所述设备执行如以上第二方面所述的方法。The processor is configured to execute the instructions stored in the memory, so that the device executes the method described in any one of the first aspect above, or causes the device execute the method described in the second aspect above.
第六方面,本申请实施例提供了一种计算机可读存储介质,包括指令,所述指令指示设备执行如以上第一方面中任一项所述的方法,或者,所述指令指示设备执行如以上第二方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions, the instructions instructing the device to perform the method described in any one of the above first aspects, or the instructions instruct the device to perform the method described in the above second aspect.
第七方面,本申请实施例提供了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得计算机执行以上第一方面任一项所述的方法,或者,使得计算机执行以上第二方面所述的方法。In the seventh aspect, the embodiment of the present application provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute the method described in any one of the first aspect above, or causes the computer to execute the method described in the second aspect above.
与现有技术相比,本申请实施例具有以下优点:Compared with the prior art, the embodiment of the present application has the following advantages:
本申请实施例提供了一种埋点处理方法,在一个示例中,该方法可以应用于第一客户端。第一客户端可以展示埋点信息配置页面,埋点信息配置页面中可以展示有待分析页面中的第一元素。用户可以在埋点信息配置页面中针对所述第一元素触发选择操作,相应的,第一客户端可以响应于针对所述第一元素触发的选择操作,获取所述第一元素的标识。并进一步地,基于所述第一元素的标识,确定所述待分析页面中的若干个第二元素,所述第二元素为所述第一元素的同类元素,并进一步地,将所述第一元素的标识、所述若干个第二元素中至少一个第二元素的标识、以及在所述埋点信息配置页面中配置的目标配置信息,发送给服务端,以使得所述服务端基于所述第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息,生成与所述待分析页面对应的埋点配置文件,所述埋点配置文件用于对所述待分析页面进行埋点数据采集。由此可见,利用本方案,用户可以在埋点信息配置页面中选择第一元素,用户选择第一元素之后,第一客户端可以自动获得第一元素的若干个同类元素,以便于服务端基于第一元素、至少一个第二元素和在埋点信息配置页面中配置的目标配置信息,生成用于对所述待分析页面进行埋点数据采集的埋点配置文件。利用本方案,无需用户编写对应的软件代码,在可视化的埋点信息配置页面中进行相应配置即可,而且,对于同类元素,用户只需要在埋点信息配置页面中选择其中一个元素(第一元素)即可,有效降低了对待分析页面进行埋点分析的研发和运维成本。An embodiment of the present application provides a buried point processing method, and in an example, the method may be applied to a first client. The first client can display the buried point information configuration page, and the buried point information configuration page can display the first element in the page to be analyzed. The user may trigger a selection operation for the first element on the buried point information configuration page, and correspondingly, the first client may acquire the identifier of the first element in response to the selection operation triggered for the first element. And further, based on the identifier of the first element, determine several second elements in the page to be analyzed, the second element is a similar element of the first element, and further, send the identifier of the first element, the identifier of at least one second element among the plurality of second elements, and the target configuration information configured in the buried point information configuration page to the server, so that the server generates a buried point configuration file corresponding to the page to be analyzed based on the identifier of the first element, the identifier of the at least one second element, and the target configuration information, the buried point configuration file It is used to collect buried point data on the page to be analyzed. It can be seen that, using this solution, the user can select the first element in the buried point information configuration page. After the user selects the first element, the first client can automatically obtain several similar elements of the first element, so that the server can generate a buried point configuration file for collecting buried point data on the page to be analyzed based on the first element, at least one second element, and the target configuration information configured in the buried point information configuration page. With this solution, there is no need for the user to write corresponding software codes, and the corresponding configuration can be performed on the visualized buried point information configuration page. Moreover, for similar elements, the user only needs to select one of the elements (the first element) on the buried point information configuration page, which effectively reduces the research and development and operation and maintenance costs for the buried point analysis of the page to be analyzed.
相应的,第二客户端可以接收服务端发送的前述埋点配置文件。并利用所述埋点配置文件对所述待分析页面进行埋点分析。在一个具体的示例中,第二客户端课可以获取所述待分析页面中的目标事件,并将所述目标事件与所述埋点配置文件相匹配。若所述目标事件与所述埋点配置文件匹配成功,则第二客户端可以采集与所述目标事件对应的埋点数据。利用本方案,可以在消耗较少的研发和运维成本的情况下,实现对待分析页面的埋点分析。Correspondingly, the second client may receive the aforementioned buried point configuration file sent by the server. And use the buried point configuration file to perform buried point analysis on the page to be analyzed. In a specific example, the second client may obtain the target event in the page to be analyzed, and match the target event with the buried point configuration file. If the target event is successfully matched with the buried point configuration file, the second client may collect buried point data corresponding to the target event. Using this solution, the embedded analysis of the page to be analyzed can be realized while consuming less R&D and operation and maintenance costs.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or prior art. Obviously, the accompanying drawings in the following description are only some embodiments recorded in the application. For those of ordinary skill in the art, other accompanying drawings can also be obtained based on these drawings without creative work.
图1为本申请实施例提供的一种示例性应用场景示意图;FIG. 1 is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application;
图2为本申请实施例提供的一种埋点处理方法的流程示意图;FIG. 2 is a schematic flow diagram of a buried point processing method provided in an embodiment of the present application;
图3为本申请实施例提供的一种确定第二元素的方法的流程示意图;FIG. 3 is a schematic flowchart of a method for determining a second element provided in an embodiment of the present application;
图4为本申请实施例提供的一种待分析页面的DOM结构示意图;FIG. 4 is a schematic diagram of a DOM structure of a page to be analyzed provided in an embodiment of the present application;
图5为本申请实施例提供的又一种确定第二元素的方法的流程示意图;FIG. 5 is a schematic flowchart of another method for determining a second element provided by the embodiment of the present application;
图6为本申请实施例提供的一种待分析页面的DOM结构示意图;FIG. 6 is a schematic diagram of a DOM structure of a page to be analyzed provided in an embodiment of the present application;
图7为本申请实施例提供的一种埋点处理方法的流程示意图;FIG. 7 is a schematic flow chart of a buried point processing method provided in an embodiment of the present application;
图8为本申请实施例提供的一种埋点处理装置的结构示意图;FIG. 8 is a schematic structural diagram of a point-burying processing device provided in an embodiment of the present application;
图9为本申请实施例提供的又一种埋点处理装置的结构示意图。FIG. 9 is a schematic structural diagram of another buried point processing device provided in the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiments are only part of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
下面结合附图,详细说明本申请的各种非限制性实施方式。Various non-limiting implementations of the present application will be described in detail below with reference to the accompanying drawings.
示例性方法exemplary method
参见图1,图1为本申请实施例提供的一种示例性应用场景示意图,如图1所示,第一客户端110可以与服务端120进行交互,用户可以在第一客户端110上进行埋点配置信息的配置,相应的,服务端120基于用户在第一客户端110上配置的埋点配置信息,生成对应的埋点配置文件,并将该埋点配置文件下发给第二客户端130。第二客户端可以基于所述埋点配置文件,进行埋点数据的采集,并将采集的埋点数据上报给数据处理端140。Referring to FIG. 1, FIG. 1 is a schematic diagram of an exemplary application scenario provided by the embodiment of the present application. As shown in FIG. 1, the first client 110 can interact with the server 120, and the user can configure the configuration information of the buried point on the first client 110. The second client may collect buried point data based on the buried point configuration file, and report the collected buried point data to the data processing terminal 140 .
接下来,对本申请实施例提供的埋点处理方法进行介绍。Next, the buried point processing method provided in the embodiment of the present application is introduced.
参见图2,该图为本申请实施例提供的一种埋点处理方法的流程示意图。图2所示的埋点处理方法,可以应用于第一客户端。在本实施例中,所述方法例如可以包括以下步骤:S101-S103。Referring to FIG. 2 , this figure is a schematic flow chart of a buried point processing method provided by an embodiment of the present application. The buried point processing method shown in FIG. 2 may be applied to the first client. In this embodiment, the method may include the following steps, for example: S101-S103.
S101:响应于在埋点信息配置页面中针对第一元素触发的选择操作,获取所述第一元素的标识,所述第一元素为待分析页面中的元素。S101: Responding to a selection operation triggered for a first element on a buried point information configuration page, acquire an identifier of the first element, where the first element is an element in a page to be analyzed.
第一客户端可以展示有所述埋点信息配置页面,所述埋点信息配置页面,可以是埋点配置平台对应的页面。其中,用户可以利用埋点配置平台,采用可视化的方式配置待分析页面的埋点配置信息,以便于对待分析页面进行埋点数据采集。The first client may display the buried point information configuration page, and the buried point information configuration page may be a page corresponding to the buried point configuration platform. Among them, the user can use the buried point configuration platform to configure the buried point configuration information of the page to be analyzed in a visual way, so as to facilitate the buried point data collection of the page to be analyzed.
在本申请实施例中,所述埋点信息配置页面中可以展示有待分析页面中的至少一个页面元素,例如,所述埋点信息配置页面中展示有所述待分析页面,又如,所述埋点信息配置页面中展示有待分析页面中的至少一个支持埋点的页面元素,所述至少一个页面元素可以包括所述第一元素,或者说,所述第一元素可以是所述至少一个页面元素中的其中一个元素。In this embodiment of the present application, the buried point information configuration page may display at least one page element in the page to be analyzed, for example, the buried point information configuration page displays the page to be analyzed, and for another example, the buried point information configuration page displays at least one page element that supports buried points in the page to be analyzed, the at least one page element may include the first element, or in other words, the first element may be one of the at least one page elements.
在本申请实施例中,用户可以在所述埋点信息配置页面中针对所述第一元素触发选择操作。本申请实施例不具体限定用户针对第一元素触发选择操作的具体实现方式。例如,用户可以在所述埋点信息配置页面中圈选所述第一元素,又如,所述用户可以在所述埋点信息配置页面中针对第一元素触发双击操作,等等,此处不一一列举说明。In this embodiment of the present application, the user may trigger a selection operation for the first element on the buried point information configuration page. The embodiment of the present application does not specifically limit the specific implementation manner in which the user triggers the selection operation for the first element. For example, the user can circle the first element in the buried point information configuration page, and for another example, the user can trigger a double-click operation on the first element in the buried point information configuration page, etc., which are not listed here.
用户针对所述第一元素触发选择操作之后,第一客户端可以响应于针对所述第一元素触发的选择操作,获取所述第一元素的标识。其中,第一元素的标识用于唯一标识所述待分析页面中的所述第一元素。After the user triggers a selection operation on the first element, the first client may acquire the identifier of the first element in response to the selection operation triggered on the first element. Wherein, the identifier of the first element is used to uniquely identify the first element in the page to be analyzed.
在一个示例中,所述第一元素的标识,可以是所述第一元素的路径位置(pathposition)。所述路径位置可以包括路径信息和第一位置信息。其中:In an example, the identifier of the first element may be a path position of the first element. The route location may include route information and first location information. in:
所述路径信息用于指示所述第一元素的元素路径,在一个示例中,所述第一元素的元素路径可以包括N个层级,N为大于1的整数。例如,所述第一元素的元素路径为:/body/.../tbody/tr/td/div/span,其中,span为第一元素的标签名(tagname)。The path information is used to indicate the element path of the first element. In an example, the element path of the first element may include N levels, where N is an integer greater than 1. For example, the element path of the first element is: /body/.../tbody/tr/td/div/span, wherein span is the tag name (tagname) of the first element.
第一位置信息用于指示所述第一元素的标签名在各个层级下分别对应的编号。以所述多个层级中的第一层级为例,所述第一层级下可以包括至少一个具备所述标签名的元素,则所述第一元素的标签名在所述第一层级下对应的编号,可以是所述第一元素在所述第一层级下所包括至少一个具备所述标签名的元素中的编号。举例说明:若第一层级下仅包括一个具备所述标签名的元素,即:第一层级下没有其它元素与第一元素的标签名相同,则所述第一元素的标签名在所述第一层级下对应的编号可以是0。再举例说明:若第一层级下包括两个具备所述标签名的元素,即:第一层级下还有另外一个元素与第一元素的标签名相同,则所述第一元素的标签名在所述第一层级下对应的编号可以是0或1。在所述第一元素的元素路径为:/body/.../tbody/tr/td/div/span的情况下,所述第一位置信息例如可以是:['0',...,'0','1','3','0','0']。The first position information is used to indicate the numbers corresponding to the tag names of the first element at each level. Taking the first level among the plurality of levels as an example, at least one element with the tag name may be included under the first level, and the corresponding number of the tag name of the first element under the first level may be the number of the first element included in at least one element with the tag name under the first level. For example: if there is only one element with the tag name under the first level, that is, there is no other element under the first level with the same tag name as the first element, then the number corresponding to the tag name of the first element under the first level can be 0. Another example: if the first level includes two elements with the tag name, that is, there is another element under the first level with the same tag name as the first element, then the number corresponding to the tag name of the first element under the first level can be 0 or 1. In the case where the element path of the first element is: /body/.../tbody/tr/td/div/span, the first position information may be, for example: ['0',..., '0', '1', '3', '0', '0'].
在又一个示例中,所述第一元素的标识,可以是所述第一元素的第一层叠样式表选择器(Cascading Style Sheets Selector,CSS Selector)。In yet another example, the identifier of the first element may be a first Cascading Style Sheets Selector (Cascading Style Sheets Selector, CSS Selector) of the first element.
在一个示例中,考虑到网页页面而言,有的网页页面的页面元素的标识采用路径位置更为合适,而有的网页页面的元素的标识则采用CSS Selector更为合适。因此,在一个示例中,第一客户端可以获取所述第一元素的路径位置和所述第一CSS Selector,并展示所述第一元素的路径位置和所述第一CSS Selector,由用户从所述第一元素的路径位置和所述第一CSS Selector中选择出其中一个作为所述第一元素的标识。In one example, considering a web page, it is more appropriate to use a path position for the identification of some web page elements, and it is more appropriate to use a CSS Selector for the identification of some web page elements. Therefore, in an example, the first client may obtain the path position of the first element and the first CSS Selector, and display the path position of the first element and the first CSS Selector, and the user may select one of the path position of the first element and the first CSS Selector as the identifier of the first element.
S102:根据所述第一元素的标识,确定所述待分析页面中的若干个第二元素,所述第二元素为所述第一元素的同类元素。S102: Determine several second elements in the page to be analyzed according to the identifier of the first element, where the second elements are elements of the same type as the first element.
在本申请实施例中,考虑到对于待分析页面而言,其页面中可以包括很多同类元素,而在一些场景中,用户对同类元素的埋点需求是相同或者类似的。因此,在本申请实施例中,为了提升用户进行设置埋点配置信息的效率,在用户针对第一元素触发选择操作之后,第一客户端可以自动根据第一元素的标识,获取待分析页面中第一元素的同类元素,得到若干个第二元素,而无需用户在所述埋点信息配置页面中逐一针对第一元素的同类元素触发选择操作。In the embodiment of the present application, it is considered that the page to be analyzed may include many similar elements, and in some scenarios, users have the same or similar embedded requirements for similar elements. Therefore, in this embodiment of the application, in order to improve the efficiency of the user in setting buried point configuration information, after the user triggers the selection operation for the first element, the first client can automatically obtain the similar elements of the first element in the page to be analyzed according to the identifier of the first element, and obtain several second elements, without requiring the user to trigger the selection operation for the similar elements of the first element one by one in the buried point information configuration page.
在一个示例中,所述第一客户端可以默认开启“同类元素自动获取”功能,对于这种情况,所述第一客户端在获取第一元素的标识之后,即可根据所述第一元素的标识,确定所述若干个第二元素。In an example, the first client may enable the "automatically obtain similar elements" function by default. In this case, after obtaining the identifier of the first element, the first client may determine the several second elements according to the identifier of the first element.
在又一个示例中,可以由用户确定是否开启“同类元素自动获取”功能。在一个具体的示例中,用户可以在所述埋点信息配置页面中触发同类元素自动获取操作,相应的,第一客户端在获取所述第一元素的标识之后,可以响应于所述同类元素自动获取操作,进一步确定所述若干个第二元素。其中,用户在所述埋点信息配置页面中触发了同类元素自动获取操作,可以理解成用户开启了前述“同类元素自动获取”功能。In yet another example, the user may determine whether to enable the "automatically obtain similar elements" function. In a specific example, the user can trigger the automatic acquisition operation of similar elements on the buried point information configuration page, and correspondingly, after obtaining the identifier of the first element, the first client can respond to the automatic acquisition operation of similar elements to further determine the plurality of second elements. Wherein, the user triggers the automatic acquisition operation of similar elements in the buried point information configuration page, which can be understood as the user enabling the aforementioned "automatic acquisition of similar elements" function.
如前所述,第一元素的标识,可以是第一元素的路径位置,也可以第一元素的第一CSS Selector,当所述第一元素的标识为第一元素的路径位置时,S102的具体实现可以参考下文对于S1021-S1022的描述部分,此处不做详细描述。当所述第一元素的标识为第一元素的第一CSS Selector时,S102的具体实现可以参考下文对于S1023-S1025的具体描述部分,此处不做详细描述。As mentioned above, the identifier of the first element can be the path position of the first element, or the first CSS Selector of the first element. When the identifier of the first element is the path position of the first element, the specific implementation of S102 can refer to the description of S1021-S1022 below, and no detailed description is given here. When the identifier of the first element is the first CSS Selector of the first element, for the specific implementation of S102, reference may be made to the specific description of S1023-S1025 below, which will not be described in detail here.
S103:将所述第一元素的标识、所述若干个第二元素中至少一个第二元素的标识、以及在所述埋点信息配置页面中配置的目标配置信息,发送给服务端,以使得所述服务端基于所述第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息,生成与所述待分析页面对应的埋点配置文件,所述埋点配置文件用于对所述待分析页面进行埋点数据采集。S103: Send the identifier of the first element, the identifier of at least one second element among the plurality of second elements, and the target configuration information configured in the buried point information configuration page to the server, so that the server generates a buried point configuration file corresponding to the page to be analyzed based on the identifier of the first element, the identifier of the at least one second element, and the target configuration information, and the buried point configuration file is used for collecting buried point data on the page to be analyzed.
在一个示例中,所述第一客户端确定所述若干个第二元素之后,可以展示所述若干个第二元素,并由用户从所述若干个第二元素中选择出实际需要埋点的至少一个第二元素,从而满足用户的个性化埋点需求。In an example, after the first client determines the number of second elements, the number of second elements can be displayed, and the user can select at least one second element that actually needs to be buried from the number of second elements, so as to meet the user's personalized need for point tracking.
如前所述,所述埋点信息配置页面中可以展示有待分析页面中的至少一个页面元素。在一个示例中,所述第一客户端展示所述若干个元素在具体实现时,可以以特定样式展示所述若干个第二元素,其中,所述特定样式不同于所述至少一个页面元素中的其它页面元素的展示样式。例如,在所述若干个第二元素的外围展示选中标识(例如方框)。相应的,用户可以从以特定样式展示所述若干个第二元素中选择出所述至少一个第二元素。As mentioned above, at least one page element in the page to be analyzed can be displayed on the buried point information configuration page. In an example, when displaying the several elements by the first client, the several second elements may be displayed in a specific style, where the specific style is different from the display styles of other page elements in the at least one page element. For example, a selection mark (such as a box) is displayed on the periphery of the plurality of second elements. Correspondingly, the user may select the at least one second element from the several second elements displayed in a specific style.
在又一个示例中,所述第一客户端可以以下拉菜单的方式,展示至少一项同类元素组合方式,其中,每一种组合方式下可以包括至少一个第二元素。在一个具体的示例中,用户可以在同类元素输入区触发第一操作(例如点击操作),则第一客户端可以响应于所述第一操作,以下拉菜单的方式,展示至少一种同类元素组合(例如展示至少一种同类元素组合的名称)。用户可以针对所述至少一种同类元素组合中的第一同类元素组合触发第二操作(例如悬停操作或者单击操作),则所述第一客户端可以以特定样式展示所述第一同类元素组合所包括的第二元素,以便于用户确定第一同类元素组合包括哪些第二元素。相应的,用户可以从下拉菜单中选择一种或者多种组合方式,从而选择所述至少一个第二元素。In yet another example, the first client may display at least one combination of elements of the same type in the form of a pull-down menu, wherein each combination may include at least one second element. In a specific example, the user can trigger a first operation (such as a click operation) in the input area of similar elements, and then the first client can respond to the first operation to display at least one combination of similar elements (for example, display the name of at least one combination of similar elements) in the form of a pull-down menu. The user can trigger a second operation (such as a hovering operation or a click operation) on the first combination of elements of the same kind in the at least one combination of similar elements, and then the first client can display the second elements included in the first combination of similar elements in a specific style, so that the user can determine which second elements are included in the first combination of similar elements. Correspondingly, the user may select one or more combinations from the pull-down menu, thereby selecting the at least one second element.
关于第一同类元素组合,需要说明的是,第一同类元素组合中可以包括一个或者多个第二元素。若所述若干个第二元素是采用下文提及的S1021-S1022确定的,则所述第一同类元素组合中的第二元素,可以是根据某一层级对应的第二位置信息确定的。当所述若干个第二元素是采用下文提及的S1023-S1025确定的,则所述第一同类元素组合中的第二元素,可以是根据某一轮迭代所确定的待选CSS Selector确定的。Regarding the first combination of similar elements, it should be noted that the first combination of similar elements may include one or more second elements. If the several second elements are determined by using S1021-S1022 mentioned below, the second elements in the first combination of similar elements may be determined according to the second position information corresponding to a certain level. When the several second elements are determined by using S1023-S1025 mentioned below, the second elements in the first combination of elements of the same type may be determined according to the candidate CSS Selector determined in a certain round of iterations.
第一客户端确定所述至少一个第二元素之后,可以获取所述第二元素的标识,关于所述第二元素的标识,可以参考上文对于第一元素的标识的描述部分,此处不做重复描述。After the first client determines the at least one second element, it may acquire the identifier of the second element. For the identifier of the second element, refer to the above description of the identifier of the first element, and the description is not repeated here.
在本申请实施例中,用户除了可以在所述埋点信息配置页面中选择第一元素之外,还可以在所述埋点信息配置页面中输入其它配置信息。在一个示例中,用户还可以在所述埋点信息配置页面中输入目标配置信息。目标配置信息为对待分析页面进行埋点数据采集所使用的其它配置信息,相应的,所述第一客户端可以获取所述目标配置信息。In this embodiment of the application, in addition to selecting the first element on the buried point information configuration page, the user can also input other configuration information on the buried point information configuration page. In an example, the user may also input target configuration information on the buried point information configuration page. The target configuration information is other configuration information used for collecting embedded data on the page to be analyzed. Correspondingly, the first client can obtain the target configuration information.
作为一个示例,所述目标配置信息,可以包括埋点数据采集对应的事件类型、所述埋点数据采集的触发条件以及埋点元素对应的属性值中的其中一项或者多项。其中:As an example, the target configuration information may include one or more of the event type corresponding to the buried point data collection, the trigger condition of the buried point data collection, and the attribute value corresponding to the buried point element. in:
事件类型可以包括任意一种在网页页面中发生的事件类型,例如,所述事件类型可以包括点击事件、曝光事件、浏览事件等等;The event type may include any event type that occurs in a web page, for example, the event type may include click event, exposure event, browsing event, etc.;
触发条件可以是进行埋点数据采集所需要满足的条件。例如,触发条件可以包括:采集特定统一资源定位器(uniform resource locator,URL)对应的数据;又如,触发条件可以包括:在停留时间超过预设时间阈值时才采集对应的埋点数据,等等,此处不一一列举说明。The trigger condition may be a condition that needs to be met for the buried point data collection. For example, the triggering condition may include: collecting data corresponding to a specific uniform resource locator (uniform resource locator, URL); another example, the triggering condition may include: collecting the corresponding buried point data when the dwell time exceeds a preset time threshold, etc., which are not listed here.
埋点元素对应的属性值,可以根据实际业务场景确定,所述埋点元素对应的属性值。在一个具体的示例中,所述埋点元素对应的属性值,可以包括埋点元素对应的文本、预设的系统变量以及业务信息。本申请实施例不具体限定所述预设的系统变量,预设的系统变量包括但不限于:时间戳、文本标题、以及页面URL中的其中一项或者多项。业务信息可以通过业务接口获取,例如,可以获取通过业务接口发送或者接收的业务请求,根据所述业务请求中包括的请求方法、URL、请求体、响应体等数据确定为所述业务信息。The attribute value corresponding to the buried point element may be determined according to the actual business scenario, and the attribute value corresponding to the buried point element. In a specific example, the attribute value corresponding to the buried point element may include text corresponding to the buried point element, preset system variables, and business information. The embodiment of the present application does not specifically limit the preset system variables, and the preset system variables include but are not limited to: one or more of timestamp, text title, and page URL. Service information can be obtained through the service interface, for example, a service request sent or received through the service interface can be obtained, and determined as the service information according to the request method, URL, request body, response body and other data included in the service request.
第一客户端在获取第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息之后,可以将所述第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息发送给服务端。服务端接收到所述第一客户端发送的所述第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息之后,可以根据所述第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息,生成与所述待分析页面对应的埋点配置文件,所述埋点配置文件用于对所述待分析页面进行埋点数据采集。在一个示例中,所述服务端可以根据所述第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息,生成特定格式的埋点配置文件,所述埋点配置文件包括所述第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息。After obtaining the identifier of the first element, the identifier of the at least one second element, and the target configuration information, the first client may send the identifier of the first element, the identifier of the at least one second element, and the target configuration information to the server. After receiving the identifier of the first element, the identifier of the at least one second element, and the target configuration information sent by the first client, the server may generate a buried point configuration file corresponding to the page to be analyzed according to the identifier of the first element, the identifier of the at least one second element, and the target configuration information, and the buried point configuration file is used to collect buried point data for the page to be analyzed. In an example, the server may generate a buried point configuration file in a specific format according to the identifier of the first element, the identifier of the at least one second element, and the target configuration information, and the buried point configuration file includes the identifier of the first element, the identifier of the at least one second element, and the target configuration information.
在一个示例中,所述服务端生成所述埋点配置文件之后,可以将所述埋点配置文件发送给第二客户端,以便于第二客户端利用所述埋点配置文件对待分析页面进行埋点数据采集。In an example, after the server generates the buried point configuration file, it may send the buried point configuration file to the second client, so that the second client uses the buried point configuration file to collect buried point data on the page to be analyzed.
通过以上描述可知,利用本方案,无需用户编写对应的软件代码,在可视化的埋点信息配置页面中进行相应配置即可,而且,对于同类元素,用户只需要在埋点信息配置页面中选择其中一个元素(第一元素)即可,有效降低了对待分析页面进行埋点分析的研发和运维成本。From the above description, we can see that with this solution, users do not need to write corresponding software codes, and can configure the corresponding configuration in the visualized buried point information configuration page. Moreover, for similar elements, the user only needs to select one of the elements (the first element) in the buried point information configuration page, which effectively reduces the research and development and operation and maintenance costs for the buried point analysis of the page to be analyzed.
接下来,结合图3至图6,对S102的两种实现方式进行介绍。Next, two implementations of S102 are introduced with reference to FIG. 3 to FIG. 6 .
参见图3,该图为本申请实施例提供的一种确定第二元素的方法的流程示意图。图3所示的方法,例如可以包括如下S1021-S1022。Referring to FIG. 3 , this figure is a schematic flow chart of a method for determining a second element provided by an embodiment of the present application. The method shown in FIG. 3 may include, for example, the following S1021-S1022.
S1021:将所述第一位置信息中的第一编号,替换为预设路径通配符,得地第二位置信息,所述预设路径通配符指示忽略所述第一编号。S1021: Replace the first number in the first location information with a preset path wildcard to obtain second location information, where the preset path wildcard indicates that the first number is ignored.
如前所述,第一元素的元素路径包括N个层级,因此,所述第一位置信息中包括N个编号,第一编号可以是所述N个编号中的其中一个编号。As mentioned above, the element path of the first element includes N levels, therefore, the first location information includes N numbers, and the first number may be one of the N numbers.
在一个示例中,可以从所述N个编号中随机选择一个编号作为所述第一编号。In an example, one number may be randomly selected from the N numbers as the first number.
在又一个示例中,为了尽可能确定出更多第一元素的同类元素,可以按照预设顺序,依次将所述N个层级中各个层级分别对应在所述第一位置信息中的编号替换为预设路径通配符,得到与所述各个层级分别对应的所述第二位置信息。本申请实施例不具体限定所述预设顺序,所述预设顺序可以是由低层级到高层级的顺序,也可以是由高层级到低层级的顺序。In yet another example, in order to determine as many elements of the same type as the first element as much as possible, the numbers in the first position information corresponding to each of the N levels can be replaced with preset path wildcards in sequence according to a preset order, so as to obtain the second position information corresponding to each level. The embodiment of the present application does not specifically limit the preset order, and the preset order may be from a lower level to a higher level, or may be from a higher level to a lower level.
在本申请实施例中,预设路径通配符用于指示忽略所述第一编号,在一个示例中,所述预设通配符可以是字符“*”。In this embodiment of the present application, a preset path wildcard is used to indicate that the first number is ignored. In an example, the preset wildcard may be a character "*".
S1022:根据所述第二位置信息和所述路径层级,确定所述若干个第二元素。S1022: Determine the plurality of second elements according to the second location information and the path level.
确定所述第二位置信息和所述路径层级之后,可以根据所述第二位置信息和所述路径层级,确定所述若干个第二元素。具体地,可以遍历所述待分析页面中的元素,并将元素的元素路径为与所述第一元素的元素路径相同、且位置信息为所述第二位置信息的元素,确定为第二元素。After the second position information and the path level are determined, the plurality of second elements may be determined according to the second position information and the path level. Specifically, the elements in the page to be analyzed may be traversed, and an element whose element path is the same as that of the first element and whose location information is the second location information is determined as the second element.
关于S1021-S1022,现结合图4进行举例说明。With regard to S1021-S1022, an example is now described with reference to FIG. 4 .
如图4所示,图4为本申请实施例提供的一种待分析页面的DOM结构示意图。所述第一元素对应节点401,第一元素的路径信息为:/body/.../tbody/tr/td/div/span,第一位置信息为['0',...,'0','1','3','0','0']。则按照由低层级到高层级的顺序,依次获得各个层级分别对应的第二位置信息,如图4所示,可以得到第二位置信息410、420、430、440、450和460,并且,根据各个层级分别对应的位置信息和所述路径信息,得到至少一个第二元素。As shown in FIG. 4 , FIG. 4 is a schematic diagram of a DOM structure of a page to be analyzed provided in an embodiment of the present application. The first element corresponds to node 401, the path information of the first element is: /body/.../tbody/tr/td/div/span, and the first position information is ['0',..., '0', '1', '3', '0', '0']. Then, according to the order from the lower level to the higher level, the second location information corresponding to each level is sequentially obtained. As shown in FIG.
参见图5,该图为本申请实施例提供的又一种确定第二元素的方法的流程示意图。图5所示的方法,例如可以包括如下S1023-S1025。Referring to FIG. 5 , this figure is a schematic flowchart of another method for determining the second element provided by the embodiment of the present application. The method shown in FIG. 5 may include, for example, the following steps S1023-S1025.
S1023:根据第一CSS Selector,确定待选CSS Selector。S1023: Determine a CSS Selector to be selected according to the first CSS Selector.
在一个示例中,可以将与所述第一CSS Selector具备继承关系的CSS Selector,确定为所述待选CSS Selector。此处提及的与所述第一CSS Selector具备继承关系的CSSSelector,指的是与所述第一CSS Selector具备直接或者间接父子关系的CSS Selector。例如,可以将所述第一CSS Selector的第一父CSS Selector,确定为所述待选CSSSelector。又如,可以将所述第一父CSS Selector的第二父CSS Selector、或者所述第二父CSS Selector的第三父CSS Selector,确定为所述待选CSS Selector。In an example, a CSS Selector having an inheritance relationship with the first CSS Selector may be determined as the candidate CSS Selector. The CSS Selector that has an inheritance relationship with the first CSS Selector mentioned here refers to the CSS Selector that has a direct or indirect parent-child relationship with the first CSS Selector. For example, the first parent CSS Selector of the first CSS Selector may be determined as the candidate CSS Selector. As another example, the second parent CSS Selector of the first parent CSS Selector, or the third parent CSS Selector of the second parent CSS Selector may be determined as the candidate CSS Selector.
在又一个示例中,为了尽可能确定出更多第一元素的同类元素,可以经过M轮迭代确定每轮迭代分别对应的所述待选CSS Selector。M为大于1的整数。其中:In yet another example, in order to determine as many elements of the same type as the first element as much as possible, M rounds of iterations may be used to determine the candidate CSS Selectors corresponding to each round of iterations. M is an integer greater than 1. in:
在第1轮迭代时,可以将所述第一CSS Selector的父CSS Selector,确定为第一轮迭代对应的待选CSS Selector。In the first round of iteration, the parent CSS Selector of the first CSS Selector may be determined as the candidate CSS Selector corresponding to the first round of iteration.
在第i轮迭代时,可以根据第i-1轮迭代所确定的待选CSS Selector,确定所述第i轮迭代对应的待选CSS Selector。在一个示例中,可以将与所述第i-1轮迭代对应的待选CSS Selector具备继承关系的CSS Selector,确定为所述第i轮迭代对应的CSS Selector。其中,i为大于1且小于或者等于M的整数。In the i-th iteration, the candidate CSS Selector corresponding to the i-th iteration may be determined according to the candidate CSS Selector determined in the i-1 iteration. In an example, the CSS Selector that has an inheritance relationship with the CSS Selector to be selected corresponding to the i-1th iteration may be determined as the CSS Selector corresponding to the i-th iteration. Wherein, i is an integer greater than 1 and less than or equal to M.
S1024:确定所述第一CSS Selector和所述待选CSS Selector之间的相对CSSSelector。S1024: Determine a relative CSS Selector between the first CSS Selector and the candidate CSS Selector.
确定所述待选CSS Selector之后,可以根据所述第一CSS Selector和所述待选CSS Selector,进行相对路径的计算,得到所述相对CSS Selector,其中,所述相对CSSSelector,也可以被称为相对片段Selector。After the candidate CSS Selector is determined, a relative path may be calculated according to the first CSS Selector and the candidate CSS Selector to obtain the relative CSS Selector, wherein the relative CSS Selector may also be called a relative segment selector.
S1025:根据所述待选CSS Selector和所述相对CSS Selector,确定所述若干个第二元素。S1025: Determine the plurality of second elements according to the CSS Selector to be selected and the relative CSS Selector.
确定所述相对CSS Selector之后,可以根据所述待选CSS Selector和所述相对CSS Selector,确定出与所述待选CSS Selector之间的相对路径为所述相对CSS Selector的至少一个第二CSS Selector,并将所述至少一个第二CSS Selector对应的元素,确定为第二元素,从而得到所述若干个第二元素。After the relative CSS Selector is determined, according to the CSS Selector to be selected and the relative CSS Selector, determine that the relative path between the CSS Selector to be selected is at least one second CSS Selector of the relative CSS Selector, and determine the element corresponding to the at least one second CSS Selector as the second element, thereby obtaining the plurality of second elements.
关于S1023-S1025,现结合图6进行举例说明,图6为同样示出了一种待分析页面的DOM结构示意图。With regard to S1023-S1025, an example is now described with reference to FIG. 6, which also shows a schematic diagram of a DOM structure of a page to be analyzed.
如图6所示,第一元素为对应图6所示的节点601,在第1轮迭代时,将第一CSSSelector的父CSS Selector确定为待选CSS Selector,相应的,基于第1轮迭代对应的待选CSS Selector确定第二元素。其中,第一CSS Selector的父CSS Selector对应图6所示的节点610。As shown in FIG. 6, the first element corresponds to the node 601 shown in FIG. 6. In the first round of iteration, the parent CSS Selector of the first CSSSelector is determined as the candidate CSS Selector. Correspondingly, the second element is determined based on the candidate CSS Selector corresponding to the first round of iteration. Wherein, the parent CSS Selector of the first CSS Selector corresponds to the node 610 shown in FIG. 6 .
第在第2轮迭代时,根据节点610的CSS Selector,将节点620对应的CSS Selector确定为待选CSS Selector,相应的,基于第2轮迭代对应的待选CSS Selector确定第二元素。In the second round of iteration, according to the CSS Selector of node 610, the CSS Selector corresponding to node 620 is determined as the CSS Selector to be selected, and correspondingly, the second element is determined based on the CSS Selector to be selected corresponding to the second iteration.
接下来,对第二服务端对待分析页面进行埋点数据采集的具体实现方式进行介绍。参见图7,该图为本申请实施例提供的一种埋点处理方法的流程示意图。图7所示的方法,可以应用于第二客户端。在一个示例中,所述方法例如可以包括如下S201-S203。Next, the specific implementation method of the second server to collect embedded data on the page to be analyzed is introduced. Referring to FIG. 7 , this figure is a schematic flow chart of a buried point processing method provided by an embodiment of the present application. The method shown in FIG. 7 may be applied to the second client. In an example, the method may include, for example, the following S201-S203.
S201:接收服务端发送的埋点配置文件。S201: Receive the buried point configuration file sent by the server.
关于所述埋点配置文件,可以参考前文的相关描述部分,此处不做重复描述。For the buried point configuration file, you can refer to the related description above, and the description will not be repeated here.
S202:获取所述待分析页面中的目标事件,并将所述目标事件与所述埋点配置文件相匹配。S202: Obtain a target event in the page to be analyzed, and match the target event with the buried point configuration file.
S203:在所述目标事件与所述埋点配置文件匹配成功的情况下,采集与所述目标事件对应的埋点数据。S203: In a case where the target event is successfully matched with the buried point configuration file, collect buried point data corresponding to the target event.
在一个示例中,所述第二客户端可以利用相应的事件获取实例,获取所述待分析页面中发生的事件。在获取到所述待分析页面中的目标事件之后,可以将所述目标事件与所述埋点配置文件相匹配。在一个示例中,所述第二客户端可以逐一遍历所述埋点配置文件中的配置信息,并将该配置信息与所述目标事件相匹配。作为一个示例,将配置信息中的埋点数据采集对应的事件类型与所述目标事件相匹配。在配置信息中包括的事件类型包括所述目标事件的事件类型,则可以进一步将确定所述配置信息中包括的触发条件是否满足,在所述触发条件满足的情况下,可以确定所述目标事件与所述埋点配置文件匹配成功。反之,可以确定所述目标事件与所述埋点配置文件匹配失败。In an example, the second client may use a corresponding event acquisition instance to acquire events occurring in the page to be analyzed. After the target event in the page to be analyzed is acquired, the target event can be matched with the buried point configuration file. In an example, the second client may traverse the configuration information in the buried point configuration file one by one, and match the configuration information with the target event. As an example, the event type corresponding to the buried point data collection in the configuration information is matched with the target event. If the event type included in the configuration information includes the event type of the target event, it may be further determined whether the trigger condition included in the configuration information is met, and if the trigger condition is met, it may be determined that the target event matches the buried point configuration file successfully. On the contrary, it may be determined that the matching between the target event and the buried point configuration file fails.
在确定所述目标事件与所述埋点配置文件匹配成功之后,可以进一步采集与所述目标事件对应的埋点数据,在一个示例中,可以根据所述埋点配置文件中与所述目标事件对应的埋点元素的属性值,确定需要采集的埋点数据,并进一步采集所述埋点数据。After determining that the target event is successfully matched with the buried point configuration file, the buried point data corresponding to the target event may be further collected. In an example, the buried point data to be collected may be determined according to the property value of the buried point element corresponding to the target event in the buried point configuration file, and the buried point data may be further collected.
在一个示例中,所述第二客户端采集所述埋点数据之后,可以将所述埋点数据上报给其它数据处理端,由所述数据处理端对所述埋点数据进行处理。此处提及的数据处理端,可以是用于存储数据的数据仓库,也可以是对数据进行分析的服务端,本申请实施例不做具体限定。In an example, after the second client collects the buried point data, it may report the buried point data to another data processing end, and the data processing end processes the buried point data. The data processing end mentioned here may be a data warehouse for storing data, or a server end for analyzing data, which is not specifically limited in this embodiment of the present application.
接下来,以曝光事件为例,介绍S202-S203的具体实现方式。Next, the specific implementation of S202-S203 will be introduced by taking the exposure event as an example.
第二客户端利用第一回调函数循环遍历埋点配置文件中的埋点信息,埋点信息中包括第一元素的标识,并解析第一元素对应的DOM实例,根据第二回调函数确定第一元素对应的DOM实例是否曝光,若第一元素对应的DOM实例已经曝光,则继续判断第一元素对应的其它触发条件是否满足,例如,确定URL、曝光频率、曝光时长以及曝光比例等其中一个或者多个因素是否满足,在其它触发条件满足的情况下,根据第一元素的属性值,采集与第一元素对应的数据,并将该数据上报给数据处理端。The second client uses the first callback function to cycle through the buried point information in the buried point configuration file. The buried point information includes the identifier of the first element, and parses the DOM instance corresponding to the first element, and determines whether the DOM instance corresponding to the first element is exposed according to the second callback function. If the DOM instance corresponding to the first element has been exposed, it continues to judge whether other trigger conditions corresponding to the first element are met. data, and report the data to the data processing end.
示例性设备exemplary device
基于以上实施例提供的方法,本申请实施例还提供了一种装置,以下结合附图介绍该装置。Based on the methods provided in the above embodiments, the embodiments of the present application also provide a device, which will be described below with reference to the accompanying drawings.
参见图8,该图为本申请实施例提供的一种埋点处理装置的结构示意图。图8所示的装置800包括:第一获取单元801、确定单元802和发送单元803。Referring to FIG. 8 , this figure is a schematic structural diagram of a dot-burying processing device provided by an embodiment of the present application. The apparatus 800 shown in FIG. 8 includes: a first acquiring unit 801 , a determining unit 802 and a sending unit 803 .
第一获取单元801,用于响应于在埋点信息配置页面中针对第一元素触发的选择操作,获取所述第一元素的标识,所述第一元素为待分析页面中的元素;The first acquiring unit 801 is configured to acquire the identifier of the first element in response to a selection operation triggered for the first element in the buried point information configuration page, and the first element is an element in the page to be analyzed;
确定单元802,用于根据所述第一元素的标识,确定所述待分析页面中的若干个第二元素,所述第二元素为所述第一元素的同类元素;A determining unit 802, configured to determine several second elements in the page to be analyzed according to the identification of the first element, the second elements being similar elements of the first element;
发送单元803,用于将所述第一元素的标识、所述若干个第二元素中至少一个第二元素的标识、以及在所述埋点信息配置页面中配置的目标配置信息,发送给服务端,以使得所述服务端基于所述第一元素的标识、所述至少一个第二元素的标识以及所述目标配置信息,生成与所述待分析页面对应的埋点配置文件,所述埋点配置文件用于对所述待分析页面进行埋点数据采集。The sending unit 803 is configured to send the identifier of the first element, the identifier of at least one second element among the plurality of second elements, and the target configuration information configured in the buried point information configuration page to the server, so that the server generates a buried point configuration file corresponding to the page to be analyzed based on the identifier of the first element, the identifier of the at least one second element, and the target configuration information, and the buried point configuration file is used for collecting buried point data on the page to be analyzed.
可选的,所述第一元素的标识包括所述第一元素的路径位置,所述路径位置包括路径信息以及第一位置信息,所述路径信息指示所述第一元素的元素路径包括N个层级,N为大于1的整数,所述第一位置信息指示所述第一元素的标签名在各个所述层级下分别对应的编号,其中,所述N个层级包括第一层级,所述第一层级包括至少一个具备所述标签名的元素,所述第一元素的标签名在第一层级下对应的编号,指示所述第一元素在所述至少一个具备所述标签名的元素中的编号,所述确定单元802,用于:Optionally, the identifier of the first element includes a path position of the first element, the path position includes path information and first position information, the path information indicates that the element path of the first element includes N levels, and N is an integer greater than 1, and the first position information indicates the number corresponding to the tag name of the first element in each of the levels, wherein the N levels include the first level, the first level includes at least one element with the tag name, and the number corresponding to the tag name of the first element under the first level indicates that the first element is in the at least one level. The number in the element with the tag name, the determining unit 802 is configured to:
将所述第一位置信息中的第一编号,替换为预设路径通配符,得到第二位置信息,所述预设路径通配符指示忽略所述第一编号;replacing the first number in the first location information with a preset path wildcard to obtain second location information, the preset path wildcard indicating to ignore the first number;
根据所述第二位置信息和所述路径信息,确定所述若干个第二元素。The plurality of second elements are determined according to the second location information and the path information.
可选的,所述将所述第一位置信息中的第一编号,替换为预设路径通配符,得到第二位置信息,包括:Optionally, the first number in the first location information is replaced with a preset path wildcard to obtain the second location information, including:
按照预设顺序,依次将所述N个层级中各个层级分别对应在所述第一位置信息中的编号替换为预设路径通配符,得到与所述各个层级分别对应的所述第二位置信息,所述各个层级分别对应在所述第一位置信息中的编号包括所述第一编号。According to a preset sequence, sequentially replacing numbers in the first location information corresponding to each of the N levels with preset path wildcards to obtain the second location information corresponding to the respective levels, and the numbers corresponding to each level in the first location information include the first number.
可选的,所述第一元素的标识包括所述第一元素的第一层叠样式表选择器,所述确定单元802,用于:Optionally, the identifier of the first element includes a first CSS selector of the first element, and the determining unit 802 is configured to:
根据所述第一层叠样式表选择器,确定待选层叠样式表选择器;Determine a cascading style sheet selector to be selected according to the first cascading style sheet selector;
确定所述第一层叠样式表选择器和待选层叠样式表选择器之间的相对层叠样式表路径;determining a relative CSS path between the first CSS selector and the candidate CSS selector;
根据所述待选层叠样式表选择器和所述相对层叠样式表选择器,确定所述若干个第二元素。The plurality of second elements are determined according to the cascaded style sheet selector to be selected and the relative cascaded style sheet selector.
可选的,所述根据所述第一层叠样式表选择器,确定待选层叠样式表选择器,包括:Optionally, the determining the cascading style sheet selector to be selected according to the first cascading style sheet selector includes:
经过M轮迭代确定每轮迭代分别对应的所述待选层叠样式表选择器,所述M为大于1的整数;其中:After M rounds of iterations, the corresponding cascading style sheet selectors corresponding to each round of iterations are determined, and the M is an integer greater than 1; wherein:
在第1轮迭代时,将所述第一层叠样式表选择器的第一父层叠样式表选择器,确定为所述第1轮迭代所对应的所述待选层叠样式表选择器;During the first iteration, determining the first parent CSS selector of the first CSS selector as the candidate CSS selector corresponding to the first iteration;
在第i轮迭代时,将与第i-1轮迭代所确定的所述待选层叠样式表选择器具备继承关系的层叠样式表选择器,确定为所述第i轮迭代所对应的所述待选层叠样式表选择器,所述i为大于1且小于或者等于M的整数。In the i-th iteration, the cascading style sheet selector that has an inheritance relationship with the candidate cascaded style sheet selector determined in the i-1th iteration is determined as the candidate cascaded style sheet selector corresponding to the i-th iteration, and the i is an integer greater than 1 and less than or equal to M.
可选的,所述确定单元802,用于:Optionally, the determining unit 802 is configured to:
响应于在所述埋点信息配置页面中触发的同类元素自动获取操作,根据所述第一元素的标识,确定所述待分析页面中的若干个第二元素。In response to the automatic acquisition operation of similar elements triggered on the buried point information configuration page, several second elements in the page to be analyzed are determined according to the identifier of the first element.
可选的,所述装置还包括:Optionally, the device also includes:
展示单元,用于展示所述若干个第二元素;a display unit, configured to display the plurality of second elements;
第二获取单元,用于响应于针对所述若干个元素中的所述至少一个第二元素触发的选择操作,获取所述至少一个第二元素的标识。The second acquiring unit is configured to acquire an identifier of the at least one second element in response to a selection operation triggered for the at least one second element among the plurality of elements.
可选的,所述目标配置信息,包括以下其中一项或者多项:Optionally, the target configuration information includes one or more of the following:
所述埋点数据采集对应的事件类型、所述埋点数据采集的触发条件以及埋点元素对应的属性值,所述埋点元素包括所述第一元素和所述至少一个第二元素。The event type corresponding to the buried point data collection, the trigger condition of the buried point data collection, and the attribute value corresponding to the buried point element, where the buried point element includes the first element and the at least one second element.
由于所述装置800是与以上方法实施例提供的由第一客户端执行的埋点处理方法对应的装置,所述装置800的各个单元的具体实现,均与以上方法实施例为同一构思,因此,关于所述装置800的各个单元的具体实现,可以参考以上方法实施例的相关描述部分,此处不再赘述。Since the device 800 is a device corresponding to the buried point processing method performed by the first client provided by the above method embodiment, the specific implementation of each unit of the device 800 is based on the same idea as the above method embodiment, therefore, for the specific implementation of each unit of the device 800, you can refer to the relevant description of the above method embodiment, and will not repeat them here.
参见图9,该图为本申请实施例提供的又一种埋点处理装置的结构示意图。所述装置900包括:接收单元901、获取单元902和采集单元903。Referring to FIG. 9 , this figure is a schematic structural diagram of another embedded point processing device provided by an embodiment of the present application. The apparatus 900 includes: a receiving unit 901 , an acquiring unit 902 and a collecting unit 903 .
接收单元901,用于接收服务端发送的埋点配置文件,所述埋点配置文件为以上方法实施例中所述的埋点配置文件;The receiving unit 901 is configured to receive the buried point configuration file sent by the server, and the buried point configuration file is the buried point configuration file described in the above method embodiment;
获取单元902,用于获取所述待分析页面中的目标事件,并将所述目标事件与所述埋点配置文件相匹配;An acquisition unit 902, configured to acquire a target event in the page to be analyzed, and match the target event with the buried point configuration file;
采集单元903,用于在所述目标事件与所述埋点配置文件匹配成功的情况下,采集与所述目标事件对应的埋点数据。The collection unit 903 is configured to collect buried point data corresponding to the target event when the target event is successfully matched with the buried point configuration file.
由于所述装置900是与以上方法实施例提供的由第二客户端执行的埋点处理方法对应的装置,所述装置900的各个单元的具体实现,均与以上方法实施例为同一构思,因此,关于所述装置900的各个单元的具体实现,可以参考以上方法实施例的相关描述部分,此处不再赘述。Since the device 900 is a device corresponding to the buried point processing method performed by the second client provided by the above method embodiment, the specific implementation of each unit of the device 900 is based on the same idea as the above method embodiment, therefore, for the specific implementation of each unit of the device 900, you can refer to the relevant description of the above method embodiment, and will not repeat them here.
本申请实施例还提供了一种埋点处理设备,所述埋点处理设备包括处理器和存储器;The embodiment of the present application also provides a buried point processing device, and the buried point processing device includes a processor and a memory;
所述处理器用于执行所述存储器中存储的指令,以使得所述设备执行以上方法实施例提供的埋点处理方法。例如,可以使得所述设备执行以上方法实施例提供的由第一客户端执行的埋点处理方法;又如,可以使得所述设备执行以上方法实施例提供的由第二客户端执行的埋点处理方法。The processor is configured to execute instructions stored in the memory, so that the device executes the buried point processing method provided in the above method embodiments. For example, the device may be made to execute the method for processing buried points performed by the first client provided in the above method embodiments; for another example, the device may be made to execute the method for processing buried points performed by the second client provided in the method embodiments above.
本申请实施例提供了一种计算机可读存储介质,包括指令,所述指令指示设备执行以上方法实施例提供的埋点处理方法。例如,所述指令指示设备执行以上方法实施例提供的由第一客户端执行的埋点处理方法;又如,所述指令指示设备执行以上方法实施例提供的由第二客户端执行的埋点处理方法。An embodiment of the present application provides a computer-readable storage medium, including an instruction, and the instruction instructs a device to execute the buried point processing method provided in the above method embodiment. For example, the instruction instructs the device to execute the point tracking processing method performed by the first client provided in the above method embodiment; as another example, the instruction instructs the device to execute the point tracking processing method performed by the second client provided in the above method embodiment.
本申请实施例还提供了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得计算机执行以上方法实施例提供的埋点处理方法。例如,使得计算机执行以上方法实施例提供的由第一客户端执行的埋点处理方法;又如,使得计算机执行以上方法实施例提供的由第二客户端执行的埋点处理方法。The embodiment of the present application also provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute the buried point processing method provided by the above method embodiment. For example, causing the computer to execute the point tracking processing method performed by the first client provided in the above method embodiments; another example, causing the computer to execute the point tracking processing method performed by the second client provided in the above method embodiments.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present application intends to cover any modification, use or adaptation of the application, which follows the general principles of the application and includes common knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included within the protection scope of the present application.
Claims (13)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310544822.5A CN116484131A (en) | 2023-05-15 | 2023-05-15 | Buried point processing method and device |
PCT/CN2024/093330 WO2024235253A1 (en) | 2023-05-15 | 2024-05-15 | Buried point processing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310544822.5A CN116484131A (en) | 2023-05-15 | 2023-05-15 | Buried point processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116484131A true CN116484131A (en) | 2023-07-25 |
Family
ID=87221429
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310544822.5A Pending CN116484131A (en) | 2023-05-15 | 2023-05-15 | Buried point processing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116484131A (en) |
WO (1) | WO2024235253A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024235253A1 (en) * | 2023-05-15 | 2024-11-21 | 北京火山引擎科技有限公司 | Buried point processing method and apparatus |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109150641B (en) * | 2017-06-15 | 2020-04-17 | 北京国双科技有限公司 | Data acquisition and query method, device, storage medium and processor |
CN110059282A (en) * | 2019-04-23 | 2019-07-26 | 北京奇艺世纪科技有限公司 | A kind of acquisition methods and system of interactive class data |
CN110187880B (en) * | 2019-05-30 | 2022-12-16 | 北京腾云天下科技有限公司 | Method and device for identifying similar elements and computing equipment |
CN110196953B (en) * | 2019-05-30 | 2021-03-19 | 北京腾云天下科技有限公司 | Application point burying method and device, computing equipment and system |
CN114185795A (en) * | 2021-12-14 | 2022-03-15 | 深圳壹账通创配科技有限公司 | Embedded point configuration method and device, electronic equipment and storage medium |
CN116484131A (en) * | 2023-05-15 | 2023-07-25 | 北京火山引擎科技有限公司 | Buried point processing method and device |
-
2023
- 2023-05-15 CN CN202310544822.5A patent/CN116484131A/en active Pending
-
2024
- 2024-05-15 WO PCT/CN2024/093330 patent/WO2024235253A1/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024235253A1 (en) * | 2023-05-15 | 2024-11-21 | 北京火山引擎科技有限公司 | Buried point processing method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
WO2024235253A1 (en) | 2024-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110069463B (en) | User behavior processing method, device electronic equipment and storage medium | |
US20210042170A9 (en) | Automatic registration of empty pointers | |
CN106294134B (en) | The collapse localization method and device of code | |
JP4122297B2 (en) | Message analysis apparatus and message display method | |
US8589876B1 (en) | Detection of central-registry events influencing dynamic pointers and app feature dependencies | |
CN109284102B (en) | Information acquisition method and device | |
CN111866158B (en) | Routing method, routing device, computer equipment and storage medium | |
CN106980572B (en) | Online debugging method and system for distributed system | |
US11113137B2 (en) | Error incident fingerprinting with unique static identifiers | |
CN110580189A (en) | method and device for generating front-end page, computer equipment and storage medium | |
CN110362479B (en) | System upgrade test method and system | |
CN116484131A (en) | Buried point processing method and device | |
JP2016045545A (en) | Influence investigation system, influence investigation method, and influence investigation program | |
CN112948328A (en) | Retrieval method, device, equipment and medium of log data | |
CN113918437B (en) | User behavior data analysis method, device, computer equipment and storage medium | |
CN110716804A (en) | Method and device for automatically deleting useless resources, storage medium and electronic equipment | |
CN112836124A (en) | Image data acquisition method and device, electronic equipment and storage medium | |
CN111352917A (en) | Information input method and device, electronic equipment and storage medium | |
CN110471730A (en) | Methods of exhibiting, system, big screen system and medium based on Echarts | |
CN111309623B (en) | Coordinate class data classification test method and device | |
CN115098362A (en) | Page testing method and device, electronic equipment and storage medium | |
CN105391602B (en) | A method and device for data acquisition and testing | |
US9471569B1 (en) | Integrating information sources to create context-specific documents | |
CN113535570A (en) | Test case processing method and device and electronic equipment | |
CN113485859A (en) | Fault positioning method and device, electronic equipment and computer readable storage 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 |