Data reporting method, device and readable medium

文档序号:7881 发布日期:2021-09-17 浏览:84次 中文

1. A data reporting method is characterized by comprising the following steps:

identifying the environment type of the running environment of the target page;

determining a data reporting tag on the target page;

generating a data reporting instruction corresponding to the data reporting label according to the environment type; the data reporting instruction is matched with the environment type;

and acquiring user data according to the data reporting instruction, and reporting the user data.

2. The method of claim 1, wherein the identifying the environment type of the running environment in which the target page is located comprises:

acquiring at least one interface information related to the target page and the operating environment;

and determining the environment type of the running environment of the target page according to the at least one interface information.

3. The method of claim 1, wherein the determining the data reporting tag on the target page comprises:

determining page elements with the data reporting tags on the target page;

the obtaining of the user data according to the data reporting instruction includes:

monitoring page elements with corresponding data reporting labels according to the data reporting instructions;

and under the condition that the user behavior aiming at the page element is monitored, the user data indicated by the data reporting instruction is obtained.

4. The method of claim 1, wherein the generating, according to the environment type, the data reporting instruction corresponding to the data reporting tag includes:

determining a data reporting code which is encapsulated in a data reporting component and corresponds to the data reporting label according to the environment type;

and generating a data reporting instruction corresponding to the data reporting label according to the data reporting code corresponding to the data reporting label.

5. The method of claim 1, wherein the environment type comprises at least one of: a web-based environment type, a third-party program platform-based environment type.

6. A data reporting apparatus, comprising:

the type identification module is used for identifying the environment type of the running environment where the target page is located;

the tag determining module is used for determining a data reporting tag on the target page;

the instruction generating module is used for generating a data reporting instruction corresponding to the data reporting label according to the environment type; the data reporting instruction is matched with the environment type;

and the data reporting module is used for acquiring the user data according to the data reporting instruction and reporting the user data.

7. The apparatus of claim 6, wherein the type identification module comprises:

the interface information acquisition submodule is used for acquiring at least one type of interface information related to the target page and the operating environment where the target page is located;

and the type determining submodule is used for determining the environment type of the operating environment of the target page according to the at least one type of interface information.

8. The apparatus of claim 6, wherein the tag determination module comprises:

the element determining submodule is used for determining page elements with the data reporting tags on the target page;

the data reporting module comprises:

the element monitoring submodule is used for monitoring the page elements with the corresponding data reporting labels according to the data reporting instructions;

and the data acquisition submodule is used for acquiring the user data indicated by the data reporting instruction under the condition of monitoring the user behavior aiming at the page element.

9. An apparatus for data reporting, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for:

identifying the environment type of the running environment of the target page;

determining a data reporting tag on the target page;

generating a data reporting instruction corresponding to the data reporting label according to the environment type; the data reporting instruction is matched with the environment type;

and acquiring user data according to the data reporting instruction, and reporting the user data.

10. A machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform a data reporting method as claimed in one or more of claims 1 to 5.

Background

With the development of internet technology, cross-platform application is more and more common. The cross-platform concept is an important concept in software development, namely, an application running under one platform can still run on another platform without depending on a system and an environment. For example, developers can build web applications for cell phones and desktops using HTML, JavaScript, etc., as well as relying on applets on third party programs.

For cross-platform application, when user behaviors and other data need to be counted, due to differences of platforms and frames, data reporting logics need to be developed respectively according to characteristics of the platforms and the frames in the past project, and since data reporting codes developed for pages of different platforms and frames cannot be reused, the data reporting codes still need to be developed and tested for different platforms and frames, so that development workload required for data reporting of the cross-platform application is large, and the standards are not uniform, so that the data reporting is difficult to maintain, the development efficiency is low, and the maintenance cost is high.

Disclosure of Invention

In view of the foregoing problems, embodiments of the present application provide a data reporting method, a data reporting apparatus, an apparatus for reporting data, and a machine readable medium, which overcome the foregoing problems or at least partially solve the foregoing problems.

In order to solve the above problem, the present application discloses a data reporting method, including:

identifying the environment type of the running environment of the target page;

determining a data reporting tag on the target page;

generating a data reporting instruction corresponding to the data reporting label according to the environment type; the data reporting instruction is matched with the environment type;

and acquiring user data according to the data reporting instruction, and reporting the user data.

Optionally, the identifying the environment type of the running environment in which the target page is located includes:

acquiring at least one interface information related to the target page and the operating environment;

and determining the environment type of the running environment of the target page according to the at least one interface information.

Optionally, the determining the data reporting tag on the target page includes:

determining page elements with the data reporting tags on the target page;

