WO2019128392A1 - 提取业务字段的方法、装置、电子设备及存储介质 - Google Patents

提取业务字段的方法、装置、电子设备及存储介质 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
English (en)
French (fr)
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/zh

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

本申请实施例提供了一种在应用程序中提取业务字段的方法和装置、电子设备及非临时性计算机可读存储介质。在一例子中,所述应用程序执行于电子设备,所述方法包括:所述电子设备读取存储于所述电子设备中针对所述应用程序的埋点配置文件;检测针对所述应用程序的页面跳转指令;当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;向服务器发送所述业务字段。

Description

提取业务字段的方法、装置、电子设备及存储介质
相关申请的交叉引用
本专利申请要求于2017年12月29日提交的、申请号为2017114752248、发明名称为“提取业务字段的方法、装置、电子设备及存储介质”的中国专利申请的优先权,该申请的全文以引用的方式并入本文中。
技术领域
本申请涉及一种在应用程序中提取业务字段的方法、装置、电子设备及非临时性计算机可读存储介质。
背景技术
埋点,是一种用于网站分析的数据采集方法,数据埋点是数据分析的准备工作,只有埋点了才可以获得数据进行分析。
在处理业务埋点的时候,不仅仅要跟踪用户的点击、滑动等行为,还要关联用户当前的上下文数据以辅助业务分析。比如在一个酒店详情页,如果用户点击了附近热销酒店,业务埋点需要上报当前酒店的ID(identifier,标识号)和被点击的热销酒店的ID。
在一实施例中,开发人员手动关联埋点业务数据,比如,开发人员手动将当前酒店的ID和被点击的热销酒店的ID与埋点业务数据进行关联。这样,一方面埋点业务数据的关联依赖于开发人员,另一方面,开发人员将埋点业务数据关联方案编写好以后,如果要修改方案,需要将整个方案进行替换。
发明内容
有鉴于此,本申请实施例提供一种在应用程序中提取业务字段的方法、装置、电子设备及非临时性计算机可读存储介质。
第一方面,本申请实施例公开了一种在应用程序中提取业务字段的方法,所述应用程序执行于电子设备;所述的方法包括:
读取针对所述应用程序的埋点配置文件,其中所述埋点配置文件被存储在所述电子 设备中;
检测针对所述应用程序的页面跳转指令;
当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;
向服务器发送所述业务字段。
第二方面,本申请实施例还公开了一种在应用程序中提取业务字段的装置,所述装置包括:
检测模块,用于读取针对所述应用程序的埋点配置文件,并检测针对所述应用程序的页面跳转指令;
提取模块,用于当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;
发送模块,用于向服务器发送所述业务字段。
第三方面,本申请实施例还公开了一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面所述的提取业务字段的方法。
第四方面,本申请实施例还公开了一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现上述第一方面所述的提取业务字段的方法。
在本申请实施例中,所述电子设备读取针对所述应用程序的埋点配置文件,并检测针对所述应用程序的页面跳转指令,当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段,并向服务器发送所述业务字段。这样,埋点发生的时候可以自动通过URL关联业务字段,不需要管理员手动关联。
附图说明
图1是根据本申请一实施例示出的一种在应用程序中提取业务字段的方法的流程图;
图2是根据本申请另一实施例示出的一种在应用程序中提取业务字段的方法的流程图;
图3是根据本申请一实施例示出的一种在应用程序中提取业务字段的装置的结构框图。
具体实施方式
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。
参照图1,示出了根据本申请一实施例的一种在应用程序中提取业务字段的方法的流程图,所述应用程序(Application,APP)可在电子设备上执行。
在本申请中,执行所述应用程序的电子设备(例如,移动终端)可以具有如下特点:
(1)在硬件体系上,电子设备具备中央处理器、存储器、输入部件和输出部件,也就是说,电子设备可以是具备通信功能的微型计算机设备。另外,还可以具有多种输入方式,诸如键盘、鼠标、触摸屏、送话器和摄像头等,并可以根据需要调整输入方式。电子设备具有多种输出方式,如受话器、显示屏等,也可以根据需要调整输出方式;
(2)在软件体系上,电子设备具备操作系统,如Windows Mobile、Symbian、Palm、Android、iOS等。这些操作系统是开放的,基于这些开放的操作系统平台开发的个性化应用程序层出不穷,如通信簿、日程表、记事本、计算器以及各类游戏等,极大程度地满足了个性化用户的需求;
(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,全球微波互联接入)等,从而适应多种制式网络。电子设备不仅支持语音业务,更支持多种无线数据业务;
(4)在功能使用上,电子设备更加注重人性化、个性化和多功能化。随着计算机技术的发展,设备从“以设备为中心”的模式进入“以人为中心”的模式,集成了嵌入式计算、控制技术、人工智能技术以及生物认证技术等。由于软件技术的发展,电子设备可以根据个人需求调整设置,更加个性化。同时,电子设备本身集成了众多软件和硬件, 功能也越来越强大。
在本发明一实施例中,在电子设备上安装指定的应用程序,比如“美团”APP。用户可以使用该指定的应用程序通过网络在商家购买外卖等餐饮,并且通过该指定的应用程序对餐饮、商家进行评价,任何人都可以在网络上看到商家、餐饮的所有评价;其中,评价可以包括文字评价、图片评价等方式的评价。
在本发明一实施例中,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跳转到该酒店详情页。
其中,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”。
而管理中心除了可以给APP的页面赋URL外,还可以控制页面的跳转。在一例子中,用户使用APP的当前页面为页面A,此时,用户想跳转到页面B,那么APP就会发送一个URL跳转请求,管理中心在接收到URL跳转请求后,检查有没有页面可以响应这个URL,如果有,就会反馈给APP,APP根据反馈跳转至相应的页面B,从而实现了从页面A跳转至页面B。
在本发明一实施例中,存储在所述电子设备中的埋点配置文件包括以下内容的至少一项:页面的名称、被埋点的控件,和待提取参数值的业务字段的参数名。
在本发明一实施例中,埋点配置文件由服务器派发到所述电子设备,以使得所述埋点配置文件能够应用于所述电子设备执行的所述应用程序中。埋点配置文件可以是JSON(JavaScript Object Notation)格式。埋点配置文件里面具体会说明哪个页面、该页面中的哪个控件需要埋点,需要提取什么业务字段、也就是哪个参数名的参数值。比如,酒店详情页一个按钮,如果用户点击该按钮的时候需要埋点,则埋点的时候需要提取当前酒店的参数名poiId的参数值。
需要说明的是,APP中的页面本身是不存在URL的,而是在管理中心为每个页面分配一个URL,所以,埋点配置文件中并不是直接记录APP的页面的URL,而是记录APP的页面的名称。
本申请实施例提供的在应用程序中提取业务字段的方法包括以下步骤101-103。
步骤101,所述电子设备读取针对所述应用程序的所述埋点配置文件,并检测针对所述应用程序的页面跳转指令,其中所述埋点配置文件被存储在所述电子设备中。
以“美团”APP为例,当用户在电子设备的桌面点击“美团”APP的图标时,则启动了“美团”APP。APP启动时,会有一个“主页”,类似于浏览器中的“主页”。当然,“主页”的URL也是管理中心赋予的。
在本申请实施例中,电子设备读取针对所述应用程序的埋点配置文件,并检测针对所述应用程序的页面跳转指令。APP页面的跳转需要控件的支持,例如,APP页面中展示有某个酒店的图片,而图片是与某个控件进行关联的,这样,当用户点击图片时,实际上是点击了与之关联的控件,从而触发URL跳转请求发送至管理中心,管理中心检测到与跳转的URL有关联的页面时,则反馈给APP,APP依据反馈跳转至相关页面,类似于在浏览器的某个网页中点击某个链接时,跳转到链接指向的网页的效果。
步骤102,当检测到所述页面跳转指令时,所述电子设备按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段。
埋点,是用于网站分析的数据采集方法。例如,在APP中增加埋点(也被称为监控点),这样从后台就可以清楚知道用户在这个监控点做了什么事情等等。
数据埋点是数据分析的准备工作,只有埋点了才可以获得数据进行分析,在数据埋点之后,就可以拿到想要的目标数据。目标数据包括:
1、行为数据:时间、地点、人物、交互的内容;
2、质量数据:浏览器加载情况、错误异常等;
3、环境数据:浏览器相关的元数据以及地理、运营商等;
4、运营数据:PV、UV、转化率、留存率等。
APP的页面的跳转是需要控件支持的,所以,在本发明实施例中,当用户触发某个控件时,先判断是否需要对该控件进行埋点。
在本发明实施例中,所述应用程序包括埋点SDK(Software Development Kit,软件 开发工具包)。
SDK是一些软件工程师为特定的软件包、软件框架、硬件平台、操作系统等建立应用软件时所使用的开发工具的集合。软件开发工具包括辅助开发某一类软件的相关文档、范例和工具的集合。SDK可以包括为某个程序设计语言提供应用程序接口API(Application Programming Interface)的一些文件,也可包括与某种嵌入式系统通讯的硬件。软件开发工具还包括用于调试和其他用途的实用工具。SDK还包括示例代码、支持性的技术注解或者为基本参考资料澄清疑点的支持文档。
在本发明一实施例中,电子设备可通过SDK从埋点配置文件中进行匹配,如果用户触发的控件在埋点配置文件中存在匹配项,则表示用户触发的控件是需要进行埋点的,如果不存在匹配项,则表示用户触发的控件是不需要进行埋点的。
其中,埋点配置文件是管理员在管理中心中进行配置的,例如,如果在用户点击酒店详情页上的一个按钮的时候需要埋点,那么管理员就配置这个按钮的点击事件需要埋点。这样,当用户点击该酒店详情页上的该按钮时,将提取该酒店详情页的URL里poiId参数的值。比如,假设酒店详情页的URL是imeituan://www.meituan.com/hotel/poi?&poiId=5249291&checkinDate=20170830&checkou tDate=20180901,那么提取到的参数“poiId”的值就是“5249291”。
当然,埋点配置文件可以是APP在安装的时候配置的,也可以是APP在安装之后,用户第一次启动APP时从服务器下载的,还可以是其它方式,本发明实施例对此不作限制。
在本发明实施例中,当所述页面中某个控件被触发时,检测所述控件是否存储于所述埋点配置文件中,包括:当所述应用程序的页面中的控件被触发时,所述电子设备可通过埋点软件开发工具包检测所述页面中的该控件是否为所述埋点配置文件中的控件。
在一实施例中,当所述电子设备通过SDK检测到APP的页面中的某个控件被触发时,获取该控件的标识信息;将该控件的标识信息与埋点配置文件进行匹配;若埋点配置文件中存在该控件的标识信息的匹配项,则表示用户触发的该控件是需要进行埋点的,如果不存在匹配项,则表示用户触发的该控件是不需要进行埋点的。
步骤103,电子设备向服务器发送所述业务字段。
在本发明一实施例中,按照所述埋点配置文件针对所述控件产生埋点,并依据所述应用程序的页面提取业务字段,包括:当页面跳转指令被触发时,所述电子设备指示所 述应用程序由当前页面跳转至下一个页面;并且,所述电子设备根据所述埋点配置文件从所述当前页面的URL中提取所述业务字段的参数名的参数值以及所述下一个页面的URL中提取指定的业务字段的参数名的参数值。
例如,当用户点击酒店详情页的按钮的时候,所述电子设备可通过SDK检查埋点配置文件中是否存储有该按钮。如果该按钮作为要进行埋点的控件存储于埋点配置文件中,那么就会产生一次埋点,而且,埋点配置文件包括需要提取参数值的业务字段的参数名,电子设备可通过SDK从当前页面的URL“imeituan://www.meituan.com/hotel/poi?&poiId=5249291&checkinDate=20170830&check outDate=20180901”中提取参数名“poiId”的参数值“5249291”。
当APP的页面跳转到下一个页面时,电子设备还会继续通过SDK提取下一页面中的业务字段。例如,从下一页面的URL“imeituan://www.meituan.com/hotel/poi?&poiId=6542314&checkinDate=20070101&check outDate=20070131”中提取参数名“poiId”的参数值“6542314”。
在本发明一实施例中,若提取指定业务字段失败,则提取所述应用程序的页面的URL中的默认业务字段。
在实际应用中,有可能会出现在埋点配置文件中指定要提取“poiId”参数的参数值,但是页面的URL中并没有“poiId”参数,此时,可认为提取相应的业务字段失败。在这种情况下,就可提取APP当前页面和跳转的下一个页面的URL中的默认业务字段,也就是默认的参数名的参数值。还是以酒店详情页的按钮为例,如果对酒店详情页的URL没有配置poiId字段,则电子设备可通过SDK提取URL中的默认业务字段。其中,默认业务字段包括比如dealId、orderId、cateId、packageId、cityId、goodId、otherId等7个业务字段中的任一。
在一实施例中,服务器中存储有管理员预先配置好的埋点配置文件。例如,管理员在管理中心中配置埋点配置文件,并在配置完成后发送给服务器。APP在电子设备上第一次被使用时,APP可以从服务器下载预先配置好的埋点配置文件。此后,在使用APP的过程中,若产生的埋点和提取到的业务字段不属于预设的埋点配置文件,那么电子设备可通过该APP将产生的埋点和提取到的业务字段发送给服务器,以使得服务器能够将该APP发送的埋点和业务字段更新到预设的埋点配置文件中。这样,其它电子设备上的APP第一次使用时,下载到的埋点配置文件就是更新后的埋点配置文件了。
在本发明实施例中,所述电子设备读取针对所述应用程序的所述埋点配置文件,并检测针对所述应用程序的页面跳转指令,当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段,并向服务器发送所述业务字段。这样,埋点发生的时候可以自动通过URL关联业务字段,不需要管理员手动关联,而且,对关联的业务字段进行提取后将提取到的数据自动上传给服务器,服务器可以将上传的业务字段更新至预设的埋点配置文件中,实现了对埋点配置文件的动态修改,灵活配置。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。
参照图2,示出了根据本发明一实施例的一种在应用程序中提取业务字段的方法的流程图,所述应用程序执行于电子设备上;该方法可以包括以下步骤:
步骤201,所述电子设备读取针对所述应用程序的所述埋点配置文件,并检测针对所述应用程序的页面跳转指令,其中所述埋点配置文件被存储在所述电子设备中。
步骤202,当检测到所述页面跳转指令时,所述电子设备按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段。
在实际应用中,为保证所述埋点配置文件为最新的埋点配置文件,电子设备会将埋点配置文件的当前版本号、APP的当前版本号发送至服务器,以及埋点配置文件更新请求发送至服务器。
步骤203,所述电子设备向服务器发送所述业务字段;
步骤204,若服务器中应用程序的最新版本号高于应用程序的当前版本号和/或埋点配置文件的最新版本号高于埋点配置文件的当前版本号,则所述电子设备接收所述服务器返回的埋点配置文件的最新版本号,以及埋点配置文件增量更新数据包的下载地址。
服务器中存储有管理员预先配置好的埋点配置文件,但是,每个用户在使用APP的过程中,新的数据可能会被上传至服务器,所以,服务器会不断的更新埋点配置文件。这样,埋点配置文件的版本号也会不断更新。当服务器接收到电子设备发送的埋点配置文件更新请求后,会将电子设备中APP的当前版本号与服务器中APP的最新版本号进 行对比,将APP中埋点配置文件的当前版本号与服务器中埋点配置文件的最新版本号进行对比。若服务器中应用程序的最新版本号高于电子设备中应用程序的当前版本号,和/或,服务器中埋点配置文件的最新版本号高于电子设备中埋点配置文件的当前版本号,那么服务器根据埋点配置文件版本号的差异获取增量更新文件。例如,APP中埋点配置文件的当前版本号为10.1.25,而服务器中埋点配置文件的最新版本号为10.1.64,那么服务器会获取埋点配置文件从10.1.25升级至10.1.64所需要的增量更新文件,并基于增量更新文件生成下载地址,然后将埋点配置文件的最新版本号、下载地址发送给电子设备,电子设备接收埋点配置文件的最新版本号,以及埋点配置文件增量更新数据包的下载地址。
当服务器中APP最新版本号高于电子设备中APP当前版本号,而埋点配置文件版本号无更新,或者服务器中应用程序最新版本号高于电子设备中应用程序当前版本号,同时服务器中埋点配置文件最新版本号高于电子设备中埋点配置文件当前版本号时,更新方法和上述方法一样,在此就不赘述了。
步骤205,所述电子设备从所述埋点配置文件增量更新数据包的下载地址,下载所述埋点配置文件增量更新数据包。
电子设备在接收到埋点配置文件增量更新数据包的下载地址后,就可以从该下载地址下载所述埋点配置文件增量更新数据包。
步骤206,所述电子设备通过解封装所述埋点配置文件增量更新数据包,获得埋点配置文件增量更新数据。
步骤207,所述电子设备将所述埋点配置文件增量更新数据与所述埋点配置文件进行合并。
因为是增量更新,所以所述电子设备将增量更新数据添加至本地的埋点配置文件中就可以了。
在本发明实施例中,当用户启动应用程序之后,执行该应用程序的电子设备会向服务器发送埋点配置文件更新请求。若服务器中存在更新文件,则服务器会依据更新文件生成埋点配置文件增量更新数据包的下载地址反馈给电子设备,电子设备从下载地址下载埋点配置文件增量更新数据包并对本地埋点配置文件进行更新,然后再依据最新的埋点配置文件来对应用程序的页面进行埋点和业务字段的提取。这样,执行该应用程序的电子设备可以不断更新本地的埋点配置文件,保证了埋点配置文件的即时性和准确率, 而且,因为是采用增量更新的方式进行更新,所以,在更新埋点配置文件时减少了服务器、电子设备的硬件开销,同时节省了流量。
图3是根据本申请一实施例示出的一种在应用程序中提取业务字段的装置的结构框图,所述提取业务字段的装置可以包括如下模块:
检测模块301,用于读取针对所述应用程序的埋点配置文件,并检测针对所述应用程序的页面跳转指令;
提取模块302,用于当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;
发送模块303,用于向服务器发送所述业务字段。
在一实施例中,所述埋点配置文件由所述服务器派发到执行所述应用程序的电子设备中。
在一实施例中,所述提取业务字段的装置还包括:
所述发送模块,还用于向所述服务器发送埋点配置文件更新请求;所述埋点配置文件更新请求包括所述应用程序的当前版本号、所述埋点配置文件的当前版本号;
接收模块,用于在所述服务器中所述应用程序的最新版本号高于所述应用程序的当前版本号和/或所述埋点配置文件的最新版本号高于所述埋点配置文件的当前版本号,则接收所述服务器返回的所述埋点配置文件的最新版本号,以及埋点配置文件增量更新数据包的下载地址;
下载模块,用于从所述埋点配置文件增量更新数据包的下载地址,下载所述埋点配置文件增量更新数据包;
解封装模块,用于解封装所述埋点配置文件增量更新数据包,以获得埋点配置文件增量更新数据;
数据合并模块,用于将所述埋点配置文件增量更新数据与所述埋点配置文件进行合并。
在一实施例中,所述埋点配置文件包括以下内容的至少一项:页面的名称、被埋点的控件,和待提取的业务字段的参数名。
在一实施例中,所述应用程序的各页面具有唯一的URL。
在一实施例中,提取模块302还用于当检测到所述页面跳转指令时,指示所述应用程序由当前页面跳转至下一个页面;根据所述埋点配置文件提取所述当前页面的URL中业务字段的参数名的参数值以及所述下一个页面的URL中业务字段的参数名的参数值。
在一实施例中,所述提取模块302还用于在提取所述业务字段失败时,提取所述应用程序的页面的URL中的默认业务字段。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本发明实施例还提供电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述提取业务字段的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述提取业务字段的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的非临时性计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
本领域内的技术人员应明白,本发明实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的非临时性计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个 方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
以上对本发明所提供的一种在应用程序中提取业务字段的方法和、一种在应用程序中提取业务字段的装置、电子设备及非临时性计算机可读存储介质,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (16)

  1. 一种在应用程序中提取业务字段的方法,其特征在于,所述应用程序执行于电子设备;所述方法包括:
    所述电子设备读取针对所述应用程序的埋点配置文件,其中所述埋点配置文件被存储在所述电子设备中;
    所述电子设备检测针对所述应用程序的页面跳转指令;
    当检测到所述页面跳转指令时,所述电子设备按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;
    所述电子设备向服务器发送所述业务字段。
  2. 根据权利要求1所述的方法,其特征在于,所述埋点配置文件由所述服务器派发到所述电子设备。
  3. 根据权利要求2所述的方法,其特征在于,还包括:
    所述电子设备向所述服务器发送埋点配置文件更新请求;其中,所述埋点配置文件更新请求包括所述应用程序的当前版本号、所述埋点配置文件的当前版本号;
    若所述服务器中所述应用程序的最新版本号高于所述应用程序的当前版本号和/或所述埋点配置文件的最新版本号高于所述埋点配置文件的当前版本号,则所述电子设备接收所述服务器返回的所述埋点配置文件的最新版本号,以及埋点配置文件增量更新数据包的下载地址;
    所述电子设备从所述埋点配置文件增量更新数据包的下载地址,下载所述埋点配置文件增量更新数据包;
    所述电子设备通过解封装所述埋点配置文件增量更新数据包,获得埋点配置文件增量更新数据;
    所述电子设备将所述埋点配置文件增量更新数据与所述埋点配置文件进行合并。
  4. 根据权利要求1至3之任一项所述的方法,其特征在于,所述埋点配置文件包括以下内容的至少一项:页面的名称、被埋点的控件和待提取的业务字段的参数名。
  5. 根据权利要求1至3之任一项所述的方法,其特征在于,所述应用程序的页面具有唯一的URL。
  6. 根据权利要求1至3任一项所述的方法,其特征在于,当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取所述业务字段,包括:
    当检测到所述页面跳转指令时,所述电子设备指示所述应用程序由当前页面跳转至 下一个页面;
    所述电子设备根据所述埋点配置文件从所述当前页面的URL中提取所述业务字段的参数名的参数值以及从所述下一个页面的URL中提取所述业务字段的参数名的参数值。
  7. 根据权利要求1所述的方法,其特征在于,还包括:
    若提取所述业务字段失败,则所述电子设备提取所述应用程序的页面的URL中的默认业务字段。
  8. 一种在应用程序中提取业务字段的装置,包括:
    检测模块,用于读取针对所述应用程序的埋点配置文件,并检测针对所述应用程序的页面跳转指令;
    提取模块,用于当检测到所述页面跳转指令时,按照所述埋点配置文件从所述应用程序的页面的URL中提取业务字段;
    发送模块,用于向服务器发送所述业务字段。
  9. 根据权利要求8所述的装置,其特征在于,所述埋点配置文件由所述服务器派发到执行所述应用程序的电子设备中。
  10. 根据权利要求9所述的装置,其特征在于,还包括:
    所述发送模块,还用于向所述服务器发送埋点配置文件更新请求;其中,所述埋点配置文件更新请求包括所述应用程序的当前版本号、所述埋点配置文件的当前版本号;
    接收模块,用于在所述服务器中所述应用程序的最新版本号高于所述应用程序的当前版本号和/或所述埋点配置文件的最新版本号高于所述埋点配置文件的当前版本号时,接收所述服务器返回的所述埋点配置文件的最新版本号,以及埋点配置文件增量更新数据包的下载地址;
    下载模块,用于从所述埋点配置文件增量更新数据包的下载地址,下载所述埋点配置文件增量更新数据包;
    解封装模块,用于解封装所述埋点配置文件增量更新数据包,以获得埋点配置文件增量更新数据;
    数据合并模块,用于将所述埋点配置文件增量更新数据与所述埋点配置文件进行合并。
  11. 根据权利要求8至10之任一项所述的装置,其特征在于,所述埋点配置文件包括以下内容的至少一项:页面的名称、被埋点的控件,和待提取的业务字段的参数名。
  12. 根据权利要求8至10之任一项所述的装置,其特征在于,所述应用程序的页 面具有唯一的URL。
  13. 根据权利要求8至10之任一项所述的装置,其特征在于,所述提取模块还用于:
    当检测到所述页面跳转指令时,指示所述应用程序由当前页面跳转至下一个页面;
    根据所述埋点配置文件从所述当前页面的URL中提取所述业务字段的参数名的参数值以及从所述下一个页面的URL中提取所述业务字段的参数名的参数值。
  14. 根据权利要求8所述的装置,其特征在于,所述提取模块,还用于在提取所述业务字段失败时,提取所述应用程序的页面的URL中的默认业务字段。
  15. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7任意一项所述的提取业务字段的方法。
  16. 一种非临时性计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1至7任意一项所述的提取业务字段的步骤。
