Method and device for processing buried point data, computer device and storage medium
By obtaining user identifiers and main session identifiers in the mini-program environment and using the mapping dimension table to obtain initial parameters, the problems of bandwidth pressure on data tracking points and low efficiency of manual analysis are solved, and efficient and accurate data report generation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- PING AN HEALTH INSURANCE CO LTD
- Filing Date
- 2023-04-12
- Publication Date
- 2026-07-07
AI Technical Summary
In existing technologies, application-level data tracking carries a large number of parameters, leading to bandwidth pressure and resource waste. Furthermore, manual analysis is inefficient and prone to errors.
By determining the mini-program environment, the target user identifier and main session identifier are obtained. Initial parameters are obtained using the mapping dimension table, data collection points are collected, business analysis data is constructed, and data reports are automatically generated.
It reduces the bandwidth cost of data tracking, improves the efficiency and accuracy of data report generation, and reduces resource waste.
Smart Images

Figure CN116738084B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of big data technology, and in particular to methods, apparatus, computer equipment and storage media for processing embedded data. Background Technology
[0002] With the rapid development of mobile internet technology, various types of applications have emerged to meet user needs. During application development, it is typically necessary to implement event tracking to collect user behavior data while using the application. This data is then used to analyze user needs and enable refined operations based on those needs.
[0003] In existing technologies, when implementing event tracking for applications, the uploaded tracking data carries numerous parameters, which can strain bandwidth and waste resources. Furthermore, manual analysis of the tracking data is required to construct data reports, resulting in high labor costs, low efficiency, and a high risk of errors. Summary of the Invention
[0004] The purpose of this application is to provide a method, apparatus, computer device, and storage medium for processing event tracking data. This addresses the problems in the prior art where, when tracking data is uploaded to applications, it carries numerous parameters, which puts pressure on bandwidth and wastes resources. Furthermore, manual analysis of the event tracking data is required to construct data reports, resulting in high labor costs, low efficiency, and a susceptibility to errors.
[0005] To address the aforementioned technical problems, this application provides a method for processing embedded data, employing the following technical solution:
[0006] When a business operation triggered by a target user on a target page is received, it is determined whether the current environment corresponding to the target page is a mini-program environment;
[0007] If so, obtain the target user identifier corresponding to the target user, and obtain the target main session identifier corresponding to the target user identifier;
[0008] Retrieve the target initial parameters corresponding to the target main session identifier from the preset mapping dimension table;
[0009] Obtain target tracking data collected when a preset target tracking event is executed on the target page;
[0010] Target business analysis data is constructed based on the target initial parameters and the target embedded data.
[0011] Target data reports are constructed based on the target business analysis data.
[0012] Furthermore, before the step of obtaining the target tracking data collected when the preset target tracking event is executed on the target page, the method further includes:
[0013] Get the event tracking configuration information input by the specified user;
[0014] The location of the embedding point is determined based on the embedding point configuration information;
[0015] Generate corresponding tracking code based on the tracking configuration information;
[0016] The event tracking code is inserted into the event tracking location on the target page to generate the target event tracking event.
[0017] Furthermore, the step of constructing a target data report based on the target business analysis data specifically includes:
[0018] Retrieve preset report building rules;
[0019] The target business analysis data is analyzed based on the report construction rules to generate the target data report corresponding to the target business analysis data.
[0020] Furthermore, before the steps of obtaining the target user identifier corresponding to the target user and obtaining the target main session identifier corresponding to the target user identifier, the method further includes:
[0021] When a user launches the target mini-program corresponding to the target page for the first time, the user identifier corresponding to the user is obtained through a preset user information interface.
[0022] A main session identifier corresponding to the user identifier is generated based on a preset cache database;
[0023] Obtain the startup information corresponding to the user;
[0024] Obtain the initial parameters corresponding to the preset data type from the startup information;
[0025] The initial parameters and the main session identifier are included in the business event tracking corresponding to the target mini-program, so that when the launch event of the target mini-program is detected, the initial parameters and the main session identifier are uploaded as event tracking data to a preset data interface.
[0026] Furthermore, before the step of obtaining the target initial parameter corresponding to the target main session identifier from the preset mapping dimension table, the method further includes:
[0027] Retrieve all mini-program launch events corresponding to the target mini-program;
[0028] Obtain the business tracking data corresponding to each of the aforementioned mini-program launch events;
[0029] The mapping dimension table is constructed based on the main session identifier and initial parameters contained in the data of each business tracking point.
[0030] Furthermore, after the step of generating the main session identifier corresponding to the user identifier based on the preset cache database, the process specifically includes:
[0031] Determine whether the cache database stores an initial main session identifier corresponding to the user identifier;
[0032] If an initial main session identifier corresponding to the user identifier is stored, then the initial main session identifier is overwritten using the main session identifier;
[0033] If no initial main session identifier corresponding to the user identifier is stored, the main session identifier is stored in the cache database.
[0034] Furthermore, after the step of constructing the target data report based on the target business analysis data, the method further includes:
[0035] Obtain the page identifier corresponding to the target page;
[0036] Based on the page identifier, the target storage block corresponding to the page identifier is determined from all storage blocks contained in the preset blockchain;
[0037] The target data report is stored in the target storage block.
[0038] To address the aforementioned technical problems, this application also provides a data processing device for embedded data, which employs the following technical solution:
[0039] The first judgment module is used to determine whether the current environment corresponding to the target page is a mini-program environment when a business operation triggered by the target user on the target page is received.
[0040] The first acquisition module is used to, if yes, acquire the target user identifier corresponding to the target user, and acquire the target main session identifier corresponding to the target user identifier;
[0041] The second acquisition module is used to acquire the target initial parameters corresponding to the target main session identifier from a preset mapping dimension table;
[0042] The third acquisition module is used to acquire target tracking data collected when a preset target tracking event is executed on the target page.
[0043] The first construction module is used to construct target business analysis data based on the target initial parameters and the target embedded data;
[0044] The second construction module is used to construct a target data report based on the target business analysis data.
[0045] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution:
[0046] When a business operation triggered by a target user on a target page is received, it is determined whether the current environment corresponding to the target page is a mini-program environment;
[0047] If so, obtain the target user identifier corresponding to the target user, and obtain the target main session identifier corresponding to the target user identifier;
[0048] Retrieve the target initial parameters corresponding to the target main session identifier from the preset mapping dimension table;
[0049] Obtain target tracking data collected when a preset target tracking event is executed on the target page;
[0050] Target business analysis data is constructed based on the target initial parameters and the target embedded data.
[0051] Target data reports are constructed based on the target business analysis data.
[0052] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below:
[0053] When a business operation triggered by a target user on a target page is received, it is determined whether the current environment corresponding to the target page is a mini-program environment;
[0054] If so, obtain the target user identifier corresponding to the target user, and obtain the target main session identifier corresponding to the target user identifier;
[0055] Retrieve the target initial parameters corresponding to the target main session identifier from the preset mapping dimension table;
[0056] Obtain target tracking data collected when a preset target tracking event is executed on the target page;
[0057] Target business analysis data is constructed based on the target initial parameters and the target embedded data.
[0058] Target data reports are constructed based on the target business analysis data.
[0059] Compared with the prior art, the embodiments of this application have the following main advantages:
[0060] In this embodiment, when a business operation triggered by a target user on a target page is received, it determines whether the current environment corresponding to the target page is a mini-program environment. If so, it obtains the target user identifier corresponding to the target user and the target main session identifier corresponding to the target user identifier. Then, it obtains the target initial parameters corresponding to the target main session identifier from a preset mapping dimension table. Next, it obtains the target tracking data collected when a preset target tracking event is executed on the target page. Subsequently, it constructs target business analysis data based on the target initial parameters and the target tracking data. Finally, it constructs a target data report based on the target business analysis data. This embodiment, based on the target user's target main session identifier and the mapping dimension table, can quickly obtain pre-stored target initial parameters. Furthermore, by obtaining the target tracking data collected when a preset target tracking event is executed on the target page, since the target tracking data only contains parameters corresponding to the target tracking event, the uploaded target tracking data contains fewer parameters, reducing tracking bandwidth costs and minimizing resource waste. In addition, it will automatically generate corresponding target data reports quickly based on the target business analysis data constructed from the target initial parameters and target tracking data, which effectively improves the generation efficiency of target data reports and the accuracy of tracking data analysis. Attached Figure Description
[0061] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0062] Figure 1 This is an exemplary system architecture diagram to which this application can be applied;
[0063] Figure 2 A flowchart of an embodiment of the data processing method for embedded points according to this application;
[0064] Figure 3 This is a schematic diagram of the structure of an embodiment of the embedded data processing device according to this application;
[0065] Figure 4 This is a schematic diagram of the structure of one embodiment of the computer device according to this application. Detailed Implementation
[0066] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.
[0067] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0068] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0069] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0070] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social media platform software, etc.
[0071] Terminal devices 101, 102, and 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 players (Moving Picture Experts Group Audio Layer IV), laptops, and desktop computers, etc.
[0072] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on terminal devices 101, 102, and 103.
[0073] It should be noted that the data processing method for tracking points provided in this application is generally executed by a server / terminal device, and correspondingly, the data processing device for tracking points is generally located in the server / terminal device.
[0074] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0075] Continue to refer to Figure 2 The diagram illustrates a flowchart of an embodiment of the data processing method for embedded data according to this application. The data processing method includes the following steps:
[0076] Step S201: When a business operation triggered by a target user on a target page is received, determine whether the current environment corresponding to the target page is a mini-program environment.
[0077] In this embodiment, the embedded data processing method runs on an electronic device (e.g., Figure 1 The application within the server / terminal device (as shown) can obtain service operations via wired or wireless connections. It should be noted that the aforementioned wireless connection methods may include, but are not limited to, 3G / 4G / 5G connections, WiFi connections, Bluetooth connections, WiMAX connections, Zigbee connections, UWB (ultra-wideband) connections, and other currently known or future-developed wireless connection methods. Specifically, the target page may be an H5 page, and a preset H5 module can detect whether the current environment corresponding to the target page is a mini-program environment. Furthermore, the H5 module is a pre-built functional module with environment detection capabilities.
[0078] Step S202: If yes, obtain the target user identifier corresponding to the target user, and obtain the target main session identifier corresponding to the target user identifier.
[0079] In this embodiment, the target user identifier specifically refers to the UnionID of the target user. After obtaining the target user identifier corresponding to the target user, the target main session identifier (main_session_id) corresponding to the target user identifier can be obtained by calling the relevant interface in the initialization lifecycle function through the target user identifier.
[0080] Step S203: Obtain the target initial parameters corresponding to the target main session identifier from the preset mapping dimension table.
[0081] In this embodiment, the mapping dimension table is a pre-built data table that stores multiple master session identifiers and the initial parameters corresponding to each master session identifier. The construction process of the above-mentioned mapping dimension table will be described in more detail in subsequent specific embodiments of this application, and will not be elaborated on here.
[0082] Step S204: Obtain the target tracking data collected when the preset target tracking event is executed on the target page.
[0083] In this embodiment, the target event is a constructed event used to acquire other important business data besides the initial parameters. The initial parameters refer to general parameters, such as user-specific geographic information, channel information, organization information, device information, and traffic source. Furthermore, the target event is a generated event constructed based on the event configuration information input by the data developer. The generation process of the target event will be described in further detail in subsequent specific embodiments, and will not be elaborated upon here.
[0084] Step S205: Construct target business analysis data based on the target initial parameters and the target embedded data.
[0085] In this embodiment, the target initial parameters and the target tracking data can be integrated to obtain the target business analysis data. The target business analysis data includes the target initial parameters and the target tracking data.
[0086] Step S206: Construct a target data report based on the target business analysis data.
[0087] In this embodiment, the specific implementation process of constructing the target data report based on the target business analysis data will be further described in detail in subsequent specific embodiments of this application, and will not be elaborated on here. Furthermore, after generating the target data report, analysis can be performed based on the target tracking data within the target data report to obtain user activity and retention data. Fine-grained analysis of users can also be performed based on the initial target parameters within the target data report to obtain corresponding analysis results, such as users acquired through Douyin (TikTok) tending to buy healthcare products, and users acquired through AnyDoor (a third-party app) preferring service products, thereby achieving refined operation and targeted advertising.
[0088] When this application receives a business operation triggered by a target user on a target page, it determines whether the current environment corresponding to the target page is a mini-program environment. If so, it obtains the target user identifier corresponding to the target user and the target main session identifier corresponding to the target user identifier. Then, it obtains the target initial parameters corresponding to the target main session identifier from a preset mapping dimension table. Next, it obtains the target tracking data collected when a preset target tracking event is executed on the target page. Subsequently, it constructs target business analysis data based on the target initial parameters and the target tracking data. Finally, it constructs a target data report based on the target business analysis data. This application, based on the target user's target main session identifier and the mapping dimension table, can quickly obtain pre-stored target initial parameters. Furthermore, by obtaining the target tracking data collected when a preset target tracking event is executed on the target page, since the target tracking data only contains parameters corresponding to the target tracking event, the uploaded target tracking data contains fewer parameters, reducing tracking bandwidth costs and minimizing resource waste. In addition, it will automatically generate corresponding target data reports quickly based on the target business analysis data constructed from the target initial parameters and target tracking data, which effectively improves the generation efficiency of target data reports and the accuracy of tracking data analysis.
[0089] In some alternative implementations, prior to step S204, the electronic device may also perform the following steps:
[0090] Retrieve the event tracking configuration information input by the specified user.
[0091] In this embodiment, the designated user may refer to a data developer. The aforementioned event tracking configuration information refers to settings related to event tracking on the target page. This configuration information may include event tracking objects and event descriptions. For example, the event tracking configuration information may include the number of times a user launches the page daily, the number of pages visited each time, and visits every other day. The event tracking configuration information uploaded by the designated user can be obtained through the interactive interface of the electronic device and stored.
[0092] The location of the embedding point is determined based on the embedding point configuration information.
[0093] In this embodiment, the tracking point location is the code on the electronic device side that executes the tracking event for the tracking object.
[0094] The corresponding tracking code is generated based on the tracking configuration information.
[0095] In this embodiment, the tracking code is used to indicate the code data for collecting tracking data related to the aforementioned tracking object.
[0096] The event tracking code is inserted into the event tracking location on the target page to generate the target event tracking event.
[0097] In this embodiment, the tracking code is inserted into the tracking location in the page code corresponding to the target page to generate a tracking collection event, namely the aforementioned target tracking event. When the tracking code is executed, tracking data is collected once and reported to the server.
[0098] This application obtains the event tracking configuration information input by a specified user; then determines the event tracking location based on the configuration information; subsequently generates corresponding event tracking code based on the configuration information; and finally inserts the event tracking code into the event tracking location within the target page to generate the target event tracking event. This application, based on the event tracking configuration information input by a specified user, can intelligently and quickly complete the event tracking processing for the target page and generate the corresponding target event tracking event, thus automating the event tracking process. This facilitates the accurate collection of the required target event tracking data by executing the target event tracking event.
[0099] In some optional implementations of this embodiment, step S206 includes the following steps:
[0100] Retrieve the preset report building rules.
[0101] In this embodiment, the aforementioned report building rules refer to the rules for generating corresponding data reports by performing data analysis on the collected business analysis data. These report building rules can be report building rules written and uploaded by data developers based on actual business usage needs and matched with the data tracking configuration information. Alternatively, the report building rules can also be general report building rules.
[0102] The target business analysis data is analyzed based on the report construction rules to generate the target data report corresponding to the target business analysis data.
[0103] This application obtains preset report building rules; then analyzes the target business analysis data based on the report building rules to generate the target data report corresponding to the target business analysis data. Based on the use of report building rules, this application can quickly generate target data reports corresponding to the target business analysis data, improving the efficiency of target data report generation and the accuracy of data tracking analysis.
[0104] In some alternative implementations, prior to step S202, the electronic device may also perform the following steps:
[0105] When a user launches the target mini-program corresponding to the target page for the first time, the user identifier corresponding to the user is obtained through a preset user information interface.
[0106] In this embodiment, the aforementioned user information interface refers to the interface for obtaining basic user information, and the aforementioned user identifier refers to UnionID. The uniqueness of a user is distinguished by obtaining the UnionID from the basic user information interface. However, it should be noted that the UnionID is only obtained after the official account is bound to a WeChat Open Platform account. As long as the official accounts are under the same WeChat Open Platform account, the user's UnionID is unique. That is, for the same user, the UnionID is the same for different applications under the same WeChat Open Platform account.
[0107] A main session identifier corresponding to the user identifier is generated based on a preset cache database.
[0108] In this embodiment, the aforementioned cache database is specifically Redis. Redis stands for Remote Dictionary Server, which is a memory-based key-value NoSQL database written in C by the Italian Salvatore Sanfilippo.
[0109] Obtain the startup information corresponding to the user.
[0110] In this embodiment, the aforementioned startup information refers to the relevant information corresponding to the user's launch of the target mini-program, which may include at least the user's source channel, whether the user came from sharing, the user's target page, and the user's geographic information.
[0111] Obtain the initial parameters corresponding to the preset data type from the startup information.
[0112] In this embodiment, the aforementioned data types refer to pre-set data types corresponding to the user's basic information, including geographic information, channel information, organization information, device information, and traffic source information. Correspondingly, the aforementioned initial parameters include geographic information, channel information, organization information, device information, and traffic source information corresponding to the user.
[0113] The initial parameters and the main session identifier are included in the business event tracking corresponding to the target mini-program, so that when the launch event of the target mini-program is detected, the initial parameters and the main session identifier are uploaded as event tracking data to a preset data interface.
[0114] This application, upon a user's first launch of a target mini-program corresponding to the target page, obtains a user identifier corresponding to the user through a preset user information interface; then, it generates a main session identifier corresponding to the user identifier based on a preset cache database; subsequently, it obtains launch information corresponding to the user; later, it retrieves initial parameters corresponding to a preset data type from the launch information; finally, it embeds the initial parameters and the main session identifier into a business event tracking point corresponding to the target mini-program, so that when the launch event of the target mini-program is detected, the initial parameters and the main session identifier are uploaded as tracking data to a preset data interface. This application intelligently collects the user's main session identifier and initial parameters and uploads them to a data interface for storage when the user first launches the target mini-program corresponding to the target page, facilitating subsequent queries to quickly and accurately obtain the required user's main session identifier and initial parameters.
[0115] In some alternative implementations, prior to step S203, the electronic device may also perform the following steps:
[0116] Get all mini-program launch events corresponding to the target mini-program.
[0117] In this embodiment,
[0118] Obtain the business tracking data corresponding to each of the aforementioned mini-program launch events.
[0119] In this embodiment, when a mini-program launch event is detected, the initial parameters and main session identifier collected will be uploaded to a preset data interface as data points by executing the business event corresponding to the target mini-program in the target mini-program.
[0120] The mapping dimension table is constructed based on the main session identifier and initial parameters contained in the data of each business tracking point.
[0121] In this embodiment, based on the mapping relationship between the main session identifier and the initial parameters, the main session identifier can be used as the primary key, and the initial parameters corresponding to the main session identifier can be used as key values and stored in a preset blank data table to generate the required mapping dimension table.
[0122] This application obtains all mini-program launch events corresponding to the target mini-program; then obtains business tracking data corresponding to each mini-program launch event; and finally constructs the mapping dimension table based on the main session identifier and initial parameters contained in each business tracking data. This application can quickly construct the required mapping dimension table based on the main session identifier and initial parameters in the obtained business tracking data corresponding to each mini-program launch event. This facilitates the subsequent retrieval of specific initial parameters corresponding to a specific main session identifier by querying the mapping dimension table, thus improving the efficiency of obtaining specific initial parameters. For data developers, using dimension tables to map and obtain initial parameters enhances the flexibility and scalability of parameter data, reducing the workload of data developers.
[0123] In some optional implementations, after the step of generating the main session identifier corresponding to the user identifier based on a preset cache database, the electronic device may further perform the following steps:
[0124] Determine whether the cache database stores an initial main session identifier corresponding to the user identifier.
[0125] If an initial main session identifier corresponding to the user identifier is stored, then the initial main session identifier is overwritten using the main session identifier.
[0126] In this embodiment, if a record of the initial main session identifier corresponding to the user identifier already exists in the cache database, the initial main session identifier is intelligently overwritten using the main session identifier to ensure the uniqueness of each main session identifier in the database table.
[0127] If no initial main session identifier corresponding to the user identifier is stored, the main session identifier is stored in the cache database.
[0128] This application determines whether an initial main session identifier corresponding to the user identifier is stored in the cache database. If such an identifier exists, it overwrites the original main session identifier. If not, it stores the original main session identifier in the cache database. This application generates a main session identifier corresponding to the user identifier using the cache database and intelligently updates the main session identifiers in the cache database to ensure the uniqueness of each main session identifier within the cache database.
[0129] In some optional implementations of this embodiment, after step S206, the electronic device may further perform the following steps:
[0130] Obtain the page identifier corresponding to the target page.
[0131] In this embodiment, the aforementioned page identifier may refer to the page name of the target page.
[0132] Based on the page identifier, the target storage block corresponding to the page identifier is determined from all storage blocks contained in the preset blockchain.
[0133] In this embodiment, the blockchain is pre-divided into multiple storage blocks, each used to store data reports for different pages, based on the page identifiers of those pages. There is a one-to-one correspondence between the page identifiers and the storage blocks.
[0134] The target data report is stored in the target storage block.
[0135] This application obtains a page identifier corresponding to the target page; then, based on the page identifier, determines the target storage block corresponding to the page identifier from all storage blocks contained in a preset blockchain; and finally stores the target data report in the target storage block. By using the target storage block corresponding to the page identifier of the target page in the blockchain to store the target data report, this application improves the intelligence and standardization of data report storage, facilitating the rapid and accurate retrieval of the required data report from the storage block later.
[0136] It should be emphasized that, in order to further ensure the privacy and security of the aforementioned target data reports, the aforementioned target data reports can also be stored in a node of a blockchain.
[0137] The blockchain referred to in this application is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.
[0138] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0139] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0140] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware with computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When executed, the program can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).
[0141] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0142] Further reference Figure 3 As a response to the above Figure 2 To implement the method shown, this application provides an embodiment of a data processing device for embedded data, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.
[0143] like Figure 3 As shown, the data processing device 300 for embedded data in this embodiment includes: a first judgment module 301, a first acquisition module 302, a second acquisition module 303, a third acquisition module 304, a first construction module 305, and a second construction module 306. Wherein:
[0144] The first judgment module 301 is used to determine whether the current environment corresponding to the target page is a mini-program environment when a business operation triggered by the target user on the target page is received.
[0145] The first acquisition module 302 is used to, if so, acquire the target user identifier corresponding to the target user, and acquire the target main session identifier corresponding to the target user identifier;
[0146] The second acquisition module 303 is used to acquire the target initial parameters corresponding to the target main session identifier from a preset mapping dimension table;
[0147] The third acquisition module 304 is used to acquire target tracking data collected when a preset target tracking event is executed on the target page.
[0148] The first construction module 305 is used to construct target business analysis data based on the target initial parameters and the target embedded data;
[0149] The second construction module 306 is used to construct a target data report based on the target business analysis data.
[0150] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the embedded data processing method in the aforementioned embodiments, and will not be repeated here.
[0151] In some optional implementations of this embodiment, the data processing device further includes:
[0152] The fourth acquisition module is used to acquire the event tracking configuration information input by the specified user;
[0153] The first determining module is used to determine the location of the embedding point based on the embedding point configuration information;
[0154] The first generation module is used to generate corresponding tracking code based on the tracking configuration information;
[0155] The second generation module is used to insert the tracking code into the tracking location within the target page to generate the target tracking event.
[0156] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the embedded data processing method in the aforementioned embodiments, and will not be repeated here.
[0157] In some optional implementations of this embodiment, the second construction module 306 includes:
[0158] The `get` submodule is used to retrieve preset report building rules;
[0159] The generation submodule is used to analyze the target business analysis data based on the report construction rules and generate the target data report corresponding to the target business analysis data.
[0160] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the embedded data processing method in the aforementioned implementation method, and will not be repeated here.
[0161] In some optional implementations of this embodiment, the data processing device further includes:
[0162] The fifth acquisition module is used to acquire the user identifier corresponding to the user through a preset user information interface when the user first launches the target mini program corresponding to the target page;
[0163] The third generation module is used to generate a main session identifier corresponding to the user identifier based on a preset cache database;
[0164] The sixth acquisition module is used to acquire the startup information corresponding to the user;
[0165] The seventh acquisition module is used to acquire initial parameters corresponding to a preset data type from the startup information;
[0166] The first processing module is used to include the initial parameters and the main session identifier in the business event tracking corresponding to the target mini-program, so that when the launch event of the target mini-program is detected, the initial parameters and the main session identifier are uploaded as tracking data to a preset data interface.
[0167] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the embedded data processing method in the aforementioned embodiments, and will not be repeated here.
[0168] In some optional implementations of this embodiment, the data processing device further includes:
[0169] The eighth acquisition module is used to acquire all mini-program launch events corresponding to the target mini-program;
[0170] The ninth acquisition module is used to acquire business tracking data corresponding to each of the aforementioned mini-program launch events;
[0171] The third construction module is used to construct the mapping dimension table based on the main session identifier and initial parameters contained in each of the business data points.
[0172] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the embedded data processing method in the aforementioned embodiments, and will not be repeated here.
[0173] In some optional implementations of this embodiment, the data processing device further includes:
[0174] The second judgment module is used to determine whether the cache database stores an initial main session identifier corresponding to the user identifier;
[0175] The second processing module is used to overwrite the initial main session identifier with the main session identifier if an initial main session identifier corresponding to the user identifier is stored.
[0176] The first storage module is used to store the main session identifier in the cache database if no initial main session identifier corresponding to the user identifier is stored.
[0177] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the embedded data processing method in the aforementioned embodiments, and will not be repeated here.
[0178] In some optional implementations of this embodiment, the data processing device further includes:
[0179] The tenth acquisition module is used to acquire the page identifier corresponding to the target page;
[0180] The second determining module is used to determine the target storage block corresponding to the page identifier from all storage blocks contained in the preset blockchain based on the page identifier;
[0181] The second storage module is used to store the target data report into the target storage block.
[0182] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the embedded data processing method in the aforementioned embodiments, and will not be repeated here.
[0183] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0184] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected via a system bus. It should be noted that only the computer device 4 with components 41-43 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0185] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.
[0186] The memory 41 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as the hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 4. Of course, the memory 41 may also include both the internal storage unit and its external storage device of the computer device 4. In this embodiment, the memory 41 is typically used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions for data processing methods. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or will be output.
[0187] In some embodiments, the processor 42 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to execute computer-readable instructions stored in the memory 41 or to process data, for example, to execute computer-readable instructions for the embedded data processing method.
[0188] The network interface 43 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 4 and other electronic devices.
[0189] Compared with the prior art, the embodiments of this application have the following main advantages:
[0190] In this embodiment, when a business operation triggered by a target user on a target page is received, it is determined whether the current environment corresponding to the target page is a mini-program environment. If so, the target user identifier corresponding to the target user is obtained, and the target main session identifier corresponding to the target user identifier is also obtained. Then, the target initial parameters corresponding to the target main session identifier are obtained from a preset mapping dimension table. Next, the target tracking data collected when a preset target tracking event is executed on the target page is obtained. Subsequently, target business analysis data is constructed based on the target initial parameters and the target tracking data. Finally, a target data report is constructed based on the target business analysis data. This embodiment, based on the target user's target main session identifier and the mapping dimension table, can quickly obtain pre-stored target initial parameters. Furthermore, by obtaining the target tracking data collected when a preset target tracking event is executed on the target page, since the target tracking data only contains parameters corresponding to the target tracking event, the uploaded target tracking data contains fewer parameters, reducing tracking bandwidth costs and minimizing resource waste. In addition, it will automatically generate corresponding target data reports quickly based on the target business analysis data constructed from the target initial parameters and target tracking data, which effectively improves the generation efficiency of target data reports and the accuracy of tracking data analysis.
[0191] This application also provides another embodiment, namely, providing a computer-readable storage medium storing computer-readable instructions that can be executed by at least one processor to cause the at least one processor to perform the steps of the above-described embedded data processing method.
[0192] Compared with the prior art, the embodiments of this application have the following main advantages:
[0193] In this embodiment, when a business operation triggered by a target user on a target page is received, it is determined whether the current environment corresponding to the target page is a mini-program environment. If so, the target user identifier corresponding to the target user is obtained, and the target main session identifier corresponding to the target user identifier is also obtained. Then, the target initial parameters corresponding to the target main session identifier are obtained from a preset mapping dimension table. Next, the target tracking data collected when a preset target tracking event is executed on the target page is obtained. Subsequently, target business analysis data is constructed based on the target initial parameters and the target tracking data. Finally, a target data report is constructed based on the target business analysis data. This embodiment, based on the target user's target main session identifier and the mapping dimension table, can quickly obtain pre-stored target initial parameters. Furthermore, by obtaining the target tracking data collected when a preset target tracking event is executed on the target page, since the target tracking data only contains parameters corresponding to the target tracking event, the uploaded target tracking data contains fewer parameters, reducing tracking bandwidth costs and minimizing resource waste. In addition, it will automatically generate corresponding target data reports quickly based on the target business analysis data constructed from the target initial parameters and target tracking data, which effectively improves the generation efficiency of target data reports and the accuracy of tracking data analysis.
[0194] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0195] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.
Claims
1. A method for processing embedded data, characterized in that, Includes the following steps: When a business operation triggered by a target user on a target page is received, it is determined whether the current environment corresponding to the target page is a mini-program environment; If so, obtain the target user identifier corresponding to the target user, and obtain the target main session identifier corresponding to the target user identifier; Retrieve the target initial parameters corresponding to the target main session identifier from the preset mapping dimension table; Obtain target tracking data collected when a preset target tracking event is executed on the target page; Target business analysis data is constructed based on the target initial parameters and the target embedded data. Construct a target data report based on the target business analysis data; The method further includes, before the steps of obtaining the target user identifier corresponding to the target user and obtaining the target main session identifier corresponding to the target user identifier: When a user launches the target mini-program corresponding to the target page for the first time, the user identifier corresponding to the user is obtained through a preset user information interface. A main session identifier corresponding to the user identifier is generated based on a preset cache database; Obtain the startup information corresponding to the user; Obtain the initial parameters corresponding to the preset data type from the startup information; The initial parameters and the main session identifier are included in the business event tracking corresponding to the target mini-program, so that when the launch event of the target mini-program is detected, the initial parameters and the main session identifier are uploaded as event tracking data to the preset data interface. Prior to the step of obtaining the target initial parameter corresponding to the target main session identifier from the preset mapping dimension table, the method further includes: Retrieve all mini-program launch events corresponding to the target mini-program; Obtain the business tracking data corresponding to each of the aforementioned mini-program launch events; The mapping dimension table is constructed based on the main session identifier and initial parameters contained in the data of each business tracking point; The initial parameters mentioned above include user-specific geographic information, channel information, organizational information, device information, and traffic source.
2. The data processing method for embedded points according to claim 1, characterized in that, Before the step of obtaining the target tracking data collected when the preset target tracking event is executed on the target page, the method further includes: Retrieve the event tracking configuration information input by the specified user; The location of the embedding point is determined based on the embedding point configuration information; Generate corresponding tracking code based on the tracking configuration information; The event tracking code is inserted into the event tracking location on the target page to generate the target event tracking event.
3. The method for processing embedded data according to claim 1, characterized in that, The step of constructing a target data report based on the target business analysis data specifically includes: Retrieve preset report building rules; The target business analysis data is analyzed based on the report construction rules to generate the target data report corresponding to the target business analysis data.
4. The method for processing embedded data according to claim 1, characterized in that, After the step of generating the main session identifier corresponding to the user identifier based on the preset cache database, the specific steps include: Determine whether the cache database stores an initial main session identifier corresponding to the user identifier; If an initial main session identifier corresponding to the user identifier is stored, then the initial main session identifier is overwritten using the main session identifier; If no initial main session identifier corresponding to the user identifier is stored, the main session identifier is stored in the cache database.
5. The method for processing embedded data according to claim 1, characterized in that, Following the step of constructing the target data report based on the target business analysis data, the method further includes: Obtain the page identifier corresponding to the target page; Based on the page identifier, the target storage block corresponding to the page identifier is determined from all storage blocks contained in the preset blockchain; The target data report is stored in the target storage block.
6. A device for processing embedded data, characterized in that, include: The first judgment module is used to determine whether the current environment corresponding to the target page is a mini-program environment when a business operation triggered by the target user on the target page is received. The first acquisition module is used to, if yes, acquire the target user identifier corresponding to the target user, and acquire the target main session identifier corresponding to the target user identifier; The second acquisition module is used to acquire the target initial parameters corresponding to the target main session identifier from a preset mapping dimension table; The third acquisition module is used to acquire target tracking data collected when a preset target tracking event is executed on the target page. The first construction module is used to construct target business analysis data based on the target initial parameters and the target embedded data; The second construction module is used to construct a target data report based on the target business analysis data; The data processing device also includes: The fifth acquisition module is used to acquire the user identifier corresponding to the user through a preset user information interface when the user first launches the target mini program corresponding to the target page; The third generation module is used to generate a main session identifier corresponding to the user identifier based on a preset cache database; The sixth acquisition module is used to acquire the startup information corresponding to the user; The seventh acquisition module is used to acquire initial parameters corresponding to a preset data type from the startup information; The first processing module is used to include the initial parameters and the main session identifier in the business event tracking corresponding to the target mini-program, so that when the start event of the target mini-program is detected, the initial parameters and the main session identifier are uploaded as tracking data to a preset data interface. The data processing device also includes: The eighth acquisition module is used to acquire all mini-program launch events corresponding to the target mini-program; The ninth acquisition module is used to acquire business tracking data corresponding to each of the aforementioned mini-program launch events; The third construction module is used to construct the mapping dimension table based on the main session identifier and initial parameters contained in each of the business data points. The initial parameters mentioned above include user-specific geographic information, channel information, organizational information, device information, and traffic source.
7. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor, when executing the computer-readable instructions, implements the steps of the embedded data processing method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the embedded data processing method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
CN114238335A