the obtaining of the user data according to the data reporting instruction includes:

monitoring page elements with corresponding data reporting labels according to the data reporting instructions;

and under the condition that the user behavior aiming at the page element is monitored, the user data indicated by the data reporting instruction is obtained.

Optionally, the generating, according to the environment type, the data reporting instruction corresponding to the data reporting tag includes:

determining a data reporting code which is encapsulated in a data reporting component and corresponds to the data reporting label according to the environment type;

and generating a data reporting instruction corresponding to the data reporting label according to the data reporting code corresponding to the data reporting label.

Optionally, the environment type comprises at least one of: a web-based environment type, a third-party program platform-based environment type.

The embodiment of the present application further discloses a data reporting apparatus, including:

the type identification module is used for identifying the environment type of the running environment where the target page is located;

the tag determining module is used for determining a data reporting tag on the target page;

the instruction generating module is used for generating a data reporting instruction corresponding to the data reporting label according to the environment type; the data reporting instruction is matched with the environment type;

and the data reporting module is used for acquiring the user data according to the data reporting instruction and reporting the user data.

Optionally, the type identification module includes:

the interface information acquisition submodule is used for acquiring at least one type of interface information related to the target page and the operating environment where the target page is located;

and the type determining submodule is used for determining the environment type of the operating environment of the target page according to the at least one type of interface information.

Optionally, the tag determination module includes:

the element determining submodule is used for determining page elements with the data reporting tags on the target page;

the data reporting module comprises:

the element monitoring submodule is used for monitoring the page elements with the corresponding data reporting labels according to the data reporting instructions;

and the data acquisition submodule is used for acquiring the user data indicated by the data reporting instruction under the condition of monitoring the user behavior aiming at the page element.

Optionally, the instruction generating module includes:

a code determining submodule for determining a data reporting code corresponding to the data reporting tag, which is encapsulated in a data reporting component, according to the environment type;

and the instruction generating submodule is used for generating a data reporting instruction corresponding to the data reporting label according to the data reporting code corresponding to the data reporting label.

Optionally, the environment type comprises at least one of: a web-based environment type, a third-party program platform-based environment type.

The embodiment of the present application also discloses an apparatus for data reporting, which includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs include instructions for:

identifying the environment type of the running environment of the target page;

determining a data reporting tag on the target page;

generating a data reporting instruction corresponding to the data reporting label according to the environment type; the data reporting instruction is matched with the environment type;

and acquiring user data according to the data reporting instruction, and reporting the user data.

Optionally, the identifying the environment type of the running environment in which the target page is located includes:

acquiring at least one interface information related to the target page and the operating environment;

and determining the environment type of the running environment of the target page according to the at least one interface information.

Optionally, the determining the data reporting tag on the target page includes:

determining page elements with the data reporting tags on the target page;

the obtaining of the user data according to the data reporting instruction includes:

monitoring page elements with corresponding data reporting labels according to the data reporting instructions;

and under the condition that the user behavior aiming at the page element is monitored, the user data indicated by the data reporting instruction is obtained.

Optionally, the generating, according to the environment type, the data reporting instruction corresponding to the data reporting tag includes:

determining a data reporting code which is encapsulated in a data reporting component and corresponds to the data reporting label according to the environment type;

and generating a data reporting instruction corresponding to the data reporting label according to the data reporting code corresponding to the data reporting label.

Optionally, the environment type comprises at least one of: a web-based environment type, a third-party program platform-based environment type.

The embodiment of the application also discloses a machine readable medium, which stores instructions that, when executed by one or more processors, cause an apparatus to execute the data reporting method.

The embodiment of the application has the following advantages:

in summary, according to the embodiment of the present application, a data reporting tag on a target page is determined by identifying an environment type of an operating environment in which the target page is located, and a data reporting instruction corresponding to the data reporting tag is generated according to the environment type; the data reporting instruction is matched with the environment types, user data are obtained according to the data reporting instruction and reported, so that the same data reporting requirement can be uniformly used under different environment types, developers are prevented from developing the same data reporting requirement for multiple times aiming at different environment types, the development workload required by data reporting of cross-platform application is reduced, the uniform data reporting labels are used for easier maintenance, the development efficiency is improved, and the maintenance cost is reduced.

Drawings

Fig. 1 is a flowchart illustrating a first step of a data reporting method according to an embodiment of the present application;

fig. 2 is a flowchart illustrating steps of a second data reporting method according to an embodiment of the present application;

fig. 3 is a block diagram illustrating a data reporting apparatus according to an embodiment of the present application;

fig. 4 is a block diagram illustrating an apparatus for data reporting in accordance with an example embodiment;

