CN106897202B - Method and apparatus for outputting data - Google Patents

Method and apparatus for outputting data Download PDF

Info

Publication number
CN106897202B
CN106897202B CN201710114681.8A CN201710114681A CN106897202B CN 106897202 B CN106897202 B CN 106897202B CN 201710114681 A CN201710114681 A CN 201710114681A CN 106897202 B CN106897202 B CN 106897202B
Authority
CN
China
Prior art keywords
user behavior
behavior data
interface
statistical
target component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710114681.8A
Other languages
Chinese (zh)
Other versions
CN106897202A (en
Inventor
暴文宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710114681.8A priority Critical patent/CN106897202B/en
Publication of CN106897202A publication Critical patent/CN106897202A/en
Application granted granted Critical
Publication of CN106897202B publication Critical patent/CN106897202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions

Abstract

Methods and apparatus for outputting data are disclosed. One embodiment of the above method comprises: creating an object for counting information of a target component, wherein the target component comprises a target element on an interface or a page, and the object comprises user behavior data of the target component and a statistical function for processing the user behavior data; when the operation on the target component is detected, calling the statistical function to process the user behavior data; recording the processed user behavior data; and outputting and recording the obtained user behavior data. The implementation mode avoids the tedious work that the statistical codes need to be added to each statistical position in the existing method, and is beneficial to maintenance.

Description

Method and apparatus for outputting data
Technical Field
The present application relates to the field of computer technologies, and in particular, to the field of internet technologies, and in particular, to a method and an apparatus for outputting data.
Background
The existing internet application can count user behavior data, especially in social network application, the user behavior data with fine granularity is more concerned, and better customized application experience is provided for users according to the user behavior data. The user behavior data mainly includes click behavior of the user, scrolling behavior of the page or interface content, dwell time on a certain page, and the like.
Developers often need to add statistical code to each place in a page or interface where statistics are needed, and the statistical code is coupled with business code in an application to realize statistics on user behavior data. However, such statistical code is costly to add and is inconvenient to manage and maintain.
Disclosure of Invention
The present application aims to provide a method and apparatus for outputting data to solve the technical problems mentioned in the background section above.
In a first aspect, an embodiment of the present application provides a method for outputting data, where the method includes: creating an object for counting information of a target component, wherein the target component comprises a target element on an interface or a page, and the object comprises user behavior data of the target component and a statistical function for processing the user behavior data; when the operation on the target component is detected, calling the statistical function to process the user behavior data; recording the processed user behavior data; and outputting and recording the obtained user behavior data.
In some embodiments, the above method further comprises: acquiring configuration information of the target component, wherein the configuration information is used for indicating the type of the user behavior data; and the recording of the processed user behavior data includes: and recording the processed user behavior data according to the configuration information.
In some embodiments, the invoking the statistical function to process the user behavior data when the operation on the target component is detected includes: when the operation on the target assembly is detected, acquiring a preset statistical condition of the target assembly; determining whether the statistical condition is satisfied; and responding to the satisfaction of the statistical conditions, and calling the statistical function to process the user behavior data.
In some embodiments, the above method further comprises: and triggering an event corresponding to the operation so as to respond to the operation.
In some embodiments, the target component comprises an interface component, and the operation comprises a click operation on the interface component; and when the operation on the target component is detected, calling the statistical function to process the user behavior data, including: when the clicking operation on the interface component is detected, calling the statistical function, and recording the entering time of entering the interface to which the interface component belongs and the leaving time of closing the interface to which the interface component belongs; and determining the stay time length of the interface to which the interface component belongs according to the entering time and the leaving time.
In some embodiments, the above method further comprises: and updating the user behavior data according to the processed user behavior data.
In a second aspect, an embodiment of the present application provides an apparatus for outputting data, where the apparatus includes: the system comprises a creating unit, a calculating unit and a processing unit, wherein the creating unit is used for creating an object for counting information of a target assembly, the target assembly comprises a target element on an interface or a page, and the object comprises user behavior data of a user on the target assembly and a statistical function for processing the user behavior data; the processing unit is used for calling the statistical function to process the user behavior data when the operation on the target component is detected; the recording unit is used for recording the processed user behavior data; and the output unit is used for outputting the recorded user behavior data.
In some embodiments, the above apparatus further comprises: an obtaining unit, configured to obtain configuration information of the target component, where the configuration information is used to indicate a type of the user behavior data; and the recording unit is further configured to: and recording the processed user behavior data according to the configuration information.
In some embodiments, the processing unit comprises: the acquisition module is used for acquiring preset statistical conditions of the target assembly when the operation on the target assembly is detected; the determining module is used for determining whether the statistical condition is met; and the processing module is used for responding to the satisfaction of the statistical conditions and calling the statistical function to process the user behavior data.
In some embodiments, the above apparatus further comprises: and the response unit is used for triggering an event corresponding to the operation so as to respond to the operation.
In some embodiments, the target component comprises an interface component, and the operation comprises a click operation on the interface component; and the processing unit is further configured to: when the clicking operation on the interface component is detected, calling the statistical function, and recording the entering time of entering the interface to which the interface component belongs and the leaving time of closing the interface to which the interface component belongs; and determining the stay time length of the interface to which the interface component belongs according to the entering time and the leaving time.
In some embodiments, the above apparatus further comprises: and the updating unit is used for updating the user behavior data according to the processed user behavior data.
In a third aspect, an embodiment of the present application provides an apparatus, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method described in any of the above embodiments.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method described in any of the above embodiments.
According to the method and the device for outputting data, when user behavior data are counted, an object for counting information of a target component is created first, the target component can be a target element on an interface or a page, and the object can include user behavior data of the target component and a statistical function for processing the user behavior data. And when the operation on the target component is detected, calling the statistical function to process the user behavior data, recording the processed user behavior data, and finally outputting the recorded data. According to the method, the elements in the interface or the page are designed in the form of the components, then the statistical functions are provided for the components, and the statistical processing of the user behavior data is completed by utilizing the statistical functions, so that the tedious work that statistical codes need to be added to each statistical position in the conventional method is avoided, and the maintenance is facilitated.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a flow diagram of one embodiment of a method for outputting data, according to the present application;
FIG. 2 is an exemplary system architecture diagram to which the present application may be applied;
FIG. 3 is a schematic diagram of an application scenario of a method for outputting data according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for outputting data according to the present application;
FIG. 5 is a schematic block diagram illustrating one embodiment of an apparatus for outputting data according to the present application;
fig. 6 is a schematic structural diagram of a computer system suitable for implementing the terminal device or the server according to the embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
FIG. 1 shows a flow diagram 100 of one embodiment of a method for outputting data according to the present application. As shown in fig. 1, the method for outputting data of the present embodiment includes the steps of:
in step 101, an object for counting information of a target component is created.
The method for outputting data of the embodiment may be executed on the terminal, or may be executed on the server, and may perform statistics on information of the application installed on the terminal. The application installed on the terminal can comprise a plurality of interfaces or pages, at least one interface or page comprises a plurality of elements, and the elements can exist in the form of components, for example, buttons, pictures or words on the interfaces or pages can be used as the components. In this embodiment, a component that needs to count information may be used as a target component, for example, if a certain application needs to count the number of clicks on a button, the button that needs to be counted may be used as the target component.
After the target component is determined, an object for counting information of the target component may be created. The above object may be understood as a minimum unit of operation in an object-oriented field, which may be created by using a class as a template, or an object may be an instance created by using a class as a template. The object may include user behavior data (e.g., number of clicks of thumbs button) of the target component by the user and a statistical function that processes the user behavior data. The statistical function may be a statistical function for performing various operations such as addition and subtraction on the user behavior data.
And 102, calling a statistical function to process the user behavior data when the operation on the target component is detected.
In this embodiment, when the operation of the target component is detected, the statistical function may be called by the created object to process the user behavior data. It will be appreciated that the operation may be different for different target components, for example, when the target component is a button, the operation may be a click; when the target component is a page, the operation may be a sliding or scrolling operation on the display screen.
In the object-oriented domain, a class may contain a number of methods, where the methods are actually various functions. In this embodiment, the function is called a statistical function, and when the function is actually used, the statistical function may be called by an object, and the statistical function may read user behavior data in the object and process the read user behavior data.
For example, when the user behavior data in the object is the number of times that the user clicks the ok button, the initial value of the number of times is 0. When the click on the like button is detected, a statistical function for summation can be called to read the value of the times first, and the summation processing is carried out after the value of the times is read, namely the value is added by 1, so that the statistics on the click times of the like button is realized.
And 103, recording the processed user behavior data.
After the user behavior data is processed by using the statistical function, the processed user behavior data needs to be recorded. It is understood that the processed user behavior data may be recorded locally; and when the processing occurs in the terminal, the processed user behavior data can be sent to the server in real time for the server to record.
And 104, outputting and recording the obtained user behavior data.
After the processed user behavior data is recorded, the recorded user behavior data can be output, for example, the user behavior data can be output to a user so that the user can review the contents of the user who focuses on the user in the application using process; the user behavior data can be output to application developers, so that the application developers can push information and the like which can arouse the user interest to the users according to the contents which are focused by the users.
In this embodiment, when the method for outputting data is executed on a server, the system architecture diagram thereof may be as shown in fig. 2. Fig. 2 shows an exemplary system architecture 200 to which embodiments of the method for outputting data of the present application may be applied.
As shown in fig. 2, the system architecture 200 may include terminal devices 201, 202, 203, a network 204, and a server 205. The network 204 serves as a medium for providing communication links between the terminal devices 201, 202, 203 and the server 205. Network 204 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 201, 202, 203 to interact with the server 205 via the network 204 to receive or send messages or the like. The terminal devices 201, 202, 203 may have installed thereon various communication client applications, such as social platform software, web browser applications, shopping applications, search applications, instant messaging tools, mailbox clients, and the like.
The terminal devices 201, 202, 203 may be various electronic devices having a display screen and supporting social communication, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture experts Group Audio Layer III, motion Picture experts compression standard Audio Layer 3), MP4 players (Moving Picture experts Group Audio Layer IV, motion Picture experts compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 205 may be a server providing various services, such as a backend server providing support for social software installed on the terminal devices 201, 202, 203. The background server may perform statistics and other processing on data such as received operation requests for each component on the interface or the page, and feed back a processing result (for example, user behavior data obtained through statistics) to the terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 2 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for outputting data according to the present embodiment. In the application scenario of fig. 3, when browsing the social software 311 installed on the terminal 301, the user clicks a thumbs button under a post name "late-night welfare, say" the best food you have eaten ", initiated by another user" xiao a ", the terminal 301, when detecting the above operation, sends a request with the above operation to the server 32, and the server 32 performs user behavior data statistics on the above user, and obtains a result shown as 321: praise "a best-eaten gourmet you said" late-night welfare "published by user" Xiao A "; … … are provided.
In the method for outputting data provided by the above embodiment of the present application, when user behavior data is counted, an object for counting information of a target component is first created, where the target component may be a target element on an interface or a page, and the object may include user behavior data of the target component and a statistical function for processing the user behavior data. And when the operation on the target component is detected, calling the statistical function to process the user behavior data, recording the processed user behavior data, and finally outputting the recorded data. According to the method, the elements in the interface or the page are designed in the form of the components, then the statistical functions are provided for the components, and the statistical processing of the user behavior data is completed by utilizing the statistical functions, so that the tedious work that statistical codes need to be added to each statistical position in the conventional method is avoided, and the maintenance is facilitated.
In some optional implementations of this embodiment, before step 103, the method may further include the following steps not shown in fig. 1: configuration information of the target component is obtained. In this implementation, the user behavior data may be of various types, including but not limited to: click times, scroll browsing times, browsing duration of a page, and the like.
Accordingly, the step 103 may include: and recording the processed user behavior data according to the configuration information. That is, what types of data are included in the configuration information, what types of processed user behavior data are recorded.
In some optional implementation manners of this embodiment, the configuration information may further include content that needs to be recorded in the user behavior data, and for example, the content may include: the time when the user operates the target component, the identification information of the user, the identification information of the page or the interface to which the target component belongs, and the like. It can be understood that if the configuration information includes the above-mentioned content, the user behavior data recorded by the server needs to include the above-mentioned content to clarify which user performs what operation on which component at what time.
In some optional implementation manners of this embodiment, the configuration information may further include a recording requirement to be met when the processed user behavior data is recorded. For example, when recording time, year, month, day and time, recording data is stored locally or uploaded to the internet.
In some optional implementations of this embodiment, the method may further include the following steps not shown in fig. 1: and triggering an event corresponding to the operation so as to respond to the operation.
In this implementation manner, when detecting an operation of a target component by a user, a terminal may first trigger an event corresponding to the operation to respond to the operation; or triggering the event corresponding to the operation after calling the statistical function to process the user behavior data. For example, when the terminal detects that the user slides to the touch screen or rolls the scroll wheel of the mouse, the onsscroll event may be triggered before or after the statistical function is called to process the user behavior data, so as to implement the sliding of the page or the interface. It is understood that the operation of calling the statistical function may be implemented by extending the original onstrol event, that is, adding the statistical code before or after the original onsrol event to implement calling the statistical function.
In some optional implementations of the embodiment, the target component includes an interface component, and the operation includes a click operation on the interface component. The above step 102 may comprise the following steps not shown in fig. 1:
when the clicking operation on the interface component is detected, calling a statistical function, and recording the entering time of entering the interface to which the interface component belongs and the leaving time of closing the interface to which the interface component belongs; and determining the stay time length of the interface to which the interface component belongs according to the entering time and the leaving time.
In the implementation mode, the statistics of the stay time of the user on the interface can be realized, and for research personnel of the application, the further understanding of the concerned content of the user can be realized through the stay time.
With continued reference to FIG. 4, a flow 400 of another embodiment of a method for outputting data in accordance with the present application is shown. When the method for outputting data of the present embodiment executes step 102 shown in fig. 1, the following steps are specifically executed:
step 401, when the operation on the target component is detected, acquiring a preset statistical condition of the target component.
In this embodiment, when the terminal detects an operation of the target component, a preset statistical condition for the target component is obtained. The statistical conditions may include, but are not limited to: the time when the operation occurs is within a preset time period, the age of the user who occurs the operation is within a preset age range, the location of the user who occurs the operation is within a preset geographical range, and the like.
Step 402, determining whether the statistical condition is satisfied.
After obtaining the above statistical conditions, it needs to be determined whether the obtained statistical conditions are satisfied one by one, and if so, step 403 is executed.
And step 403, responding to the satisfaction of the statistical conditions, and calling a statistical function to process the user behavior data.
And calling the statistical function to process the user behavior data only when the statistical condition is met. When the statistical condition is not satisfied, the operation of the user is not counted, so that a statistical function is not called to process the user behavior data.
According to the method for outputting the data, when the user behavior data of the target component are counted, the counting condition is preset for the target component, and only when the counting condition is met, the operation of the user is counted, so that the rich-pertinence counting is realized, and the information can be more pertinently pushed.
In some optional implementations of this embodiment, the method may further include the following steps not shown in fig. 4: and updating the user behavior data according to the processed user behavior data.
In the implementation mode, the statistical function needs to be called to process the user behavior data, so that the accuracy of the user behavior data can be ensured by updating the user behavior data in time. Therefore, when the processed user behavior data is obtained, the processed user behavior data can be used for replacing the user behavior data in the object in time.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for outputting data, which corresponds to the method embodiment shown in fig. 1, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the apparatus 500 for outputting data of the present embodiment includes: a creation unit 501, a processing unit 502, a recording unit 503, and an output unit 504.
The creating unit 501 is configured to create an object for counting information of a target component.
The target component comprises a target element on an interface or a page, and the object comprises user behavior data of the target component and a statistical function for processing the user behavior data.
The processing unit 502 is configured to, when an operation on the target component is detected, invoke a statistical function to process the user behavior data.
A recording unit 503, configured to record the processed user behavior data;
and an output unit 504, configured to output the recorded user behavior data.
In some optional implementations of the present embodiment, the apparatus 500 for outputting data may further include an obtaining unit, not shown in fig. 5, configured to obtain the configuration information of the target component. The configuration information is used for indicating the type of the user behavior data. Accordingly, the recording unit 503 may be further configured to record the processed user behavior data.
In some optional implementations of this embodiment, the processing unit 502 may further include an obtaining module, a determining module, and a processing module, which are not shown in fig. 5.
The acquisition module is used for acquiring preset statistical conditions of the target assembly when the operation on the target assembly is detected.
And the determining module is used for determining whether the statistical condition acquired by the acquiring module is satisfied.
And the processing module is used for responding to the determination module that the statistical condition is met and calling the statistical function to process the user behavior data.
In some optional implementations of the present embodiment, the apparatus 500 for outputting data may further include a response unit, not shown in fig. 5, for triggering an event corresponding to the operation to respond to the operation.
In some optional implementations of the embodiment, the target component includes an interface component, and the operation includes a click operation on the interface component. The processing unit 502 may be further configured to: when the clicking operation on the interface component is detected, calling a statistical function, and recording the entering time of entering the interface to which the interface component belongs and the leaving time of closing the interface to which the interface component belongs; and determining the stay time of the interface to which the interface component belongs according to the entering time and the leaving time.
In some optional implementations of the present embodiment, the apparatus 500 for outputting data may further include an updating unit, not shown in fig. 5, configured to update the user behavior data according to the processed user behavior data.
When the device for outputting data provided by the above embodiment of the present application is used for counting user behavior data, an object for counting information of a target component is first created, where the target component may be a target element on an interface or a page, and the object may include user behavior data of the target component and a statistical function for processing the user behavior data. And when the operation on the target component is detected, calling the statistical function to process the user behavior data, recording the processed user behavior data, and finally outputting the recorded data. According to the method, the elements in the interface or the page are designed in the form of the components, then the statistical functions are provided for the components, and the statistical processing of the user behavior data is completed by utilizing the statistical functions, so that the tedious work that statistical codes need to be added to each statistical position in the conventional method is avoided, and the maintenance is facilitated.
It should be understood that the units 501 to 504, which are described in the apparatus 500 for outputting data, correspond to the respective steps in the method described with reference to fig. 1, respectively. Thus, the operations and features described above for the method for outputting data are equally applicable to the apparatus 500 and the units included therein and will not be described again here. The corresponding elements of the apparatus 500 may cooperate with elements in a server to implement aspects of embodiments of the present application.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing a terminal device or server of an embodiment of the present application. The terminal device/server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a creation unit, a processing unit, a recording unit, and an output unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, a creation unit may also be described as a "unit that creates an object for information of a statistical target component".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: creating an object for counting information of a target component, wherein the target component comprises a target element on an interface or a page, and the object comprises user behavior data of the target component and a statistical function for processing the user behavior data; when the operation on the target component is detected, calling the statistical function to process the user behavior data; recording the processed user behavior data; and outputting and recording the obtained user behavior data.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (12)

1. A method for outputting data, the method comprising:
acquiring configuration information of a target component, wherein the configuration information is used for indicating the type of user behavior data and comprises recording requirements to be met when the processed user behavior data are recorded;
creating an object for counting information of a target component, wherein the target component comprises a target element on an interface or a page, and the object comprises user behavior data of the target component by a user and a statistical function for processing the user behavior data;
when the operation on the target component is detected, calling the statistical function to process the user behavior data;
recording the processed user behavior data according to the recording requirements in the configuration information;
and outputting and recording the obtained user behavior data.
2. The method of claim 1, wherein the invoking the statistical function to process the user behavior data upon detecting the operation on the target component comprises:
when the operation on the target assembly is detected, acquiring a preset statistical condition of the target assembly;
determining whether the statistical condition is satisfied;
and responding to the satisfaction of the statistical condition, and calling the statistical function to process the user behavior data.
3. The method of claim 1, further comprising:
and triggering an event corresponding to the operation to respond to the operation.
4. The method of claim 1, wherein the target component comprises an interface component, and the operation comprises a click operation on the interface component; and
when the operation on the target component is detected, the statistical function is called to process the user behavior data, and the method comprises the following steps:
when the clicking operation on the interface component is detected, calling the statistical function, and recording the entering time of entering the interface to which the interface component belongs and the leaving time of closing the interface to which the interface component belongs;
and determining the stay time of the interface to which the interface component belongs according to the entering time and the leaving time.
5. The method of claim 1, further comprising:
and updating the user behavior data according to the processed user behavior data.
6. An apparatus for outputting data, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring configuration information of a target component, the configuration information is used for indicating the type of user behavior data, and the configuration information comprises recording requirements to be met when the processed user behavior data is recorded;
the system comprises a creating unit, a calculating unit and a processing unit, wherein the creating unit is used for creating an object for counting the information of a target component, the target component comprises a target element on an interface or a page, and the object comprises user behavior data of a user on the target component and a statistical function for processing the user behavior data;
the processing unit is used for calling the statistical function to process the user behavior data when the operation on the target component is detected;
the recording unit is used for recording the processed user behavior data according to the recording requirements in the configuration information;
and the output unit is used for outputting the recorded user behavior data.
7. The apparatus of claim 6, wherein the processing unit comprises:
the acquisition module is used for acquiring preset statistical conditions of the target assembly when the operation on the target assembly is detected;
a determination module for determining whether the statistical condition is satisfied;
and the processing module is used for responding to the satisfaction of the statistical condition and calling the statistical function to process the user behavior data.
8. The apparatus of claim 6, further comprising:
and the response unit is used for triggering an event corresponding to the operation so as to respond to the operation.
9. The apparatus of claim 6, wherein the target component comprises an interface component, and the operation comprises a click operation on the interface component; and
the processing unit is further to:
when the clicking operation on the interface component is detected, calling the statistical function, and recording the entering time of entering the interface to which the interface component belongs and the leaving time of closing the interface to which the interface component belongs;
and determining the stay time of the interface to which the interface component belongs according to the entering time and the leaving time.
10. The apparatus of claim 6, further comprising:
and the updating unit is used for updating the user behavior data according to the processed user behavior data.
11. An apparatus, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201710114681.8A 2017-02-28 2017-02-28 Method and apparatus for outputting data Active CN106897202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710114681.8A CN106897202B (en) 2017-02-28 2017-02-28 Method and apparatus for outputting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710114681.8A CN106897202B (en) 2017-02-28 2017-02-28 Method and apparatus for outputting data

Publications (2)

Publication Number Publication Date
CN106897202A CN106897202A (en) 2017-06-27
CN106897202B true CN106897202B (en) 2020-09-01

Family

ID=59184812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710114681.8A Active CN106897202B (en) 2017-02-28 2017-02-28 Method and apparatus for outputting data

Country Status (1)

Country Link
CN (1) CN106897202B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341033A (en) * 2017-06-30 2017-11-10 百度在线网络技术(北京)有限公司 A kind of data statistical approach, device, electronic equipment and storage medium
CN108933823B (en) * 2018-06-28 2021-09-03 北京京东尚科信息技术有限公司 User touch method and device
CN109446044A (en) * 2018-10-19 2019-03-08 北京字节跳动网络技术有限公司 Processing method, device, electronic equipment and the storage medium of web page operation data
CN111367517B (en) * 2018-12-26 2023-05-09 北京易数科技有限公司 Information generation method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043705A (en) * 2009-10-19 2011-05-04 阿里巴巴集团控股有限公司 Statistical method and apparatus for input behavior
CN103281217A (en) * 2013-05-23 2013-09-04 中国科学院计算机网络信息中心 User page stay time measuring method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8275581B2 (en) * 2009-01-15 2012-09-25 International Business Machines Corporation Managing statistical profile data
CN101739439B (en) * 2009-11-30 2014-03-12 中兴通讯股份有限公司 Method and system for dynamically customizing statistical object based on template
CN102999500B (en) * 2011-09-09 2017-02-15 深圳市快播科技有限公司 Statistical method and system for click rate
CN105701164A (en) * 2015-12-30 2016-06-22 广东欧珀移动通信有限公司 Statistical method and device for web hits
CN106250107A (en) * 2016-07-18 2016-12-21 福建天泉教育科技有限公司 A kind of data statistical approach and system
CN106407092B (en) * 2016-09-30 2019-06-21 广州欢聚时代信息科技有限公司 Interface operation data report and device, interface operation data statistical approach and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043705A (en) * 2009-10-19 2011-05-04 阿里巴巴集团控股有限公司 Statistical method and apparatus for input behavior
CN103281217A (en) * 2013-05-23 2013-09-04 中国科学院计算机网络信息中心 User page stay time measuring method

Also Published As

Publication number Publication date
CN106897202A (en) 2017-06-27

Similar Documents

Publication Publication Date Title
CN109460513B (en) Method and apparatus for generating click rate prediction model
CN107665225B (en) Information pushing method and device
US9936330B2 (en) Methods for exchanging data amongst mobile applications using superlinks
CN106897202B (en) Method and apparatus for outputting data
CN107390983B (en) Service instruction execution method, client and storage medium
CN110866040A (en) User portrait generation method, device and system
CN113760289A (en) Method and device for drawing canvas
CN115022272B (en) Information processing method, apparatus, electronic device and storage medium
CN111061860A (en) Abstract generation method and device
CN109947526B (en) Method and apparatus for outputting information
CN109408647B (en) Method and apparatus for processing information
CN110619101B (en) Method and apparatus for processing information
CN112083982A (en) Information processing method and device
CN113590985B (en) Page jump configuration method and device, electronic equipment and computer readable medium
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
US9704178B2 (en) Customizable sequence of content
CN110881056A (en) Method and device for pushing information
CN113568695A (en) Corner mark processing method and device for boarder application
CN115022266A (en) Group member adding method, device, equipment and medium
CN111767290B (en) Method and apparatus for updating user portraits
CN111125501B (en) Method and device for processing information
CN111222067B (en) Information generation method and device
CN108874390B (en) Data processing method and device, equipment and storage medium
US11182831B1 (en) Methods and systems for untargeting users of an online service for advertising
CN111367517B (en) Information generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant