WO2019128392A1 - Method and apparatus for extracting service field, and electronic device and storage medium - Google Patents

Method and apparatus for extracting service field, and electronic device and storage medium Download PDF

Info

Publication number
WO2019128392A1
WO2019128392A1 PCT/CN2018/110432 CN2018110432W WO2019128392A1 WO 2019128392 A1 WO2019128392 A1 WO 2019128392A1 CN 2018110432 W CN2018110432 W CN 2018110432W WO 2019128392 A1 WO2019128392 A1 WO 2019128392A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration file
buried point
page
application
point configuration
Prior art date
Application number
PCT/CN2018/110432
Other languages
French (fr)
Chinese (zh)
Inventor
张�杰
胡朝旭
赵帅
刘彭程
赵萌
梁士兴
Original Assignee
北京三快在线科技有限公司
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 北京三快在线科技有限公司 filed Critical 北京三快在线科技有限公司
Publication of WO2019128392A1 publication Critical patent/WO2019128392A1/en

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the present application relates to a method, apparatus, electronic device and non-transitory computer readable storage medium for extracting business fields in an application.
  • Buried point is a data collection method used for website analysis.
  • Data embedding is a preparation for data analysis. Only when the point is buried can the data be analyzed.
  • the developer manually associates the embedded business data. For example, the developer manually associates the ID of the current hotel with the ID of the hot-selling hotel being clicked with the embedded business data. In this way, on the one hand, the association of the buried business data depends on the developer. On the other hand, after the developer writes the buried business data association scheme, if the scheme is to be modified, the entire scheme needs to be replaced.
  • embodiments of the present application provide a method, an apparatus, an electronic device, and a non-transitory computer readable storage medium for extracting a service field in an application.
  • the embodiment of the present application discloses a method for extracting a service field in an application, where the application is executed on an electronic device; the method includes:
  • the business field is sent to the server.
  • the embodiment of the present application further discloses an apparatus for extracting a service field in an application, where the apparatus includes:
  • a detecting module configured to read a buried point configuration file for the application, and detect a page jump instruction for the application
  • An extracting module configured to extract a service field from a URL of a page of the application according to the buried point configuration file when the page jump instruction is detected;
  • a sending module configured to send the service field to a server.
  • an embodiment of the present application further discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the computer program The method for extracting a service field according to the above first aspect.
  • the embodiment of the present application further discloses a non-transitory computer readable storage medium, where a computer program is stored thereon, wherein when the program is executed by the processor, the extraction service described in the first aspect is implemented.
  • the method of the field is a non-transitory computer readable storage medium, where a computer program is stored thereon, wherein when the program is executed by the processor, the extraction service described in the first aspect is implemented. The method of the field.
  • the electronic device reads a buried point configuration file for the application, and detects a page jump instruction for the application, when the page jump instruction is detected, according to the
  • the burying point profile extracts a service field from a URL of a page of the application and sends the service field to a server. In this way, when the burying point occurs, the service field can be automatically associated by the URL, and the administrator does not need to manually associate.
  • FIG. 1 is a flowchart of a method for extracting a service field in an application according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for extracting a service field in an application according to another embodiment of the present application
  • FIG. 3 is a structural block diagram of an apparatus for extracting a service field in an application according to an embodiment of the present application.
  • FIG. 1 a flowchart of a method for extracting a service field in an application, which may be executed on an electronic device, according to an embodiment of the present application, is illustrated.
  • an electronic device eg, a mobile terminal
  • executes the application may have the following characteristics:
  • the electronic device is provided with a central processing unit, a memory, an input unit, and an output unit, that is, the electronic device may be a microcomputer device having a communication function.
  • the electronic device may also have a variety of input methods, such as keyboard, mouse, touch screen, microphone and camera, and you can adjust the input method as needed.
  • the electronic device has various output modes, such as a receiver, a display screen, etc., and the output mode can also be adjusted as needed;
  • the electronic device has an operating system such as Windows Mobile, Symbian, Palm, Android, iOS, and the like.
  • Windows Mobile such as Windows Mobile, Symbian, Palm, Android, iOS, and the like.
  • These operating systems are open, and personalized applications developed based on these open operating system platforms, such as address books, calendars, notebooks, calculators, and various games, have greatly satisfied the needs of personalized users. demand;
  • the electronic device has a flexible access mode and relatively high-bandwidth communication performance, and can automatically adjust the selected communication mode according to the selected service and the environment in which it is located, thereby facilitating user use.
  • the electronic device can support GSM (Global System for Mobile Communication), WCDMA (Wideband Code Division Multiple Access), CDMA2000 (Code Division Multiple Access), TDSCDMA (Time Division) -Synchronous Code Division Multiple Access, Wi-Fi (Wireless-Fidelity), and WiMAX (Worldwide Interoperability for Microwave Access) to adapt to multiple standards networks .
  • GSM Global System for Mobile Communication
  • WCDMA Wideband Code Division Multiple Access
  • CDMA2000 Code Division Multiple Access
  • TDSCDMA Time Division) -Synchronous Code Division Multiple Access
  • Wi-Fi Wireless-Fidelity
  • WiMAX Worldwide Interoperability for Microwave Access
  • a specified application such as a "Mei Tuan” APP, is installed on the electronic device.
  • the user can use the specified application to purchase the catering at the merchant through the network, and evaluate the catering and the merchant through the designated application, and anyone can see all the evaluations of the merchant and the catering on the network; It may include evaluations such as text evaluation and picture evaluation.
  • each page in the APP has a unique URL (Uniform Resource Locator).
  • URL Uniform Resource Locator
  • each page in the app itself has no URL, so you need to assign a URL to each page of the app in the management center.
  • the URL of each page of the APP includes some service parameters of the page, for example, the URL of the hotel details page includes a parameter name, such as the ID of the hotel.
  • a uniform naming scheme for the same service parameter name such as poiId, orderId, etc., to facilitate the extraction of the parameter values of the parameter names in the service field when the burying point occurs. For example, imeituan://www.meituan.com/hotel/poi?
  • the management center can also control the page jump.
  • the user uses the current page of the APP as the page A.
  • the APP sends a URL jump request, and after receiving the URL jump request, the management center checks that there is No page can respond to this URL. If there is, it will be fed back to the APP.
  • the APP will jump to the corresponding page B according to the feedback, thus achieving the jump from page A to page B.
  • the buried point configuration file stored in the electronic device includes at least one of the following: a name of the page, a control of the buried point, and a parameter name of the service field of the parameter value to be extracted.
  • the buried point profile is dispatched by the server to the electronic device such that the buried point profile can be applied to the application executed by the electronic device.
  • the buried configuration file can be in JSON (JavaScript Object Notation) format.
  • the buried point configuration file specifically describes which page, which control in the page needs to be buried, and what business field, which is the parameter value of which parameter name. For example, a button on the hotel details page, if the user needs to bury the button when clicking the button, the parameter value of the current hotel parameter name poiId needs to be extracted when burying the point.
  • the page in the APP itself does not have a URL, but a URL is assigned to each page in the management center. Therefore, the URL of the page of the APP is not directly recorded in the buried configuration file, but the APP is recorded. The name of the page.
  • the method for extracting a service field in an application provided by the embodiment of the present application includes the following steps 101-103.
  • Step 101 The electronic device reads the buried point configuration file for the application, and detects a page jump instruction for the application, where the buried point configuration file is stored in the electronic device .
  • the electronic device reads a buried point configuration file for the application and detects a page jump instruction for the application.
  • the jump of the APP page requires the support of the control.
  • the APP page displays a picture of a hotel, and the picture is associated with a certain control, so that when the user clicks on the picture, the click is actually associated with it.
  • the control triggers the URL jump request to be sent to the management center.
  • the management center detects the page associated with the jumped URL, it feeds back to the APP, and the APP jumps to the relevant page according to the feedback, similar to the browser.
  • Step 102 When detecting the page jump instruction, the electronic device extracts a service field from a URL of a page of the application according to the buried point configuration file.
  • Buried point is a data collection method used for website analysis. For example, add a buried point (also known as a monitoring point) in the APP, so that from the background you can clearly know what the user did at this monitoring point and so on.
  • a buried point also known as a monitoring point
  • Target data includes:
  • Behavior data time, place, person, interactive content
  • the jump of the page of the APP is required to be supported by the control. Therefore, in the embodiment of the present invention, when the user triggers a certain control, it is first determined whether the control needs to be buried.
  • the application includes a Software Development Kit (SDK).
  • SDK Software Development Kit
  • the SDK is a collection of development tools used by software engineers to build applications for specific software packages, software frameworks, hardware platforms, operating systems, and more.
  • Software development tools include a collection of related documents, examples, and tools that aid in the development of a particular type of software.
  • the SDK can include files that provide an Application Programming Interface for a programming language, as well as hardware that communicates with an embedded system.
  • Software development tools also include utilities for debugging and other purposes.
  • the SDK also includes sample code, supporting technical notes, or supporting documentation that clarifies doubts for basic references.
  • the electronic device can perform matching from the buried point configuration file through the SDK. If the control triggered by the user has a matching item in the buried point configuration file, it indicates that the user triggered control needs to be buried. If there is no match, it means that the user-triggered control does not need to be buried.
  • the burying point configuration file may be configured when the APP is installed, or may be downloaded from the server when the user starts the APP for the first time after the installation, and may be other manners, which is not limited by the embodiment of the present invention. .
  • detecting whether the control is stored in the buried point configuration file includes: when a control in a page of the application is triggered, The electronic device may detect, by using a buried software development kit, whether the control in the page is a control in the buried point configuration file.
  • the electronic device when the electronic device detects that a certain control in the page of the APP is triggered by the SDK, acquiring the identification information of the control; matching the identification information of the control with the buried point configuration file; If there is a match in the identification information of the control in the point configuration file, it means that the control triggered by the user needs to be buried. If there is no match, it means that the control triggered by the user does not need to be buried.
  • Step 103 The electronic device sends the service field to a server.
  • the burying point is generated according to the burying point configuration file, and the service field is extracted according to the page of the application, including: when the page jump instruction is triggered, the electronic device Instructing the application to jump from the current page to the next page; and the electronic device extracts a parameter value of the parameter name of the service field from the URL of the current page according to the buried point configuration file, and the The parameter value of the parameter name of the specified business field is extracted from the URL of the next page.
  • the electronic device When the page of the APP jumps to the next page, the electronic device will continue to extract the business fields in the next page through the SDK.
  • the default service field in the URL of the page of the application is extracted.
  • the electronic device can extract the default service field in the URL through the SDK.
  • the default service field includes any one of seven service fields, such as dealId, orderId, cateld, packageId, cityId, goodId, and otherId.
  • the server stores a pre-configured buried point configuration file.
  • an administrator configures a buried point configuration file in the Management Center and sends it to the server after the configuration is complete.
  • the APP can download a pre-configured buried point configuration file from the server.
  • the electronic device may send the generated buried point and the extracted service field to the service field through the APP.
  • a server to enable the server to update the burying point and service fields sent by the APP to a preset burying profile. In this way, when the APP on other electronic devices is used for the first time, the downloaded buried point configuration file is the updated buried point configuration file.
  • the electronic device reads the buried point configuration file for the application, and detects a page jump instruction for the application, when the page jump instruction is detected, Extracting a service field from a URL of a page of the application according to the buried point configuration file, and transmitting the service field to a server.
  • the service field can be automatically associated by the URL, and the administrator does not need to manually associate, and the extracted business field is automatically extracted and the extracted data is automatically uploaded to the server, and the server can update the uploaded business field.
  • the dynamic modification and flexible configuration of the buried point configuration file are implemented in the preset buried point configuration file.
  • FIG. 2 a flow chart of a method for extracting a service field in an application, the application being executed on an electronic device is illustrated in accordance with an embodiment of the present invention; the method may include the following steps:
  • Step 201 the electronic device reads the buried point configuration file for the application, and detects a page jump instruction for the application, wherein the buried point configuration file is stored in the electronic device .
  • Step 202 When detecting the page jump instruction, the electronic device extracts a service field from a URL of a page of the application according to the buried point configuration file.
  • the electronic device sends the current version number of the buried point configuration file, the current version number of the APP to the server, and the buried point configuration file update request. Send to the server.
  • Step 203 The electronic device sends the service field to a server.
  • Step 204 If the latest version number of the application in the server is higher than the current version number of the application and/or the latest version number of the buried configuration file is higher than the current version number of the buried configuration file, the electronic device receives the The latest version number of the buried point configuration file returned by the server, and the download address of the buried point configuration file incremental update packet.
  • the server stores the pre-configured buried point configuration file. However, each user may upload the new data to the server during the process of using the APP. Therefore, the server will continuously update the buried configuration file. In this way, the version number of the buried configuration file is also constantly updated.
  • the server After receiving the burying profile update request sent by the electronic device, the server compares the current version number of the APP in the electronic device with the latest version number of the APP in the server, and buryes the current version number of the configuration file in the APP with the server. Compare the latest version number of the buried point profile.
  • the server obtains an incremental update file based on the difference in the version number of the buried point configuration file. For example, if the current version number of the buried point configuration file in the APP is 10.1.25, and the latest version number of the buried point configuration file in the server is 10.1.64, the server will obtain the buried point configuration file to upgrade from 10.1.25 to 10.1.64.
  • the required incremental update file and generates a download address based on the incremental update file, and then sends the latest version number and download address of the buried point configuration file to the electronic device, and the electronic device receives the latest version number of the buried point configuration file, and buryes The point configuration file incremental update packet download address.
  • the update method is the same as the above method, and will not be described here.
  • Step 205 The electronic device incrementally updates the download address of the data packet from the buried point configuration file, and downloads the buried point configuration file incremental update data packet.
  • the electronic device may download the burying point configuration file incremental update data packet from the download address.
  • Step 206 The electronic device incrementally updates the data packet by decapsulating the buried point configuration file to obtain the embedded point configuration file incremental update data.
  • Step 207 The electronic device merges the buried point profile incremental update data with the buried point configuration file.
  • the electronic device adds incremental update data to the local buried configuration file.
  • the electronic device executing the application sends a burying profile update request to the server. If there is an update file in the server, the server will feed back the download address of the buried point configuration file incremental update data packet to the electronic device according to the update file, and the electronic device downloads the buried point configuration file incremental update data package from the download address and buryes the data locally.
  • the point profile is updated, and then the application's page is extracted and the business field is extracted according to the latest buried point configuration file.
  • Point configuration files reduce the hardware overhead of servers and electronic devices while saving traffic.
  • FIG. 3 is a structural block diagram of an apparatus for extracting a service field in an application, where the apparatus for extracting a service field may include the following modules, according to an embodiment of the present application:
  • the detecting module 301 is configured to read a buried point configuration file for the application, and detect a page jump instruction for the application;
  • the extracting module 302 is configured to: when detecting the page jump instruction, extract a service field from a URL of a page of the application according to the buried point configuration file;
  • the sending module 303 is configured to send the service field to the server.
  • the buried point profile is dispatched by the server to an electronic device executing the application.
  • the device for extracting a service field further includes:
  • the sending module is further configured to send a burying point configuration file update request to the server;
  • the burying point configuration file update request includes a current version number of the application, and a current version number of the burying point configuration file;
  • a receiving module configured to: in the server, a latest version number of the application is higher than a current version number of the application and/or a latest version number of the buried point configuration file is higher than the buried point configuration file Receiving, by the current version number, the latest version number of the buried point configuration file returned by the server, and a download address of the buried point configuration file incremental update data packet;
  • a downloading module configured to incrementally update a data packet download address from the buried point configuration file, and download the buried point configuration file incremental update data packet;
  • a decapsulation module configured to decapsulate the buried point configuration file incremental update data packet to obtain a buried point configuration file incremental update data
  • a data merge module configured to merge the buried point profile incremental update data with the buried point configuration file.
  • the buried point configuration file includes at least one of the following: a name of the page, a control of the buried point, and a parameter name of the business field to be extracted.
  • each page of the application has a unique URL.
  • the extracting module 302 is further configured to: when detecting the page jump instruction, instructing the application to jump from the current page to the next page; extracting the current page according to the buried point configuration file The parameter value of the parameter name of the business field in the URL and the parameter value of the parameter name of the business field in the URL of the next page.
  • the extraction module 302 is further configured to extract a default service field in a URL of a page of the application when the service field is failed to be extracted.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • An embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the method for extracting the service field when the computer program is executed.
  • the embodiment of the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, and when the program is executed by the processor, each process of the method embodiment for extracting a service field is implemented, and the same technology can be achieved. The effect, to avoid repetition, will not be repeated here.
  • the non-transitory computer readable storage medium such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • embodiments of the invention may be provided as a method, apparatus, or computer program product.
  • embodiments of the invention may be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • embodiments of the invention may employ computer program products embodied on one or more non-transitory computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer usable program code embodied therein. form.
  • Embodiments of the invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
  • Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the instruction device implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a method and apparatus for extracting a service field in an application program, and an electronic device and a non-transitory computer-readable storage medium. In one example, the application program is executed in an electronic device. The method comprises: the electronic device reading a buried point configuration file, stored in the electronic device, for the application program; detecting a page jump instruction for the application program; when the page jump instruction is detected, extracting a service field from the URL of a page of the application program according to the buried point configuration file; and sending the service field to a server.

Description

提取业务字段的方法、装置、电子设备及存储介质Method, device, electronic device and storage medium for extracting business fields
相关申请的交叉引用Cross-reference to related applications
本专利申请要求于2017年12月29日提交的、申请号为2017114752248、发明名称为“提取业务字段的方法、装置、电子设备及存储介质”的中国专利申请的优先权,该申请的全文以引用的方式并入本文中。The present application claims the priority of the Chinese patent application filed on Dec. 29, 2017, the number of which is hereby incorporated by reference. The manner of reference is incorporated herein.
技术领域Technical field
本申请涉及一种在应用程序中提取业务字段的方法、装置、电子设备及非临时性计算机可读存储介质。The present application relates to a method, apparatus, electronic device and non-transitory computer readable storage medium for extracting business fields in an application.
背景技术Background technique
埋点,是一种用于网站分析的数据采集方法,数据埋点是数据分析的准备工作,只有埋点了才可以获得数据进行分析。Buried point is a data collection method used for website analysis. Data embedding is a preparation for data analysis. Only when the point is buried can the data be analyzed.
在处理业务埋点的时候,不仅仅要跟踪用户的点击、滑动等行为,还要关联用户当前的上下文数据以辅助业务分析。比如在一个酒店详情页,如果用户点击了附近热销酒店,业务埋点需要上报当前酒店的ID(identifier,标识号)和被点击的热销酒店的ID。When dealing with the business, it is not only to track the user's clicks, slides, etc., but also to link the user's current context data to assist in business analysis. For example, in a hotel details page, if the user clicks on a nearby hot-selling hotel, the business burying point needs to report the current hotel ID (identifier, identification number) and the ID of the hot-selling hotel that was clicked.
在一实施例中,开发人员手动关联埋点业务数据,比如,开发人员手动将当前酒店的ID和被点击的热销酒店的ID与埋点业务数据进行关联。这样,一方面埋点业务数据的关联依赖于开发人员,另一方面,开发人员将埋点业务数据关联方案编写好以后,如果要修改方案,需要将整个方案进行替换。In one embodiment, the developer manually associates the embedded business data. For example, the developer manually associates the ID of the current hotel with the ID of the hot-selling hotel being clicked with the embedded business data. In this way, on the one hand, the association of the buried business data depends on the developer. On the other hand, after the developer writes the buried business data association scheme, if the scheme is to be modified, the entire scheme needs to be replaced.
发明内容Summary of the invention
有鉴于此,本申请实施例提供一种在应用程序中提取业务字段的方法、装置、电子设备及非临时性计算机可读存储介质。In view of this, embodiments of the present application provide a method, an apparatus, an electronic device, and a non-transitory computer readable storage medium for extracting a service field in an application.
第一方面,本申请实施例公开了一种在应用程序中提取业务字段的方法,所述应用程序执行于电子设备;所述的方法包括:In a first aspect, the embodiment of the present application discloses a method for extracting a service field in an application, where the application is executed on an electronic device; the method includes:
读取针对所述应用程序的埋点配置文件,其中所述埋点配置文件被存储在所述电子 设备中;Reading a buried point profile for the application, wherein the buried point profile is stored in the electronic device;
检测针对所述应用程序的页面跳转指令;Detecting a page jump instruction for the application;
当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;When the page jump instruction is detected, extracting a service field from a URL of a page of the application according to the buried point configuration file;
向服务器发送所述业务字段。The business field is sent to the server.
第二方面,本申请实施例还公开了一种在应用程序中提取业务字段的装置,所述装置包括:In a second aspect, the embodiment of the present application further discloses an apparatus for extracting a service field in an application, where the apparatus includes:
检测模块,用于读取针对所述应用程序的埋点配置文件,并检测针对所述应用程序的页面跳转指令;a detecting module, configured to read a buried point configuration file for the application, and detect a page jump instruction for the application;
提取模块,用于当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;An extracting module, configured to extract a service field from a URL of a page of the application according to the buried point configuration file when the page jump instruction is detected;
发送模块,用于向服务器发送所述业务字段。a sending module, configured to send the service field to a server.
第三方面,本申请实施例还公开了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面所述的提取业务字段的方法。In a third aspect, an embodiment of the present application further discloses an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the computer program The method for extracting a service field according to the above first aspect.
第四方面,本申请实施例还公开了一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现上述第一方面所述的提取业务字段的方法。In a fourth aspect, the embodiment of the present application further discloses a non-transitory computer readable storage medium, where a computer program is stored thereon, wherein when the program is executed by the processor, the extraction service described in the first aspect is implemented. The method of the field.
在本申请实施例中,所述电子设备读取针对所述应用程序的埋点配置文件,并检测针对所述应用程序的页面跳转指令,当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段,并向服务器发送所述业务字段。这样,埋点发生的时候可以自动通过URL关联业务字段,不需要管理员手动关联。In the embodiment of the present application, the electronic device reads a buried point configuration file for the application, and detects a page jump instruction for the application, when the page jump instruction is detected, according to the The burying point profile extracts a service field from a URL of a page of the application and sends the service field to a server. In this way, when the burying point occurs, the service field can be automatically associated by the URL, and the administrator does not need to manually associate.
附图说明DRAWINGS
图1是根据本申请一实施例示出的一种在应用程序中提取业务字段的方法的流程图;FIG. 1 is a flowchart of a method for extracting a service field in an application according to an embodiment of the present application;
图2是根据本申请另一实施例示出的一种在应用程序中提取业务字段的方法的流程图;2 is a flowchart of a method for extracting a service field in an application according to another embodiment of the present application;
图3是根据本申请一实施例示出的一种在应用程序中提取业务字段的装置的结构框图。FIG. 3 is a structural block diagram of an apparatus for extracting a service field in an application according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。The above described objects, features and advantages of the present application will become more apparent and understood.
参照图1,示出了根据本申请一实施例的一种在应用程序中提取业务字段的方法的流程图,所述应用程序(Application,APP)可在电子设备上执行。Referring to FIG. 1, a flowchart of a method for extracting a service field in an application, which may be executed on an electronic device, according to an embodiment of the present application, is illustrated.
在本申请中,执行所述应用程序的电子设备(例如,移动终端)可以具有如下特点:In the present application, an electronic device (eg, a mobile terminal) that executes the application may have the following characteristics:
(1)在硬件体系上,电子设备具备中央处理器、存储器、输入部件和输出部件,也就是说,电子设备可以是具备通信功能的微型计算机设备。另外,还可以具有多种输入方式,诸如键盘、鼠标、触摸屏、送话器和摄像头等,并可以根据需要调整输入方式。电子设备具有多种输出方式,如受话器、显示屏等,也可以根据需要调整输出方式;(1) In the hardware system, the electronic device is provided with a central processing unit, a memory, an input unit, and an output unit, that is, the electronic device may be a microcomputer device having a communication function. In addition, you can also have a variety of input methods, such as keyboard, mouse, touch screen, microphone and camera, and you can adjust the input method as needed. The electronic device has various output modes, such as a receiver, a display screen, etc., and the output mode can also be adjusted as needed;
(2)在软件体系上,电子设备具备操作系统,如Windows Mobile、Symbian、Palm、Android、iOS等。这些操作系统是开放的,基于这些开放的操作系统平台开发的个性化应用程序层出不穷,如通信簿、日程表、记事本、计算器以及各类游戏等,极大程度地满足了个性化用户的需求;(2) In the software system, the electronic device has an operating system such as Windows Mobile, Symbian, Palm, Android, iOS, and the like. These operating systems are open, and personalized applications developed based on these open operating system platforms, such as address books, calendars, notebooks, calculators, and various games, have greatly satisfied the needs of personalized users. demand;
(3)在通信能力上,电子设备具有灵活的接入方式和相对高带宽的通信性能,并且能根据所选择的业务和所处的环境,自动调整所选的通信方式,从而方便用户使用。电子设备可以支持GSM(Global System for Mobile Communication,全球移动通信系统)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、CDMA2000(Code Division Multiple Access,码分多址)、TDSCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、Wi-Fi(Wireless-Fidelity,无线保真)以及WiMAX(Worldwide Interoperability for Microwave Access,全球微波互联接入)等,从而适应多种制式网络。电子设备不仅支持语音业务,更支持多种无线数据业务;(3) In terms of communication capability, the electronic device has a flexible access mode and relatively high-bandwidth communication performance, and can automatically adjust the selected communication mode according to the selected service and the environment in which it is located, thereby facilitating user use. The electronic device can support GSM (Global System for Mobile Communication), WCDMA (Wideband Code Division Multiple Access), CDMA2000 (Code Division Multiple Access), TDSCDMA (Time Division) -Synchronous Code Division Multiple Access, Wi-Fi (Wireless-Fidelity), and WiMAX (Worldwide Interoperability for Microwave Access) to adapt to multiple standards networks . Electronic devices not only support voice services, but also support multiple wireless data services;
(4)在功能使用上,电子设备更加注重人性化、个性化和多功能化。随着计算机技术的发展,设备从“以设备为中心”的模式进入“以人为中心”的模式,集成了嵌入式计算、控制技术、人工智能技术以及生物认证技术等。由于软件技术的发展,电子设备可以根据个人需求调整设置,更加个性化。同时,电子设备本身集成了众多软件和硬件, 功能也越来越强大。(4) In terms of function use, electronic devices pay more attention to humanization, personalization and multi-functionality. With the development of computer technology, devices have entered a "people-centric" model from a "device-centric" model, integrating embedded computing, control technology, artificial intelligence technology and biometric authentication technology. Due to the development of software technology, electronic devices can be adjusted according to individual needs and more personalized. At the same time, the electronic device itself integrates a large number of software and hardware, and its functions are becoming more and more powerful.
在本发明一实施例中,在电子设备上安装指定的应用程序,比如“美团”APP。用户可以使用该指定的应用程序通过网络在商家购买外卖等餐饮,并且通过该指定的应用程序对餐饮、商家进行评价,任何人都可以在网络上看到商家、餐饮的所有评价;其中,评价可以包括文字评价、图片评价等方式的评价。In an embodiment of the invention, a specified application, such as a "Mei Tuan" APP, is installed on the electronic device. The user can use the specified application to purchase the catering at the merchant through the network, and evaluate the catering and the merchant through the designated application, and anyone can see all the evaluations of the merchant and the catering on the network; It may include evaluations such as text evaluation and picture evaluation.
在本发明一实施例中,APP中每个页面具有唯一的URL(Uniform Resource Locator,统一资源定位符)。例如,APP中每个页面本身是没有URL的,因此,需要在管理中心为APP的每个页面赋一个URL。比如,APP的某个酒店详情页对应的URL是imeituan://www.meituan.com/hotel/poi?&poiId=5249291&checkinDate=20170830&checkou tDate=20180901,那么,APP的其他页面都能通过这个URL跳转到该酒店详情页。In an embodiment of the invention, each page in the APP has a unique URL (Uniform Resource Locator). For example, each page in the app itself has no URL, so you need to assign a URL to each page of the app in the management center. For example, the URL corresponding to a hotel details page of APP is imeituan://www.meituan.com/hotel/poi? &poiId=5249291&checkinDate=20170830&checkou tDate=20180901, then, other pages of the APP can jump to the hotel details page through this URL.
其中,APP的每个页面的URL包括该页面的一些业务参数,比如酒店详情页的URL包括一参数名,比如这个酒店的ID。对于相同的业务参数名使用统一的命名方式,比如poiId,orderId等,方便埋点发生的时候做业务字段中参数名的参数值的提取。比如,imeituan://www.meituan.com/hotel/poi?&poiId=5249291&checkinDate=20170830&checkou tDate=20180901中,“poiId=5249291”则表示参数名为poiId,而参数值就是酒店的ID524921,这样,在对该URL进行业务字段提取时提取到就是“poiId=5249291”。The URL of each page of the APP includes some service parameters of the page, for example, the URL of the hotel details page includes a parameter name, such as the ID of the hotel. Use a uniform naming scheme for the same service parameter name, such as poiId, orderId, etc., to facilitate the extraction of the parameter values of the parameter names in the service field when the burying point occurs. For example, imeituan://www.meituan.com/hotel/poi? &poiId=5249291&checkinDate=20170830&checkou tDate=20180901, "poiId=5249291" indicates that the parameter name is poiId, and the parameter value is the ID 524921 of the hotel, so that when the business field is extracted for the URL, it is extracted as "poiId=5249291".
而管理中心除了可以给APP的页面赋URL外,还可以控制页面的跳转。在一例子中,用户使用APP的当前页面为页面A,此时,用户想跳转到页面B,那么APP就会发送一个URL跳转请求,管理中心在接收到URL跳转请求后,检查有没有页面可以响应这个URL,如果有,就会反馈给APP,APP根据反馈跳转至相应的页面B,从而实现了从页面A跳转至页面B。In addition to the URL of the APP page, the management center can also control the page jump. In an example, the user uses the current page of the APP as the page A. At this time, if the user wants to jump to the page B, the APP sends a URL jump request, and after receiving the URL jump request, the management center checks that there is No page can respond to this URL. If there is, it will be fed back to the APP. The APP will jump to the corresponding page B according to the feedback, thus achieving the jump from page A to page B.
在本发明一实施例中,存储在所述电子设备中的埋点配置文件包括以下内容的至少一项:页面的名称、被埋点的控件,和待提取参数值的业务字段的参数名。In an embodiment of the invention, the buried point configuration file stored in the electronic device includes at least one of the following: a name of the page, a control of the buried point, and a parameter name of the service field of the parameter value to be extracted.
在本发明一实施例中,埋点配置文件由服务器派发到所述电子设备,以使得所述埋点配置文件能够应用于所述电子设备执行的所述应用程序中。埋点配置文件可以是JSON(JavaScript Object Notation)格式。埋点配置文件里面具体会说明哪个页面、该页面中的哪个控件需要埋点,需要提取什么业务字段、也就是哪个参数名的参数值。比如,酒店详情页一个按钮,如果用户点击该按钮的时候需要埋点,则埋点的时候需要提取当前酒店的参数名poiId的参数值。In an embodiment of the invention, the buried point profile is dispatched by the server to the electronic device such that the buried point profile can be applied to the application executed by the electronic device. The buried configuration file can be in JSON (JavaScript Object Notation) format. The buried point configuration file specifically describes which page, which control in the page needs to be buried, and what business field, which is the parameter value of which parameter name. For example, a button on the hotel details page, if the user needs to bury the button when clicking the button, the parameter value of the current hotel parameter name poiId needs to be extracted when burying the point.
需要说明的是,APP中的页面本身是不存在URL的,而是在管理中心为每个页面分配一个URL,所以,埋点配置文件中并不是直接记录APP的页面的URL,而是记录APP的页面的名称。It should be noted that the page in the APP itself does not have a URL, but a URL is assigned to each page in the management center. Therefore, the URL of the page of the APP is not directly recorded in the buried configuration file, but the APP is recorded. The name of the page.
本申请实施例提供的在应用程序中提取业务字段的方法包括以下步骤101-103。The method for extracting a service field in an application provided by the embodiment of the present application includes the following steps 101-103.
步骤101,所述电子设备读取针对所述应用程序的所述埋点配置文件,并检测针对所述应用程序的页面跳转指令,其中所述埋点配置文件被存储在所述电子设备中。Step 101: The electronic device reads the buried point configuration file for the application, and detects a page jump instruction for the application, where the buried point configuration file is stored in the electronic device .
以“美团”APP为例,当用户在电子设备的桌面点击“美团”APP的图标时,则启动了“美团”APP。APP启动时,会有一个“主页”,类似于浏览器中的“主页”。当然,“主页”的URL也是管理中心赋予的。Taking the "Mei Tuan" APP as an example, when the user clicks on the icon of the "Mei Tuan" APP on the desktop of the electronic device, the "Mei Tuan" APP is activated. When the APP starts, there will be a "home page" similar to the "home page" in the browser. Of course, the URL of the "home page" is also given by the management center.
在本申请实施例中,电子设备读取针对所述应用程序的埋点配置文件,并检测针对所述应用程序的页面跳转指令。APP页面的跳转需要控件的支持,例如,APP页面中展示有某个酒店的图片,而图片是与某个控件进行关联的,这样,当用户点击图片时,实际上是点击了与之关联的控件,从而触发URL跳转请求发送至管理中心,管理中心检测到与跳转的URL有关联的页面时,则反馈给APP,APP依据反馈跳转至相关页面,类似于在浏览器的某个网页中点击某个链接时,跳转到链接指向的网页的效果。In an embodiment of the present application, the electronic device reads a buried point configuration file for the application and detects a page jump instruction for the application. The jump of the APP page requires the support of the control. For example, the APP page displays a picture of a hotel, and the picture is associated with a certain control, so that when the user clicks on the picture, the click is actually associated with it. The control triggers the URL jump request to be sent to the management center. When the management center detects the page associated with the jumped URL, it feeds back to the APP, and the APP jumps to the relevant page according to the feedback, similar to the browser. When clicking a link in a webpage, jump to the effect of the webpage that the link points to.
步骤102,当检测到所述页面跳转指令时,所述电子设备按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段。Step 102: When detecting the page jump instruction, the electronic device extracts a service field from a URL of a page of the application according to the buried point configuration file.
埋点,是用于网站分析的数据采集方法。例如,在APP中增加埋点(也被称为监控点),这样从后台就可以清楚知道用户在这个监控点做了什么事情等等。Buried point is a data collection method used for website analysis. For example, add a buried point (also known as a monitoring point) in the APP, so that from the background you can clearly know what the user did at this monitoring point and so on.
数据埋点是数据分析的准备工作,只有埋点了才可以获得数据进行分析,在数据埋点之后,就可以拿到想要的目标数据。目标数据包括:The data burying point is the preparation work of data analysis. Only when the data is buried can the data be analyzed, and after the data is buried, the desired target data can be obtained. Target data includes:
1、行为数据:时间、地点、人物、交互的内容;1. Behavior data: time, place, person, interactive content;
2、质量数据:浏览器加载情况、错误异常等;2, quality data: browser loading, error exceptions, etc.;
3、环境数据:浏览器相关的元数据以及地理、运营商等;3, environmental data: browser-related metadata and geography, operators, etc.;
4、运营数据:PV、UV、转化率、留存率等。4. Operational data: PV, UV, conversion rate, retention rate, etc.
APP的页面的跳转是需要控件支持的,所以,在本发明实施例中,当用户触发某个控件时,先判断是否需要对该控件进行埋点。The jump of the page of the APP is required to be supported by the control. Therefore, in the embodiment of the present invention, when the user triggers a certain control, it is first determined whether the control needs to be buried.
在本发明实施例中,所述应用程序包括埋点SDK(Software Development Kit,软件 开发工具包)。In the embodiment of the present invention, the application includes a Software Development Kit (SDK).
SDK是一些软件工程师为特定的软件包、软件框架、硬件平台、操作系统等建立应用软件时所使用的开发工具的集合。软件开发工具包括辅助开发某一类软件的相关文档、范例和工具的集合。SDK可以包括为某个程序设计语言提供应用程序接口API(Application Programming Interface)的一些文件,也可包括与某种嵌入式系统通讯的硬件。软件开发工具还包括用于调试和其他用途的实用工具。SDK还包括示例代码、支持性的技术注解或者为基本参考资料澄清疑点的支持文档。The SDK is a collection of development tools used by software engineers to build applications for specific software packages, software frameworks, hardware platforms, operating systems, and more. Software development tools include a collection of related documents, examples, and tools that aid in the development of a particular type of software. The SDK can include files that provide an Application Programming Interface for a programming language, as well as hardware that communicates with an embedded system. Software development tools also include utilities for debugging and other purposes. The SDK also includes sample code, supporting technical notes, or supporting documentation that clarifies doubts for basic references.
在本发明一实施例中,电子设备可通过SDK从埋点配置文件中进行匹配,如果用户触发的控件在埋点配置文件中存在匹配项,则表示用户触发的控件是需要进行埋点的,如果不存在匹配项,则表示用户触发的控件是不需要进行埋点的。In an embodiment of the present invention, the electronic device can perform matching from the buried point configuration file through the SDK. If the control triggered by the user has a matching item in the buried point configuration file, it indicates that the user triggered control needs to be buried. If there is no match, it means that the user-triggered control does not need to be buried.
其中,埋点配置文件是管理员在管理中心中进行配置的,例如,如果在用户点击酒店详情页上的一个按钮的时候需要埋点,那么管理员就配置这个按钮的点击事件需要埋点。这样,当用户点击该酒店详情页上的该按钮时,将提取该酒店详情页的URL里poiId参数的值。比如,假设酒店详情页的URL是imeituan://www.meituan.com/hotel/poi?&poiId=5249291&checkinDate=20170830&checkou tDate=20180901,那么提取到的参数“poiId”的值就是“5249291”。The burying point configuration file is configured by the administrator in the management center. For example, if the user needs to bury a button when clicking a button on the hotel details page, the administrator needs to bury the click event of configuring the button. Thus, when the user clicks the button on the hotel details page, the value of the poiId parameter in the URL of the hotel details page will be extracted. For example, suppose the URL of the hotel details page is imeituan://www.meituan.com/hotel/poi? &poiId=5249291&checkinDate=20170830&checkou tDate=20180901, then the value of the extracted parameter "poiId" is "5249291".
当然,埋点配置文件可以是APP在安装的时候配置的,也可以是APP在安装之后,用户第一次启动APP时从服务器下载的,还可以是其它方式,本发明实施例对此不作限制。Certainly, the burying point configuration file may be configured when the APP is installed, or may be downloaded from the server when the user starts the APP for the first time after the installation, and may be other manners, which is not limited by the embodiment of the present invention. .
在本发明实施例中,当所述页面中某个控件被触发时,检测所述控件是否存储于所述埋点配置文件中,包括:当所述应用程序的页面中的控件被触发时,所述电子设备可通过埋点软件开发工具包检测所述页面中的该控件是否为所述埋点配置文件中的控件。In the embodiment of the present invention, when a certain control in the page is triggered, detecting whether the control is stored in the buried point configuration file includes: when a control in a page of the application is triggered, The electronic device may detect, by using a buried software development kit, whether the control in the page is a control in the buried point configuration file.
在一实施例中,当所述电子设备通过SDK检测到APP的页面中的某个控件被触发时,获取该控件的标识信息;将该控件的标识信息与埋点配置文件进行匹配;若埋点配置文件中存在该控件的标识信息的匹配项,则表示用户触发的该控件是需要进行埋点的,如果不存在匹配项,则表示用户触发的该控件是不需要进行埋点的。In an embodiment, when the electronic device detects that a certain control in the page of the APP is triggered by the SDK, acquiring the identification information of the control; matching the identification information of the control with the buried point configuration file; If there is a match in the identification information of the control in the point configuration file, it means that the control triggered by the user needs to be buried. If there is no match, it means that the control triggered by the user does not need to be buried.
步骤103,电子设备向服务器发送所述业务字段。Step 103: The electronic device sends the service field to a server.
在本发明一实施例中,按照所述埋点配置文件针对所述控件产生埋点,并依据所述应用程序的页面提取业务字段,包括:当页面跳转指令被触发时,所述电子设备指示所 述应用程序由当前页面跳转至下一个页面;并且,所述电子设备根据所述埋点配置文件从所述当前页面的URL中提取所述业务字段的参数名的参数值以及所述下一个页面的URL中提取指定的业务字段的参数名的参数值。In an embodiment of the present invention, the burying point is generated according to the burying point configuration file, and the service field is extracted according to the page of the application, including: when the page jump instruction is triggered, the electronic device Instructing the application to jump from the current page to the next page; and the electronic device extracts a parameter value of the parameter name of the service field from the URL of the current page according to the buried point configuration file, and the The parameter value of the parameter name of the specified business field is extracted from the URL of the next page.
例如,当用户点击酒店详情页的按钮的时候,所述电子设备可通过SDK检查埋点配置文件中是否存储有该按钮。如果该按钮作为要进行埋点的控件存储于埋点配置文件中,那么就会产生一次埋点,而且,埋点配置文件包括需要提取参数值的业务字段的参数名,电子设备可通过SDK从当前页面的URL“imeituan://www.meituan.com/hotel/poi?&poiId=5249291&checkinDate=20170830&check outDate=20180901”中提取参数名“poiId”的参数值“5249291”。For example, when the user clicks the button of the hotel details page, the electronic device can check whether the button is stored in the buried point configuration file through the SDK. If the button is stored in the buried point configuration file as a control to be buried, then a buried point is generated, and the buried point configuration file includes the parameter name of the business field that needs to extract the parameter value, and the electronic device can be The parameter value "5249291" of the parameter name "poiId" is extracted from the URL "imeituan://www.meituan.com/hotel/poi?&poiId=5249291&checkinDate=20170830&check outDate=20180901" of the current page.
当APP的页面跳转到下一个页面时,电子设备还会继续通过SDK提取下一页面中的业务字段。例如,从下一页面的URL“imeituan://www.meituan.com/hotel/poi?&poiId=6542314&checkinDate=20070101&check outDate=20070131”中提取参数名“poiId”的参数值“6542314”。When the page of the APP jumps to the next page, the electronic device will continue to extract the business fields in the next page through the SDK. For example, the parameter value "6542314" of the parameter name "poiId" is extracted from the URL "imeituan://www.meituan.com/hotel/poi?&poiId=6542314&checkinDate=20070101&check outDate=20070131" of the next page.
在本发明一实施例中,若提取指定业务字段失败,则提取所述应用程序的页面的URL中的默认业务字段。In an embodiment of the invention, if the specified service field fails to be extracted, the default service field in the URL of the page of the application is extracted.
在实际应用中,有可能会出现在埋点配置文件中指定要提取“poiId”参数的参数值,但是页面的URL中并没有“poiId”参数,此时,可认为提取相应的业务字段失败。在这种情况下,就可提取APP当前页面和跳转的下一个页面的URL中的默认业务字段,也就是默认的参数名的参数值。还是以酒店详情页的按钮为例,如果对酒店详情页的URL没有配置poiId字段,则电子设备可通过SDK提取URL中的默认业务字段。其中,默认业务字段包括比如dealId、orderId、cateId、packageId、cityId、goodId、otherId等7个业务字段中的任一。In actual applications, it is possible to specify a parameter value in the burying point configuration file to extract the "poiId" parameter, but there is no "poiId" parameter in the URL of the page. At this time, it may be considered that the corresponding service field is failed to be extracted. In this case, the default business field in the URL of the current page of the APP and the next page of the jump, that is, the parameter value of the default parameter name, can be extracted. Taking the button of the hotel details page as an example, if the poiId field is not configured for the URL of the hotel details page, the electronic device can extract the default service field in the URL through the SDK. The default service field includes any one of seven service fields, such as dealId, orderId, cateld, packageId, cityId, goodId, and otherId.
在一实施例中,服务器中存储有管理员预先配置好的埋点配置文件。例如,管理员在管理中心中配置埋点配置文件,并在配置完成后发送给服务器。APP在电子设备上第一次被使用时,APP可以从服务器下载预先配置好的埋点配置文件。此后,在使用APP的过程中,若产生的埋点和提取到的业务字段不属于预设的埋点配置文件,那么电子设备可通过该APP将产生的埋点和提取到的业务字段发送给服务器,以使得服务器能够将该APP发送的埋点和业务字段更新到预设的埋点配置文件中。这样,其它电子设备上的APP第一次使用时,下载到的埋点配置文件就是更新后的埋点配置文件了。In an embodiment, the server stores a pre-configured buried point configuration file. For example, an administrator configures a buried point configuration file in the Management Center and sends it to the server after the configuration is complete. When the APP is first used on an electronic device, the APP can download a pre-configured buried point configuration file from the server. Thereafter, in the process of using the APP, if the generated buried point and the extracted service field do not belong to the preset buried point configuration file, the electronic device may send the generated buried point and the extracted service field to the service field through the APP. a server to enable the server to update the burying point and service fields sent by the APP to a preset burying profile. In this way, when the APP on other electronic devices is used for the first time, the downloaded buried point configuration file is the updated buried point configuration file.
在本发明实施例中,所述电子设备读取针对所述应用程序的所述埋点配置文件,并检测针对所述应用程序的页面跳转指令,当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段,并向服务器发送所述业务字段。这样,埋点发生的时候可以自动通过URL关联业务字段,不需要管理员手动关联,而且,对关联的业务字段进行提取后将提取到的数据自动上传给服务器,服务器可以将上传的业务字段更新至预设的埋点配置文件中,实现了对埋点配置文件的动态修改,灵活配置。In the embodiment of the present invention, the electronic device reads the buried point configuration file for the application, and detects a page jump instruction for the application, when the page jump instruction is detected, Extracting a service field from a URL of a page of the application according to the buried point configuration file, and transmitting the service field to a server. In this way, when the burying point occurs, the service field can be automatically associated by the URL, and the administrator does not need to manually associate, and the extracted business field is automatically extracted and the extracted data is automatically uploaded to the server, and the server can update the uploaded business field. The dynamic modification and flexible configuration of the buried point configuration file are implemented in the preset buried point configuration file.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the embodiments of the present invention are not limited by the described action sequence, because In accordance with embodiments of the invention, certain steps may be performed in other sequences or concurrently. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参照图2,示出了根据本发明一实施例的一种在应用程序中提取业务字段的方法的流程图,所述应用程序执行于电子设备上;该方法可以包括以下步骤:Referring to FIG. 2, a flow chart of a method for extracting a service field in an application, the application being executed on an electronic device is illustrated in accordance with an embodiment of the present invention; the method may include the following steps:
步骤201,所述电子设备读取针对所述应用程序的所述埋点配置文件,并检测针对所述应用程序的页面跳转指令,其中所述埋点配置文件被存储在所述电子设备中。 Step 201, the electronic device reads the buried point configuration file for the application, and detects a page jump instruction for the application, wherein the buried point configuration file is stored in the electronic device .
步骤202,当检测到所述页面跳转指令时,所述电子设备按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段。Step 202: When detecting the page jump instruction, the electronic device extracts a service field from a URL of a page of the application according to the buried point configuration file.
在实际应用中,为保证所述埋点配置文件为最新的埋点配置文件,电子设备会将埋点配置文件的当前版本号、APP的当前版本号发送至服务器,以及埋点配置文件更新请求发送至服务器。In an actual application, to ensure that the buried point configuration file is the latest buried point configuration file, the electronic device sends the current version number of the buried point configuration file, the current version number of the APP to the server, and the buried point configuration file update request. Send to the server.
步骤203,所述电子设备向服务器发送所述业务字段;Step 203: The electronic device sends the service field to a server.
步骤204,若服务器中应用程序的最新版本号高于应用程序的当前版本号和/或埋点配置文件的最新版本号高于埋点配置文件的当前版本号,则所述电子设备接收所述服务器返回的埋点配置文件的最新版本号,以及埋点配置文件增量更新数据包的下载地址。Step 204: If the latest version number of the application in the server is higher than the current version number of the application and/or the latest version number of the buried configuration file is higher than the current version number of the buried configuration file, the electronic device receives the The latest version number of the buried point configuration file returned by the server, and the download address of the buried point configuration file incremental update packet.
服务器中存储有管理员预先配置好的埋点配置文件,但是,每个用户在使用APP的过程中,新的数据可能会被上传至服务器,所以,服务器会不断的更新埋点配置文件。这样,埋点配置文件的版本号也会不断更新。当服务器接收到电子设备发送的埋点配置文件更新请求后,会将电子设备中APP的当前版本号与服务器中APP的最新版本号进 行对比,将APP中埋点配置文件的当前版本号与服务器中埋点配置文件的最新版本号进行对比。若服务器中应用程序的最新版本号高于电子设备中应用程序的当前版本号,和/或,服务器中埋点配置文件的最新版本号高于电子设备中埋点配置文件的当前版本号,那么服务器根据埋点配置文件版本号的差异获取增量更新文件。例如,APP中埋点配置文件的当前版本号为10.1.25,而服务器中埋点配置文件的最新版本号为10.1.64,那么服务器会获取埋点配置文件从10.1.25升级至10.1.64所需要的增量更新文件,并基于增量更新文件生成下载地址,然后将埋点配置文件的最新版本号、下载地址发送给电子设备,电子设备接收埋点配置文件的最新版本号,以及埋点配置文件增量更新数据包的下载地址。The server stores the pre-configured buried point configuration file. However, each user may upload the new data to the server during the process of using the APP. Therefore, the server will continuously update the buried configuration file. In this way, the version number of the buried configuration file is also constantly updated. After receiving the burying profile update request sent by the electronic device, the server compares the current version number of the APP in the electronic device with the latest version number of the APP in the server, and buryes the current version number of the configuration file in the APP with the server. Compare the latest version number of the buried point profile. If the latest version number of the application in the server is higher than the current version number of the application in the electronic device, and/or, the latest version number of the buried configuration file in the server is higher than the current version number of the buried configuration file in the electronic device, then The server obtains an incremental update file based on the difference in the version number of the buried point configuration file. For example, if the current version number of the buried point configuration file in the APP is 10.1.25, and the latest version number of the buried point configuration file in the server is 10.1.64, the server will obtain the buried point configuration file to upgrade from 10.1.25 to 10.1.64. The required incremental update file, and generates a download address based on the incremental update file, and then sends the latest version number and download address of the buried point configuration file to the electronic device, and the electronic device receives the latest version number of the buried point configuration file, and buryes The point configuration file incremental update packet download address.
当服务器中APP最新版本号高于电子设备中APP当前版本号,而埋点配置文件版本号无更新,或者服务器中应用程序最新版本号高于电子设备中应用程序当前版本号,同时服务器中埋点配置文件最新版本号高于电子设备中埋点配置文件当前版本号时,更新方法和上述方法一样,在此就不赘述了。When the latest version number of the APP in the server is higher than the current version number of the APP in the electronic device, and the version number of the buried configuration file is not updated, or the latest version number of the application in the server is higher than the current version number of the application in the electronic device, and the server is buried in the server. When the latest version number of the point profile is higher than the current version number of the embedded profile in the electronic device, the update method is the same as the above method, and will not be described here.
步骤205,所述电子设备从所述埋点配置文件增量更新数据包的下载地址,下载所述埋点配置文件增量更新数据包。Step 205: The electronic device incrementally updates the download address of the data packet from the buried point configuration file, and downloads the buried point configuration file incremental update data packet.
电子设备在接收到埋点配置文件增量更新数据包的下载地址后,就可以从该下载地址下载所述埋点配置文件增量更新数据包。After receiving the download address of the burying point configuration file incremental update data packet, the electronic device may download the burying point configuration file incremental update data packet from the download address.
步骤206,所述电子设备通过解封装所述埋点配置文件增量更新数据包,获得埋点配置文件增量更新数据。Step 206: The electronic device incrementally updates the data packet by decapsulating the buried point configuration file to obtain the embedded point configuration file incremental update data.
步骤207,所述电子设备将所述埋点配置文件增量更新数据与所述埋点配置文件进行合并。Step 207: The electronic device merges the buried point profile incremental update data with the buried point configuration file.
因为是增量更新,所以所述电子设备将增量更新数据添加至本地的埋点配置文件中就可以了。Because it is an incremental update, the electronic device adds incremental update data to the local buried configuration file.
在本发明实施例中,当用户启动应用程序之后,执行该应用程序的电子设备会向服务器发送埋点配置文件更新请求。若服务器中存在更新文件,则服务器会依据更新文件生成埋点配置文件增量更新数据包的下载地址反馈给电子设备,电子设备从下载地址下载埋点配置文件增量更新数据包并对本地埋点配置文件进行更新,然后再依据最新的埋点配置文件来对应用程序的页面进行埋点和业务字段的提取。这样,执行该应用程序的电子设备可以不断更新本地的埋点配置文件,保证了埋点配置文件的即时性和准确率, 而且,因为是采用增量更新的方式进行更新,所以,在更新埋点配置文件时减少了服务器、电子设备的硬件开销,同时节省了流量。In the embodiment of the present invention, after the user starts the application, the electronic device executing the application sends a burying profile update request to the server. If there is an update file in the server, the server will feed back the download address of the buried point configuration file incremental update data packet to the electronic device according to the update file, and the electronic device downloads the buried point configuration file incremental update data package from the download address and buryes the data locally. The point profile is updated, and then the application's page is extracted and the business field is extracted according to the latest buried point configuration file. In this way, the electronic device executing the application can continuously update the local buried point configuration file, ensuring the immediacy and accuracy of the buried point configuration file, and, because it is updated by means of incremental update, it is buried in the update. Point configuration files reduce the hardware overhead of servers and electronic devices while saving traffic.
图3是根据本申请一实施例示出的一种在应用程序中提取业务字段的装置的结构框图,所述提取业务字段的装置可以包括如下模块:FIG. 3 is a structural block diagram of an apparatus for extracting a service field in an application, where the apparatus for extracting a service field may include the following modules, according to an embodiment of the present application:
检测模块301,用于读取针对所述应用程序的埋点配置文件,并检测针对所述应用程序的页面跳转指令;The detecting module 301 is configured to read a buried point configuration file for the application, and detect a page jump instruction for the application;
提取模块302,用于当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;The extracting module 302 is configured to: when detecting the page jump instruction, extract a service field from a URL of a page of the application according to the buried point configuration file;
发送模块303,用于向服务器发送所述业务字段。The sending module 303 is configured to send the service field to the server.
在一实施例中,所述埋点配置文件由所述服务器派发到执行所述应用程序的电子设备中。In an embodiment, the buried point profile is dispatched by the server to an electronic device executing the application.
在一实施例中,所述提取业务字段的装置还包括:In an embodiment, the device for extracting a service field further includes:
所述发送模块,还用于向所述服务器发送埋点配置文件更新请求;所述埋点配置文件更新请求包括所述应用程序的当前版本号、所述埋点配置文件的当前版本号;The sending module is further configured to send a burying point configuration file update request to the server; the burying point configuration file update request includes a current version number of the application, and a current version number of the burying point configuration file;
接收模块,用于在所述服务器中所述应用程序的最新版本号高于所述应用程序的当前版本号和/或所述埋点配置文件的最新版本号高于所述埋点配置文件的当前版本号,则接收所述服务器返回的所述埋点配置文件的最新版本号,以及埋点配置文件增量更新数据包的下载地址;a receiving module, configured to: in the server, a latest version number of the application is higher than a current version number of the application and/or a latest version number of the buried point configuration file is higher than the buried point configuration file Receiving, by the current version number, the latest version number of the buried point configuration file returned by the server, and a download address of the buried point configuration file incremental update data packet;
下载模块,用于从所述埋点配置文件增量更新数据包的下载地址,下载所述埋点配置文件增量更新数据包;a downloading module, configured to incrementally update a data packet download address from the buried point configuration file, and download the buried point configuration file incremental update data packet;
解封装模块,用于解封装所述埋点配置文件增量更新数据包,以获得埋点配置文件增量更新数据;a decapsulation module, configured to decapsulate the buried point configuration file incremental update data packet to obtain a buried point configuration file incremental update data;
数据合并模块,用于将所述埋点配置文件增量更新数据与所述埋点配置文件进行合并。And a data merge module, configured to merge the buried point profile incremental update data with the buried point configuration file.
在一实施例中,所述埋点配置文件包括以下内容的至少一项:页面的名称、被埋点的控件,和待提取的业务字段的参数名。In an embodiment, the buried point configuration file includes at least one of the following: a name of the page, a control of the buried point, and a parameter name of the business field to be extracted.
在一实施例中,所述应用程序的各页面具有唯一的URL。In an embodiment, each page of the application has a unique URL.
在一实施例中,提取模块302还用于当检测到所述页面跳转指令时,指示所述应用程序由当前页面跳转至下一个页面;根据所述埋点配置文件提取所述当前页面的URL中业务字段的参数名的参数值以及所述下一个页面的URL中业务字段的参数名的参数值。In an embodiment, the extracting module 302 is further configured to: when detecting the page jump instruction, instructing the application to jump from the current page to the next page; extracting the current page according to the buried point configuration file The parameter value of the parameter name of the business field in the URL and the parameter value of the parameter name of the business field in the URL of the next page.
在一实施例中,所述提取模块302还用于在提取所述业务字段失败时,提取所述应用程序的页面的URL中的默认业务字段。In an embodiment, the extraction module 302 is further configured to extract a default service field in a URL of a page of the application when the service field is failed to be extracted.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本发明实施例还提供电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述提取业务字段的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the method for extracting the service field when the computer program is executed The various processes of the example can achieve the same technical effect. To avoid repetition, no further details are provided here.
本发明实施例还提供一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述提取业务字段的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的非临时性计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, and when the program is executed by the processor, each process of the method embodiment for extracting a service field is implemented, and the same technology can be achieved. The effect, to avoid repetition, will not be repeated here. The non-transitory computer readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments can be referred to each other.
本领域内的技术人员应明白,本发明实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的非临时性计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the invention may be provided as a method, apparatus, or computer program product. Thus, embodiments of the invention may be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, embodiments of the invention may employ computer program products embodied on one or more non-transitory computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer usable program code embodied therein. form.
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个 方框或多个方框中指定的功能的装置。Embodiments of the invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The instruction device implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device such that a series of operational steps are performed on the computer or other programmable terminal device to produce computer-implemented processing, such that the computer or other programmable terminal device The instructions executed above provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。While a preferred embodiment of the present invention has been described, it will be apparent that those skilled in the art can make further changes and modifications to the embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Furthermore, the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, or terminal device that includes a plurality of elements includes not only those elements but also Other elements that are included, or include elements inherent to such a process, method, article, or terminal device. An element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that comprises the element, without further limitation.
以上对本发明所提供的一种在应用程序中提取业务字段的方法和、一种在应用程序中提取业务字段的装置、电子设备及非临时性计算机可读存储介质,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The foregoing provides a method for extracting a service field in an application, a device for extracting a service field in an application, an electronic device, and a non-transitory computer readable storage medium, which are described in detail herein. The principles and embodiments of the present invention have been described using specific examples, and the description of the above embodiments is only for helping to understand the method of the present invention and its core ideas. Meanwhile, for those skilled in the art, the idea according to the present invention is The details of the present invention and the scope of application are subject to change, and the contents of the present specification should not be construed as limiting the present invention.

Claims (16)

  1. 一种在应用程序中提取业务字段的方法,其特征在于,所述应用程序执行于电子设备;所述方法包括:A method for extracting a service field in an application, wherein the application is executed on an electronic device; the method includes:
    所述电子设备读取针对所述应用程序的埋点配置文件,其中所述埋点配置文件被存储在所述电子设备中;The electronic device reads a buried point profile for the application, wherein the buried point profile is stored in the electronic device;
    所述电子设备检测针对所述应用程序的页面跳转指令;The electronic device detects a page jump instruction for the application;
    当检测到所述页面跳转指令时,所述电子设备按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;When detecting the page jump instruction, the electronic device extracts a service field from a URL of a page of the application according to the buried point configuration file;
    所述电子设备向服务器发送所述业务字段。The electronic device transmits the service field to a server.
  2. 根据权利要求1所述的方法,其特征在于,所述埋点配置文件由所述服务器派发到所述电子设备。The method of claim 1 wherein said buried point profile is dispatched by said server to said electronic device.
  3. 根据权利要求2所述的方法,其特征在于,还包括:The method of claim 2, further comprising:
    所述电子设备向所述服务器发送埋点配置文件更新请求;其中,所述埋点配置文件更新请求包括所述应用程序的当前版本号、所述埋点配置文件的当前版本号;The electronic device sends a burying point configuration file update request to the server, where the burying point configuration file update request includes a current version number of the application program and a current version number of the burying point configuration file;
    若所述服务器中所述应用程序的最新版本号高于所述应用程序的当前版本号和/或所述埋点配置文件的最新版本号高于所述埋点配置文件的当前版本号,则所述电子设备接收所述服务器返回的所述埋点配置文件的最新版本号,以及埋点配置文件增量更新数据包的下载地址;If the latest version number of the application in the server is higher than the current version number of the application and/or the latest version number of the buried configuration file is higher than the current version number of the buried configuration file, Receiving, by the electronic device, an latest version number of the buried point configuration file returned by the server, and a download address of a buried point configuration file incremental update data packet;
    所述电子设备从所述埋点配置文件增量更新数据包的下载地址,下载所述埋点配置文件增量更新数据包;The electronic device incrementally updates the download address of the data packet from the buried point configuration file, and downloads the buried point configuration file incremental update data packet;
    所述电子设备通过解封装所述埋点配置文件增量更新数据包,获得埋点配置文件增量更新数据;The electronic device incrementally updates the data packet by decapsulating the buried point configuration file to obtain incremental update data of the buried point configuration file;
    所述电子设备将所述埋点配置文件增量更新数据与所述埋点配置文件进行合并。The electronic device merges the buried point profile incremental update data with the buried point configuration file.
  4. 根据权利要求1至3之任一项所述的方法,其特征在于,所述埋点配置文件包括以下内容的至少一项:页面的名称、被埋点的控件和待提取的业务字段的参数名。The method according to any one of claims 1 to 3, wherein the buried point profile comprises at least one of the following: a name of the page, a control of the buried point, and a parameter of the business field to be extracted. name.
  5. 根据权利要求1至3之任一项所述的方法,其特征在于,所述应用程序的页面具有唯一的URL。A method according to any one of claims 1 to 3, wherein the page of the application has a unique URL.
  6. 根据权利要求1至3任一项所述的方法,其特征在于,当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取所述业务字段,包括:The method according to any one of claims 1 to 3, wherein, when the page jump instruction is detected, the service is extracted from a URL of a page of the application according to the buried point configuration file. Fields, including:
    当检测到所述页面跳转指令时,所述电子设备指示所述应用程序由当前页面跳转至 下一个页面;When detecting the page jump instruction, the electronic device instructs the application to jump from the current page to the next page;
    所述电子设备根据所述埋点配置文件从所述当前页面的URL中提取所述业务字段的参数名的参数值以及从所述下一个页面的URL中提取所述业务字段的参数名的参数值。Extracting, by the electronic device, a parameter value of a parameter name of the service field from a URL of the current page according to the buried point configuration file, and extracting a parameter of a parameter name of the service field from a URL of the next page value.
  7. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    若提取所述业务字段失败,则所述电子设备提取所述应用程序的页面的URL中的默认业务字段。If the extraction of the service field fails, the electronic device extracts a default service field in a URL of a page of the application.
  8. 一种在应用程序中提取业务字段的装置,包括:A device for extracting business fields in an application, comprising:
    检测模块,用于读取针对所述应用程序的埋点配置文件,并检测针对所述应用程序的页面跳转指令;a detecting module, configured to read a buried point configuration file for the application, and detect a page jump instruction for the application;
    提取模块,用于当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;An extracting module, configured to extract a service field from a URL of a page of the application according to the buried point configuration file when the page jump instruction is detected;
    发送模块,用于向服务器发送所述业务字段。a sending module, configured to send the service field to a server.
  9. 根据权利要求8所述的装置,其特征在于,所述埋点配置文件由所述服务器派发到执行所述应用程序的电子设备中。The apparatus of claim 8 wherein said buried point profile is dispatched by said server to an electronic device executing said application.
  10. 根据权利要求9所述的装置,其特征在于,还包括:The device according to claim 9, further comprising:
    所述发送模块,还用于向所述服务器发送埋点配置文件更新请求;其中,所述埋点配置文件更新请求包括所述应用程序的当前版本号、所述埋点配置文件的当前版本号;The sending module is further configured to send a burying point configuration file update request to the server, where the burying point configuration file update request includes a current version number of the application, and a current version number of the burying point configuration file. ;
    接收模块,用于在所述服务器中所述应用程序的最新版本号高于所述应用程序的当前版本号和/或所述埋点配置文件的最新版本号高于所述埋点配置文件的当前版本号时,接收所述服务器返回的所述埋点配置文件的最新版本号,以及埋点配置文件增量更新数据包的下载地址;a receiving module, configured to: in the server, a latest version number of the application is higher than a current version number of the application and/or a latest version number of the buried point configuration file is higher than the buried point configuration file Receiving, at a current version number, an latest version number of the buried point configuration file returned by the server, and a download address of a buried point configuration file incremental update data packet;
    下载模块,用于从所述埋点配置文件增量更新数据包的下载地址,下载所述埋点配置文件增量更新数据包;a downloading module, configured to incrementally update a data packet download address from the buried point configuration file, and download the buried point configuration file incremental update data packet;
    解封装模块,用于解封装所述埋点配置文件增量更新数据包,以获得埋点配置文件增量更新数据;a decapsulation module, configured to decapsulate the buried point configuration file incremental update data packet to obtain a buried point configuration file incremental update data;
    数据合并模块,用于将所述埋点配置文件增量更新数据与所述埋点配置文件进行合并。And a data merge module, configured to merge the buried point profile incremental update data with the buried point configuration file.
  11. 根据权利要求8至10之任一项所述的装置,其特征在于,所述埋点配置文件包括以下内容的至少一项:页面的名称、被埋点的控件,和待提取的业务字段的参数名。The apparatus according to any one of claims 8 to 10, wherein the buried point profile comprises at least one of the following: a name of a page, a control of a buried point, and a service field to be extracted. parameter name.
  12. 根据权利要求8至10之任一项所述的装置,其特征在于,所述应用程序的页 面具有唯一的URL。The apparatus according to any one of claims 8 to 10, wherein the page of the application has a unique URL.
  13. 根据权利要求8至10之任一项所述的装置,其特征在于,所述提取模块还用于:The device according to any one of claims 8 to 10, wherein the extraction module is further configured to:
    当检测到所述页面跳转指令时,指示所述应用程序由当前页面跳转至下一个页面;When the page jump instruction is detected, instructing the application to jump from the current page to the next page;
    根据所述埋点配置文件从所述当前页面的URL中提取所述业务字段的参数名的参数值以及从所述下一个页面的URL中提取所述业务字段的参数名的参数值。Extracting, from the URL of the current page, a parameter value of a parameter name of the service field according to the buried point configuration file, and extracting a parameter value of a parameter name of the service field from a URL of the next page.
  14. 根据权利要求8所述的装置,其特征在于,所述提取模块,还用于在提取所述业务字段失败时,提取所述应用程序的页面的URL中的默认业务字段。The device according to claim 8, wherein the extracting module is further configured to: when the fetching the service field fails, extract a default service field in a URL of a page of the application.
  15. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7任意一项所述的提取业务字段的方法。An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes any one of claims 1 to 7 when the computer program is executed The method of extracting a service field as described in the item.
  16. 一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1至7任意一项所述的提取业务字段的步骤。A non-transitory computer readable storage medium having stored thereon a computer program, characterized in that the program is executed by a processor to perform the step of extracting a service field according to any one of claims 1 to 7.
PCT/CN2018/110432 2017-12-29 2018-10-16 Method and apparatus for extracting service field, and electronic device and storage medium WO2019128392A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711475224.8A CN108255993A (en) 2017-12-29 2017-12-29 Extract method, apparatus, electronic equipment and the storage medium of service fields
CN201711475224.8 2017-12-29

Publications (1)

Publication Number Publication Date
WO2019128392A1 true WO2019128392A1 (en) 2019-07-04

Family

ID=62724578

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/110432 WO2019128392A1 (en) 2017-12-29 2018-10-16 Method and apparatus for extracting service field, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN108255993A (en)
WO (1) WO2019128392A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741046A (en) * 2019-11-07 2020-10-02 北京沃东天骏信息技术有限公司 Data reporting method, data acquisition method, device, equipment and medium
CN113821193A (en) * 2020-11-26 2021-12-21 北京京东振世信息技术有限公司 Information generation method and device and storage medium
EP3889770A4 (en) * 2020-02-19 2022-08-03 Beijing Baidu Netcom Science And Technology Co., Ltd. Mini program material processing method and apparatus, electronic device, and medium

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255993A (en) * 2017-12-29 2018-07-06 北京三快在线科技有限公司 Extract method, apparatus, electronic equipment and the storage medium of service fields
CN109040252B (en) * 2018-08-07 2022-04-12 平安科技(深圳)有限公司 File transmission method, system, computer device and storage medium
CN109669716A (en) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 Page control method, device, equipment and readable storage medium storing program for executing
CN109684583A (en) * 2018-11-12 2019-04-26 深圳壹账通智能科技有限公司 Analysis method, device, terminal and the readable storage medium storing program for executing of Page user behavior
CN111375200B (en) * 2018-12-28 2021-05-28 广州市百果园网络科技有限公司 Method and system for intelligently configuring game resources, computer storage medium and equipment
CN110099101A (en) * 2019-04-01 2019-08-06 厦门美柚信息科技有限公司 It is a kind of to bury method, system, equipment and its a storage medium for dynamic setting
CN110263070B (en) * 2019-05-30 2021-10-08 北京创鑫旅程网络技术有限公司 Event reporting method and device
CN110515821B (en) * 2019-08-30 2023-11-14 望海康信(北京)科技股份公司 Event processing method based on buried point, electronic equipment and computer storage medium
CN110750431B (en) * 2019-10-24 2023-11-03 阿里巴巴(中国)有限公司 Data embedded point configuration method and device
KR102647732B1 (en) * 2020-02-19 2024-03-15 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Mini App material processing methods, devices, electronic equipment and media
CN111371649B (en) * 2020-03-03 2021-11-30 恒为科技(上海)股份有限公司 Deep packet detection method and device
CN111459511B (en) * 2020-03-31 2023-06-16 北京百度网讯科技有限公司 Application program downloading method and device and electronic equipment
CN113010395A (en) * 2021-03-02 2021-06-22 中国工商银行股份有限公司 Data acquisition method, apparatus, device, medium, and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844217A (en) * 2017-01-26 2017-06-13 网易(杭州)网络有限公司 Control to applying bury method and device, readable storage medium storing program for executing a little
CN106909372A (en) * 2017-01-23 2017-06-30 武汉奇米网络科技有限公司 A kind of mobile end subscriber purchase path calculation method and system
CN107220230A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 A kind of information collecting method and device, and a kind of intelligent terminal
CN107343091A (en) * 2017-06-27 2017-11-10 努比亚技术有限公司 Data reporting method and system
CN108255993A (en) * 2017-12-29 2018-07-06 北京三快在线科技有限公司 Extract method, apparatus, electronic equipment and the storage medium of service fields

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079768B (en) * 2006-05-25 2010-11-03 阿里巴巴集团控股有限公司 A method for computing click data of webpage link
CN105786965A (en) * 2016-01-27 2016-07-20 久远谦长(北京)技术服务有限公司 URL-based user behavior analysis method and device
CN107025222A (en) * 2016-01-29 2017-08-08 五八同城信息技术有限公司 A kind of distributed information log acquisition method and device
CN105721224B (en) * 2016-03-31 2019-04-19 网易(杭州)网络有限公司 Uniform resource locator processing method, device and system
CN107436832B (en) * 2016-05-27 2020-11-27 阿里巴巴集团控股有限公司 Dynamic point burying method and device and electronic equipment
CN106469185A (en) * 2016-08-29 2017-03-01 浪潮电子信息产业股份有限公司 A kind of method carrying out data collection in website statistics
CN106446113A (en) * 2016-09-18 2017-02-22 成都九鼎瑞信科技股份有限公司 Mobile big data analysis method and device
CN106528432B (en) * 2016-12-12 2019-01-25 北京三快在线科技有限公司 The construction method and device of test scene data bury a test method
CN106649120A (en) * 2016-12-28 2017-05-10 中国银联股份有限公司 Data acquisition method, and data analysis method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220230A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 A kind of information collecting method and device, and a kind of intelligent terminal
CN106909372A (en) * 2017-01-23 2017-06-30 武汉奇米网络科技有限公司 A kind of mobile end subscriber purchase path calculation method and system
CN106844217A (en) * 2017-01-26 2017-06-13 网易(杭州)网络有限公司 Control to applying bury method and device, readable storage medium storing program for executing a little
CN107343091A (en) * 2017-06-27 2017-11-10 努比亚技术有限公司 Data reporting method and system
CN108255993A (en) * 2017-12-29 2018-07-06 北京三快在线科技有限公司 Extract method, apparatus, electronic equipment and the storage medium of service fields

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741046A (en) * 2019-11-07 2020-10-02 北京沃东天骏信息技术有限公司 Data reporting method, data acquisition method, device, equipment and medium
CN111741046B (en) * 2019-11-07 2023-01-31 北京沃东天骏信息技术有限公司 Data reporting method, data acquisition method, device, equipment and medium
EP3889770A4 (en) * 2020-02-19 2022-08-03 Beijing Baidu Netcom Science And Technology Co., Ltd. Mini program material processing method and apparatus, electronic device, and medium
CN113821193A (en) * 2020-11-26 2021-12-21 北京京东振世信息技术有限公司 Information generation method and device and storage medium
CN113821193B (en) * 2020-11-26 2023-09-26 北京京东振世信息技术有限公司 Information generation method, device and storage medium