FIG. 5 is a block diagram of a server in some embodiments of the invention.

Detailed Description

In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.

Referring to fig. 1, a flowchart illustrating a first step of a data reporting method according to an embodiment of the present application is shown, which may specifically include the following steps:

step 101, identifying the environment type of the running environment where the target page is located.

In this embodiment of the present application, the execution environment may be divided into multiple environment types according to a platform and a framework, where the execution environment includes, but is not limited to, execution environments such as a web-based environment and an environment based on a third-party program platform, for example, an execution environment of a web application running in a browser of a mobile phone or a desktop, an execution environment of an applet, and the like, and may specifically include any other suitable execution environment, which is not limited in this embodiment of the present application. The small program is an application program which can be issued from a server and can be executed in a specific container without installation. web applications are applications based on a browser/server architecture.

In some alternative embodiments, the environment type includes at least one of: a web-based environment type, a third-party program platform-based environment type.

In this embodiment of the present application, the target page includes a page of a web application, a page of an applet, and the like, or any other suitable page, which is not limited in this embodiment of the present application. The target page supports cross-platform, and the environment types of the running environments of the target page are different under different platforms or frames. The implementation manner of identifying the environment type of the operating environment in which the target page is located may include multiple manners, for example, obtaining at least one interface information related to the operating environment in which the target page is located, and determining the environment type of the operating environment in which the target page is located according to the at least one interface information; or when the target page is started, a JS SDK (Javascript Software Development Kit) file called by the target page detects an environment type of an operating environment where the target page is located, or any other suitable implementation manner, which is not limited in the embodiment of the present application.

And 102, determining a data reporting label on the target page.

In this embodiment of the application, the data reporting tag is used to define a script for performing data reporting on the client, and the data reporting tag is added to the page code of the target page, for example, in order to collect data from a browser or an applet, collection is usually performed through javascript codes placed in each page in a web application. And searching all data reporting tags by traversing the target page. The data reporting tag may include a tag for monitoring a certain page element on a target page and reporting the monitored user behavior data of the user behavior of the page element, may also include a tag for collecting and reporting client information and/or user information at regular time added to the target page, or may include a tag for collecting and reporting client information and/or user information when a certain page element on the target page executes a certain step, or any other suitable data reporting tag, which is not limited in this embodiment of the present application.

103, generating a data reporting instruction corresponding to the data reporting label according to the environment type; and the data reporting instruction is matched with the environment type.

In the embodiment of the application, corresponding data reporting instructions generated for different data reporting tags are different in the same operating environment. For the same data reporting tag, a data reporting instruction matched with the environment type is generated according to the environment type of the operating environment where the target page is located. And programming data reporting codes corresponding to various data reporting labels aiming at different environment types in advance. In one implementation, after the target page is loaded, a data reporting code corresponding to the environment type is determined according to the environment type, and then a data reporting instruction is generated according to the data reporting code. The data reporting instruction includes an instruction for collecting data, an instruction for sending data to a server, and the like, or any other applicable instruction for reporting data, which is not limited in the embodiment of the present application.

For example, the data reporting tag is used to monitor a certain page element on a target page, report the monitored user behavior data for the user behavior of the page element, and for a web-based environment, the request for reporting data to the server is implemented by an XmlHttpRequest (a set of API functions can be called by JavaScript, JScript, VBScript and scripting languages embedded in other web browsers, and XML or other data is sent and received between a browser and a web server by HTTP), or a picture request.

And 104, acquiring user data according to the data reporting instruction, and reporting the user data.

In this embodiment of the present application, the user data includes user behavior data, basic data of a user, data of a terminal used by the user, and the like, or any other suitable user data, which is not limited in this embodiment of the present application. For example, resolution of the terminal, cache size, CPU model, time of click, developer information, browser name, client version, etc.

In the embodiment of the application, the data reporting instruction can indicate user data to be collected, the user data is collected according to the data reporting instruction, then the user data is reported, and the user data is sent to the server indicated by the server address according to the server address carried by the data reporting instruction.

For example, a certain button on the target page is monitored according to the data reporting instruction, and when the monitored click behavior for the button, the preset user data related to the click behavior is reported.

In summary, according to the embodiment of the present application, a data reporting tag on a target page is determined by identifying an environment type of an operating environment in which the target page is located, and a data reporting instruction corresponding to the data reporting tag is generated according to the environment type; the data reporting instruction is matched with the environment types, user data are obtained according to the data reporting instruction and reported, so that the same data reporting requirement can be uniformly used under different environment types, developers are prevented from developing the same data reporting requirement for multiple times aiming at different environment types, the development workload required by data reporting of cross-platform application is reduced, the uniform data reporting labels are used for easier maintenance, the development efficiency is improved, and the maintenance cost is reduced.

Referring to fig. 2, a flowchart illustrating steps of a second embodiment of a data reporting method in the present application is shown, which may specifically include the following steps:

step 201, at least one interface information related to the target page and the operating environment is obtained.

In the embodiment of the present application, running refers to a state in which a program is running (or is being executed). The Runtime Environment is an Environment in which the program is in a Runtime state, for example, a Java Runtime Environment, that is, Java Runtime Environment, abbreviated as JRE, is software that is needed to run a program written in Java on any platform. The JRE can be made available and used by the end-user in software or as a plug-in. An API (Application Programming Interface) is a predefined function or a convention for linking different components of a software system. Different platforms or frameworks will provide unique APIs for developers to use.

In this embodiment of the application, the target page may call at least one interface provided by the runtime environment where the target page is located, and obtain interface information of the called at least one interface related to the runtime environment, that is, some specific interfaces provided by the runtime environment that are not universal in various runtime environments. The interface information includes information such as a name, an identifier, a parameter order, a parameter type, and the like of the interface, or any other suitable information, which is not limited in this embodiment of the present application.

Step 202, determining the environment type of the operating environment of the target page according to the at least one interface information.

In this embodiment of the present application, according to at least one interface information, an environment type of an operating environment in which a target page is located may be determined, for example, if a certain interface is proprietary to a certain environment type, according to the interface information of the interface, the environment type of the operating environment in which the target page is located may be directly determined; or the corresponding environment type may be determined from interface information of a plurality of interfaces.

Step 203, determining the data reporting tag on the target page.

In the embodiment of the present application, a specific implementation manner of this step may refer to the description in the foregoing embodiment, and is not described herein again.

In some optional embodiments, the implementation manner of determining the data reporting tag on the target page includes: determining page elements with the data reporting tags on the target page; correspondingly, the implementation manner of obtaining the user data according to the data reporting instruction includes: monitoring page elements with corresponding data reporting labels according to the data reporting instructions; and under the condition that the user behavior aiming at the page element is monitored, the user data indicated by the data reporting instruction is obtained.

The page elements on the target page include, but are not limited to, a button on the page, a video played on the page, a certain display area on the page, and the like, which is not limited in this embodiment of the present application. Not only the data reporting tag on the target page is determined, but also the page element with the data reporting tag needs to be determined. Then, for the data reporting tag, monitoring a page element with a corresponding data reporting tag according to the data reporting instruction, and acquiring user data indicated by the data reporting instruction under the condition that user behaviors aiming at the page element are monitored.

And 204, determining a data reporting code which is encapsulated in the data reporting component and corresponds to the data reporting label according to the environment type.

In the embodiment of the present application, the data reporting component refers to a component developed for data reporting, and the component is a simple package for data and methods. The components may have their own properties and methods. An attribute is a simple visitor to component data. The method is some simple and visible function of the component. The data reporting module is packaged with a data reporting code corresponding to the data reporting tag, i.e. a data reporting method. Different environment types correspond to data reporting codes. And aiming at a certain data reporting label, matching data reporting codes which are encapsulated in the data reporting component and correspond to the data reporting label according to the environment type, and searching the data reporting codes which are matched with the environment type.

Step 205, generating a data reporting instruction corresponding to the data reporting tag according to the data reporting code corresponding to the data reporting tag.

In the embodiment of the application, for each data reporting tag, a data reporting instruction corresponding to each data reporting tag is generated according to the data reporting code matched with the environment type. The data reporting instruction plays a role in the operation of the target page, and data is collected and sent according to the logic of the data reporting instruction.

And step 206, acquiring user data according to the data reporting instruction, and reporting the user data.

To sum up, according to the embodiment of the present application, at least one interface information related to the operating environment of the target page is obtained, the environment type of the operating environment of the target page is determined according to the at least one interface information, the data reporting tag on the target page is determined, the data reporting code corresponding to the data reporting tag encapsulated in the data reporting component is determined according to the environment type, the data reporting instruction corresponding to the data reporting tag is generated according to the data reporting code corresponding to the data reporting tag, the user data is obtained according to the data reporting instruction, and the user data is reported, so that the same data reporting requirement can be uniformly implemented by using the same data reporting tag under different environment types, and developers are prevented from developing the same data reporting requirement for multiple times for different environment types, the development workload required by data reporting of cross-platform application is reduced, and the unified data reporting tag is easier to maintain, so that the development efficiency is improved, and the maintenance cost is reduced.