PCT/CN2018/110432 2017-12-29 2018-10-16 提取业务字段的方法、装置、电子设备及存储介质 WO2019128392A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711475224.8A CN108255993A (zh) 2017-12-29 2017-12-29 提取业务字段的方法、装置、电子设备及存储介质
CN201711475224.8 2017-12-29

Publications (1)

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

Family

ID=62724578

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/110432 WO2019128392A1 (zh) 2017-12-29 2018-10-16 提取业务字段的方法、装置、电子设备及存储介质

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741046A (zh) * 2019-11-07 2020-10-02 北京沃东天骏信息技术有限公司 数据上报方法、获取方法、装置、设备及介质
CN113821193A (zh) * 2020-11-26 2021-12-21 北京京东振世信息技术有限公司 一种信息生成的方法、装置和存储介质
EP3889770A4 (en) * 2020-02-19 2022-08-03 Beijing Baidu Netcom Science And Technology Co., Ltd. METHOD AND APPARATUS FOR PROCESSING MINIPROGRAM HARDWARE, ELECTRONIC DEVICE AND MEDIA

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255993A (zh) * 2017-12-29 2018-07-06 北京三快在线科技有限公司 提取业务字段的方法、装置、电子设备及存储介质
CN109040252B (zh) * 2018-08-07 2022-04-12 平安科技(深圳)有限公司 文件传输方法、系统、计算机设备和存储介质
CN109669716A (zh) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 页面控制方法、装置、设备及可读存储介质
CN109684583A (zh) * 2018-11-12 2019-04-26 深圳壹账通智能科技有限公司 页面用户行为的分析方法、装置、终端及可读存储介质
CN111375200B (zh) * 2018-12-28 2021-05-28 广州市百果园网络科技有限公司 智能配置游戏资源方法、系统及计算机存储介质、设备
CN110099101A (zh) * 2019-04-01 2019-08-06 厦门美柚信息科技有限公司 一种埋点动态设置的方法、系统、设备及其存储介质
CN110263070B (zh) * 2019-05-30 2021-10-08 北京创鑫旅程网络技术有限公司 事件上报方法及装置
CN110515821B (zh) * 2019-08-30 2023-11-14 望海康信(北京)科技股份公司 基于埋点的事件处理方法、电子设备及计算机存储介质
CN110750431B (zh) * 2019-10-24 2023-11-03 阿里巴巴(中国)有限公司 数据埋点配置方法及装置
KR102647732B1 (ko) * 2020-02-19 2024-03-15 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. 미니 앱 재료 처리 방법, 장치, 전자 설비 및 매체
CN111371649B (zh) * 2020-03-03 2021-11-30 恒为科技(上海)股份有限公司 一种深度包检测方法及装置
CN111459511B (zh) * 2020-03-31 2023-06-16 北京百度网讯科技有限公司 应用程序的下载方法、装置及电子设备
CN113010395A (zh) * 2021-03-02 2021-06-22 中国工商银行股份有限公司 数据采集方法、装置、设备、介质和程序产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844217A (zh) * 2017-01-26 2017-06-13 网易(杭州)网络有限公司 对应用的控件进行埋点的方法及装置、可读存储介质
CN106909372A (zh) * 2017-01-23 2017-06-30 武汉奇米网络科技有限公司 一种移动端用户购买路径计算方法及系统
CN107220230A (zh) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 一种信息采集方法和装置,以及一种智能终端
CN107343091A (zh) * 2017-06-27 2017-11-10 努比亚技术有限公司 数据上报方法及系统
CN108255993A (zh) * 2017-12-29 2018-07-06 北京三快在线科技有限公司 提取业务字段的方法、装置、电子设备及存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079768B (zh) * 2006-05-25 2010-11-03 阿里巴巴集团控股有限公司 一种统计网页链接点击数据的方法
CN105786965A (zh) * 2016-01-27 2016-07-20 久远谦长(北京)技术服务有限公司 一种基于url的用户行为分析方法和装置
CN107025222A (zh) * 2016-01-29 2017-08-08 五八同城信息技术有限公司 一种分布式日志采集方法及装置
CN105721224B (zh) * 2016-03-31 2019-04-19 网易(杭州)网络有限公司 统一资源定位符处理方法、装置和系统
CN107436832B (zh) * 2016-05-27 2020-11-27 阿里巴巴集团控股有限公司 一种动态埋点的方法、装置及电子设备
CN106469185A (zh) * 2016-08-29 2017-03-01 浪潮电子信息产业股份有限公司 一种网站统计中进行数据收集的方法
CN106446113A (zh) * 2016-09-18 2017-02-22 成都九鼎瑞信科技股份有限公司 移动大数据解析方法及装置
CN106528432B (zh) * 2016-12-12 2019-01-25 北京三快在线科技有限公司 测试场景数据的构建方法及装置、埋点测试方法
CN106649120A (zh) * 2016-12-28 2017-05-10 中国银联股份有限公司 一种数据获取方法、分析方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220230A (zh) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 一种信息采集方法和装置,以及一种智能终端
CN106909372A (zh) * 2017-01-23 2017-06-30 武汉奇米网络科技有限公司 一种移动端用户购买路径计算方法及系统
CN106844217A (zh) * 2017-01-26 2017-06-13 网易(杭州)网络有限公司 对应用的控件进行埋点的方法及装置、可读存储介质
CN107343091A (zh) * 2017-06-27 2017-11-10 努比亚技术有限公司 数据上报方法及系统
CN108255993A (zh) * 2017-12-29 2018-07-06 北京三快在线科技有限公司 提取业务字段的方法、装置、电子设备及存储介质

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741046A (zh) * 2019-11-07 2020-10-02 北京沃东天骏信息技术有限公司 数据上报方法、获取方法、装置、设备及介质
CN111741046B (zh) * 2019-11-07 2023-01-31 北京沃东天骏信息技术有限公司 数据上报方法、获取方法、装置、设备及介质
EP3889770A4 (en) * 2020-02-19 2022-08-03 Beijing Baidu Netcom Science And Technology Co., Ltd. METHOD AND APPARATUS FOR PROCESSING MINIPROGRAM HARDWARE, ELECTRONIC DEVICE AND MEDIA
CN113821193A (zh) * 2020-11-26 2021-12-21 北京京东振世信息技术有限公司 一种信息生成的方法、装置和存储介质
CN113821193B (zh) * 2020-11-26 2023-09-26 北京京东振世信息技术有限公司 一种信息生成的方法、装置和存储介质

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2019128392A1 (zh) 提取业务字段的方法、装置、电子设备及存储介质
CN107577459B (zh) 一种基于组件化的拖拽式跨平台应用开发系统及方法
KR102317535B1 (ko) 소프트웨어 개발 키트로 데이터 추적을 구현하는 방법 및 시스템
US10565293B2 (en) Synchronizing DOM element references
US20160217114A1 (en) Screenshot processing device and method for same
TWI528282B (zh) 用於自訂應用程式的啟動之方法
US20240037208A1 (en) Determining authentication sub-flow and client authentication based on tests transmitted to server-side software
TWI608416B (zh) Page return method and apparatus, page generation method and apparatus
CN104731589A (zh) 用户界面的自动生成方法及自动生成装置
WO2014206054A1 (en) Systems and methods for pushing applications
CN102893271B (zh) 使用快捷方式的数据上传方法
US9454620B2 (en) Methods, apparatuses and computer program products for automated learning of data models
US11611633B2 (en) Systems and methods for platform-independent application publishing to a front-end interface
TW201814509A (zh) 實現網路頁面與本體應用通信的方法、裝置和電子設備
CN103064738A (zh) Linux下本地应用程序窗体嵌入浏览器的方法及系统
CN108345467B (zh) 版本树文件的更新方法和装置
US11616860B2 (en) Information display method, terminal, and server
JP6368378B2 (ja) 外部ソースを用いたユーザ設定管理
WO2013134813A1 (en) A method and system of application development for multiple device client platforms
JPWO2013175560A1 (ja) 情報通信システム及び情報変換方法
CN105094787B (zh) 企业互联网应用的处理方法及装置
WO2016081003A1 (en) Techniques to transform network resource requests to zero rated network requests
JP2013137687A (ja) コンパイルレスなアプリケーション生成方法
CN111026466A (zh) 文件处理方法、装置、计算机可读存储介质及电子设备
US10397083B2 (en) Terminal device identification systems, methods, and programs

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