Also Published As

Publication number Publication date
CN108255993A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
WO2019128392A1 (en) Method and apparatus for extracting service field, and electronic device and storage medium
CN107577459B (en) Dragging type cross-platform application development system and method based on componentization
KR102317535B1 (en) Methods and systems for implementing data tracking with software development kits
US10402483B2 (en) Screenshot processing device and method for same
US10565293B2 (en) Synchronizing DOM element references
US9158535B2 (en) Smart endpoint architecture
TWI528282B (en) Method for customizing launching of applications
US20240037208A1 (en) Determining authentication sub-flow and client authentication based on tests transmitted to server-side software
TWI608416B (en) Page return method and apparatus, page generation method and apparatus
US11611633B2 (en) Systems and methods for platform-independent application publishing to a front-end interface
CN104731589A (en) Automatic generation method and device of user interface (UI)
CN102893271B (en) Use the data uploading method of shortcut
US9454620B2 (en) Methods, apparatuses and computer program products for automated learning of data models
TW201839593A (en) Interaction processing method and device
CN103064738A (en) Method and system for embedding local application program window into browser in Linux
US11616860B2 (en) Information display method, terminal, and server
JP6368378B2 (en) User setting management using external sources
EP2823411A1 (en) A method and system of application development for multiple device client platforms
JPWO2013175560A1 (en) Information communication system and information conversion method
CN105094787B (en) Method and device for processing enterprise internet application
JP2013137687A (en) Generation method of application which does not need compilation
CN111026466A (en) File processing method and device, computer readable storage medium and electronic equipment
KR20160132854A (en) Asset collection service through capture of content
US10397083B2 (en) Terminal device identification systems, methods, and programs
CN111340705B (en) Application method, device and system of jigsaw software

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18896030

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18896030

Country of ref document: EP

Kind code of ref document: A1