It should be noted that, for simplicity of description, the method embodiments are described as a series of motion combinations, but those skilled in the art should understand that the embodiment of the present application is not limited by the described sequence of motion actions, because some steps may be performed in other sequences or simultaneously according to the embodiment of the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are preferred and that the motions described are not necessarily required for the embodiments of the present application.

Referring to fig. 3, a block diagram of a data reporting apparatus according to an embodiment of the present application is shown, which may specifically include:

the type identification module 301 is used for identifying the environment type of the running environment where the target page is located;

a tag determination module 302, configured to determine a data reporting tag on the target page;

an instruction generating module 303, configured to generate a data reporting instruction corresponding to the data reporting tag according to the environment type; the data reporting instruction is matched with the environment type;

and a data reporting module 304, configured to obtain user data according to the data reporting instruction, and report the user data.

In the embodiment of the present invention, optionally, the type identifying module includes:

the interface information acquisition submodule is used for acquiring at least one type of interface information related to the target page and the operating environment where the target page is located;

and the type determining submodule is used for determining the environment type of the operating environment of the target page according to the at least one type of interface information.

In this embodiment of the present invention, optionally, the tag determining module includes:

the element determining submodule is used for determining page elements with the data reporting tags on the target page;

the data reporting module comprises:

the element monitoring submodule is used for monitoring the page elements with the corresponding data reporting labels according to the data reporting instructions;

and the data acquisition submodule is used for acquiring the user data indicated by the data reporting instruction under the condition of monitoring the user behavior aiming at the page element.

In the embodiment of the present invention, optionally, the instruction generating module includes:

a code determining submodule for determining a data reporting code corresponding to the data reporting tag, which is encapsulated in a data reporting component, according to the environment type;

and the instruction generating submodule is used for generating a data reporting instruction corresponding to the data reporting label according to the data reporting code corresponding to the data reporting label.

In an embodiment of the present invention, optionally, the environment type includes at least one of the following: a web-based environment type, a third-party program platform-based environment type.

In summary, according to the embodiment of the present application, a data reporting tag on a target page is determined by identifying an environment type of an operating environment in which the target page is located, and a data reporting instruction corresponding to the data reporting tag is generated according to the environment type; the data reporting instruction is matched with the environment types, user data are obtained according to the data reporting instruction and reported, so that the same data reporting requirement can be uniformly used under different environment types, developers are prevented from developing the same data reporting requirement for multiple times aiming at different environment types, the development workload required by data reporting of cross-platform application is reduced, the uniform data reporting labels are used for easier maintenance, the development efficiency is improved, and the maintenance cost is reduced.

For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.

Fig. 4 is a block diagram illustrating an apparatus 400 for data reporting, according to an example embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.

Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.

The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.

The memory 404 is configured to store various types of data to support operations at the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.

Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.

The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 400 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.

The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.

The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as a display and keypad of the apparatus 400, the sensor component 414 can also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.

In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

Fig. 5 is a schematic diagram of a server in some embodiments of the invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.

The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a device (smart terminal or server), enable the device to perform a data reporting method, the method comprising:

identifying the environment type of the running environment of the target page;

determining a data reporting tag on the target page;

generating a data reporting instruction corresponding to the data reporting label according to the environment type; the data reporting instruction is matched with the environment type;

and acquiring user data according to the data reporting instruction, and reporting the user data.

Optionally, the identifying the environment type of the running environment in which the target page is located includes:

acquiring at least one interface information related to the target page and the operating environment;

and determining the environment type of the running environment of the target page according to the at least one interface information.

Optionally, the determining the data reporting tag on the target page includes:

determining page elements with the data reporting tags on the target page;

the obtaining of the user data according to the data reporting instruction includes:

monitoring page elements with corresponding data reporting labels according to the data reporting instructions;

and under the condition that the user behavior aiming at the page element is monitored, the user data indicated by the data reporting instruction is obtained.

Optionally, the generating, according to the environment type, the data reporting instruction corresponding to the data reporting tag includes:

determining a data reporting code which is encapsulated in a data reporting component and corresponds to the data reporting label according to the environment type;

and generating a data reporting instruction corresponding to the data reporting label according to the data reporting code corresponding to the data reporting label.

Optionally, the environment type comprises at least one of: a web-based environment type, a third-party program platform-based environment type.

The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.

As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Embodiments of the present application 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 application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.

The data reporting method, the data reporting device, the device for reporting data, and the machine-readable medium provided by the present application are introduced in detail, and specific examples are applied in this document to explain the principles and embodiments of the present application, and the descriptions of the above embodiments are only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种适用于加密HTTP/2网页的访问行为识别方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!