CN108810057B - User behavior data acquisition method and device and storage medium - Google Patents

User behavior data acquisition method and device and storage medium Download PDF

Info

Publication number
CN108810057B
CN108810057B CN201710310729.2A CN201710310729A CN108810057B CN 108810057 B CN108810057 B CN 108810057B CN 201710310729 A CN201710310729 A CN 201710310729A CN 108810057 B CN108810057 B CN 108810057B
Authority
CN
China
Prior art keywords
user behavior
behavior data
data
transmission structure
transparent transmission
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
CN201710310729.2A
Other languages
Chinese (zh)
Other versions
CN108810057A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710310729.2A priority Critical patent/CN108810057B/en
Publication of CN108810057A publication Critical patent/CN108810057A/en
Application granted granted Critical
Publication of CN108810057B publication Critical patent/CN108810057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Abstract

The embodiment of the invention discloses a method, a device and a storage medium for acquiring user behavior data; the embodiment of the invention adopts the technical scheme that a transparent transmission structure field and a data tag are carried in an information flow, wherein the data tag indicates user behavior data to be acquired, so that a client can monitor the operation of a user on the information flow after receiving the information flow, and acquire corresponding user behavior data from data obtained by monitoring according to the data tag in a centralized manner, and then carry the acquired user behavior data in the transparent transmission structure field and transmit the data to a server; according to the scheme, personalized data acquisition can be performed, the acquisition flexibility is greatly improved, and the controllability of an acquisition result is enhanced.

Description

User behavior data acquisition method and device and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for acquiring user behavior data and a storage medium.
Background
Streams of information (feeds) is a message format in the RSS (Simple Syndication) technology. With the development of internet technology, information flow is also becoming a way for people to communicate and share information, and how to collect user behavior data in information flow is also of positive significance.
In the prior art, data collection in an information stream is generally realized by a third-party application. For example, a third-party Application may be used to perform a site burying at a client, predefine which operations or events of which controls need to be monitored, and perform data acquisition, and then call an Application Programming Interface (API) of the third-party Application to report the acquired data to a corresponding background to generate a monitoring report, so that corresponding operations, such as data analysis, evaluation, information recommendation, or the like, may be performed based on the monitoring report.
In the process of research and practice of the prior art, the inventor of the present invention finds that, because the existing scheme mainly depends on third-party application, and the function of the third-party application is fixed and relatively limited, not only is the flexibility poor, but also the acquired data is often inconsistent with the actual requirement, and the controllability of the acquisition result is poor.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a storage medium for acquiring user behavior data; personalized data acquisition can be carried out, the acquisition flexibility is greatly improved, and the controllability of acquisition results is enhanced.
The embodiment of the invention provides a method for acquiring user behavior data, which comprises the following steps:
receiving an information flow sent by a server, wherein the information flow carries a transparent transmission structure field and a data tag, and the data tag indicates user behavior data to be acquired;
displaying the information flow, and monitoring the operation of a user on the information flow to obtain a user behavior data set;
collecting corresponding user behavior data from the user behavior data set according to the data tag;
and carrying the collected user behavior data in the transparent transmission structure field and transmitting the data to the server.
Correspondingly, an embodiment of the present invention further provides an apparatus for acquiring user behavior data, including:
the receiving unit is used for receiving an information stream sent by a server, wherein the information stream carries a transparent transmission structure field and a data tag, and the data tag indicates user behavior data required to be acquired;
the monitoring unit is used for displaying the information flow and monitoring the operation of the user on the information flow to obtain a user behavior data set;
the acquisition unit is used for acquiring corresponding user behavior data from the user behavior data set according to the data label;
and the reporting unit is used for carrying the collected user behavior data in the transparent transmission structure field and transmitting the user behavior data to the server.
In addition, the embodiment of the present invention further provides a storage medium, where processor-executable instructions are stored, and the processor-executable instructions are used to execute the steps in any one of the methods for acquiring user behavior data provided by the embodiment of the present invention.
The embodiment of the invention adopts the mode that the transparent transmission structure field and the data label which indicates the user behavior data to be collected are carried in the information flow, so that the client can monitor the operation of the user on the information flow after receiving the information flow, collect the corresponding user behavior data from the data set obtained by monitoring according to the data label, and then carry the collected user behavior data in the transparent transmission structure field to transmit the data to the server, thereby achieving the purpose of personalized collection; because the scheme can set the data label according to the actual requirement to collect the user behavior data in a targeted manner, compared with the existing scheme that the data collection can only be carried out according to a certain fixed mode, the collection mode is more personalized, thereby not only greatly improving the collection flexibility, but also enhancing the controllability of the collection result; in addition, the collected user behavior data can be carried in the transparent transmission structure field and transmitted to the server, so that the influence on the existing service system framework is small, and the realization is simple and convenient.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a scene schematic diagram of a method for acquiring user behavior data according to an embodiment of the present invention;
fig. 1b is a flowchart of a method for collecting user behavior data according to an embodiment of the present invention;
FIG. 2 is another flow chart of a method for collecting user behavior data according to an embodiment of the present invention;
fig. 3a is another flowchart of a method for collecting user behavior data according to an embodiment of the present invention;
fig. 3b is an exemplary diagram of region partition in the user behavior data acquisition method according to the embodiment of the present invention;
fig. 3c is another exemplary diagram of region division in the method for acquiring user behavior data according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for acquiring user behavior data according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for receiving user behavior data according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present invention
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method, a device and a system for acquiring user behavior data and a storage medium.
The user behavior data acquisition system (data acquisition system for short) may include any one of the user behavior data acquisition devices (data acquisition devices for short) and the user behavior data receiving device (data receiving device for short) provided in the embodiments of the present invention, the data acquisition device may be integrated in the client, and the data receiving device may be integrated in the background, such as a server and other devices.
For example, taking the case that the data acquisition device is integrated in the client and the data receiving device is integrated in the server, referring to fig. 1a, the server may obtain an original information stream and a data tag of user behavior data to be acquired, then add a transparent transmission structure field and the data tag in the original information stream to generate an information stream, and send the information stream to the client; and after receiving the information flow, the client displays the information flow, monitors the operation of the user on the information flow to obtain a user behavior data set, acquires corresponding user behavior data from the user behavior data set according to the data label, and returns the user behavior data to the server after being carried in the transparent transmission structure field.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
The first embodiment,
In this embodiment, the data collecting device for the user behavior data is described in terms of a device for collecting the user behavior data, which is simply referred to as a data collecting device, and may be specifically integrated in a client, where the client may be specifically installed in a terminal and the like, and the terminal may include a mobile phone, a tablet computer, and/or a notebook computer and the like.
A method for collecting user behavior data comprises the following steps: receiving an information flow sent by a server, wherein the information flow carries a transparent transmission structure field and a data tag, and the data tag indicates user behavior data needing to be acquired; displaying the information flow, and monitoring the operation of the user on the information flow to obtain a user behavior data set; collecting corresponding user behavior data from the user behavior data set according to the data tag; and carrying the collected user behavior data in the transparent transmission structure field and transmitting the data to the server.
As shown in fig. 1b, a specific flow of the user behavior data collection method may be as follows:
101. and receiving the information stream sent by the server.
The information flow carries a transparent transmission structure field and a data label, and the data label indicates user behavior data needing to be collected. The transparent transmission structure field may specifically be a cookie field or other fields that can be used to carry transparent transmission information.
The data tag carried in the information flow may be single or multiple. The content and format of the data tag and the corresponding relation between the data tag and the user behavior data can be set according to the requirements of practical application. For example, taking the data tag as a preset number as an example, it may be set that the data tag "001" corresponds to video playing state data, and if "001" is indicated in the information stream, it indicates that the client needs to acquire related data of the "video playing state", and so on.
Optionally, the information stream may also carry or indicate other information, for example, may indicate a reporting mode of the acquired data, and the like. The reporting mode may include a reporting timing and a reporting mode, where the reporting timing may include a timing report, a real-time report, and a quantitative report (that is, the report is performed only when the data amount exceeds a preset threshold), and the reporting mode may include a full-volume report and a sampling report.
102. And displaying the information flow, and monitoring the operation of the user on the information flow to obtain a user behavior data set.
Optionally, in order to facilitate monitoring of user operations and more detailed and flexible reporting analysis of application scenarios, the display page of the information stream may be divided into regions, and then each region is monitored, that is, the step "monitoring the user operations on the information stream to obtain the user behavior data set" may include:
(1) and carrying out region division on the display page of the information flow according to a preset strategy to obtain an operation region.
The preset policy may be determined according to a requirement of an actual application, for example, the preset policy may be divided according to a distribution situation of the control, that is, the step "performing region division on the display page of the information stream according to the preset policy to obtain the operation region" may specifically be as follows:
and acquiring the distribution information of the control in the display page of the information flow, and performing region division on the display page according to the distribution information of the control to obtain an operation region.
The control may include a control in the avatar area, a control in the nickname area, a control in the main tile area, a corresponding control in the comment area (e.g., like, for a bonus, or a comment), and/or a corresponding control in the share area, and so on.
For example, taking the control including a control in a head portrait area, a control in a nickname area, a control in a main posting area, a corresponding control in a comment area, and a corresponding control in a sharing area as an example, at this time, according to the positions of the multiple controls in the information flow display page, the display page may be subjected to region division to obtain multiple corresponding operation regions, specifically: head portrait area, nickname area, main sticker area, comment area, and share area, etc.
Optionally, besides being divided according to the distribution of the controls, the information flow may also be divided according to other manners, for example, the information flow may also be divided according to the category of the display content, for example, whether the display content is a picture, a video, or a text, or the like, that is, the step "dividing the display page of the information flow by the area according to the preset policy to obtain the operation area" may also include:
and classifying the content displayed by the information flow in the display page, and performing region division on the display page according to the classification result to obtain an operation region.
The classification manner may be determined according to requirements of practical applications, for example, the content displayed in the display page may be divided into "images" and "texts", and a plurality of reference lines, such as "top lines", "main pasting lines", and "bottom lines", are respectively set for the display page, then, based on the positions of the "images" and the "texts", the display page is subjected to region division, for example, if the position of the "images" is higher than the top lines, the "images" are determined as head portraits, and therefore, the region of the "images" is divided into "head portraits regions"; if the position of the text is higher than the top line, the text is determined to be the head portrait, and therefore, the area where the text is located is divided into a nickname area; if the position of the image or the text is lower than the top line and the distance between the image or the text and the main pasting line is less than the preset distance, determining the image or the text as the main pasting, and therefore dividing the area where the image or the text is located into a main pasting area; if the position of the text is higher than the top line and the distance from the top line is smaller than the set value, the text can be determined as a comment, and therefore, the area where the text is located can be divided into a comment area, and so on.
(2) And respectively monitoring the operation of the user in each operation area to obtain a user behavior data set.
For example, function information of a control in each operation region may be acquired, respectively, the function information indicating operation contents that a user can perform; when the user executes the operation content indicated by the function information in the display page, the operation content, the operation track and the belonging operation area executed by the user are recorded, and the recorded operation content, operation track and operation area are taken as an operation record and added to the user behavior data set.
For example, taking a control related to "video" as an example, the corresponding function information includes "start playing", and "stop playing", and if the user performs the operation of "start playing" on the display page, at this time, information such as "start playing", an operation track such as "click on the video page to trigger start playing", and an affiliated operation area such as "main tile" of the operation track performed by the user may be recorded and added to the user behavior data set as an operation record.
103. And collecting corresponding user behavior data from the user behavior data set according to the data tag.
For example, the operation area and the operation content required to collect the user behavior data may be determined according to the data tag, and the corresponding operation record may be collected from the user behavior data set according to the determined operation area and the determined operation content to obtain the user behavior data required to be collected.
For example, taking the example in step 101 as an example, if the data tag is "001", at this time, it can be determined that the user behavior data to be collected is the related data of the "video playing state" according to the corresponding relationship between the data tag and the user behavior data, and therefore, it can be determined that the operation area is the "main tile", and the operation content is the "video playing state", such as "start playing" and "stop playing", and therefore, the operation records related to the "main tile" and the "video playing state" can be collected from the user behavior data collectively, and the user behavior data to be collected can be obtained.
104. And carrying the collected user behavior data in the transparent transmission structure field and transmitting the data to the server.
For example, the collected user behavior data can be carried in the transparent transmission structure field in real time and transmitted to the server. Or, the collected user behavior data may be carried in the transparent transmission structure field at regular time and transmitted to the server, for example, once in 3 hours or once in 1 day, and so on.
Optionally, because the generated data volume is large, in order to save resources and improve user experience, the data volume may be reported only when accumulated to a certain value, that is, the step "carrying the collected user behavior data in the transparent transmission structure field and transmitting the collected user behavior data to the server" may also include:
and when the data volume of the collected user behavior data is larger than a preset threshold value, carrying the collected user behavior data in the transparent transmission structure field and transmitting the transparent transmission structure field to the server.
The preset threshold may be set according to the requirements of practical applications, and is not described herein again.
Optionally, if the information flow further indicates a reporting mode of the collected data (i.e., the user behavior data), at this time, transparent transmission may also be performed according to an indication of the reporting mode, that is, the step "carrying the collected user behavior data in a transparent transmission structure field and transmitting the collected user behavior data to the server" may also include:
and carrying the collected user behavior data in the transparent transmission structure field according to the reporting mode indicated in the information flow, and transmitting the user behavior data to the server.
For example, if the information flow indicates real-time reporting of data, at this time, the collected user behavior data may be carried in the transparent transmission structure field in real time and transmitted to the server; if the information flow indicates that the data is reported regularly, the collected user behavior data can be carried in the transparent transmission structure field regularly and transmitted to the server; if the information flow indicates that the data is quantitatively reported, when the accumulated amount of the collected user behavior data is larger than a preset threshold value, the collected user behavior data is carried in the transparent transmission structure field and is transmitted to the server, and the like.
In addition, optionally, when the collected user behavior data is transmitted to the server, the collected user behavior data may be transmitted to the server in full, or only a part of the collected user behavior data may be extracted and transmitted to the server; that is, the step of "carrying the collected user behavior data in the transparent transmission structure field and transmitting the data to the server" may include:
and sampling the collected user behavior data, carrying the sampled user behavior data in a transparent transmission structure field, and transmitting the transparent transmission structure field to a server.
The selection of "full reporting" or "sample reporting" can be determined according to the requirements of the actual application, such as cost, user experience, product requirements, and other factors. The setting may be performed in the client in advance, or the indication may be performed by the server in a "reporting mode", which is not described herein again.
Optionally, the reporting mode may be subdivided in addition to all the collected user behavior data, for example, corresponding reporting modes are respectively set for different types of data or user behavior data collected in different operation areas, and the like, so that after the required user behavior data is collected, different types of data or user behavior data in different operation areas may be reported according to the set reporting mode, for example, the user behavior data in the "main post area" is reported regularly, and the user behavior data in the "assessment area" is reported in real time, and the like. It should be noted that "reporting" refers to "transmitting to a server" in the embodiments of the present invention.
As can be seen from the above, in the embodiment, the transparent transmission structure field and the data tag indicating the user behavior data to be collected are carried in the information stream, so that after receiving the information stream, the client can monitor the operation of the user on the information stream, collect the corresponding user behavior data from the monitored data set according to the data tag, and then carry the collected user behavior data in the transparent transmission structure field to transmit the data to the server, thereby achieving the purpose of personalized collection; because the scheme can set the data label according to the actual requirement to collect the user behavior data in a targeted manner, compared with the existing scheme that the data collection can only be carried out according to a certain fixed mode, the collection mode is more personalized, thereby not only greatly improving the collection flexibility, but also enhancing the controllability of the collection result; in addition, the collected user behavior data can be carried in the transparent transmission structure field and transmitted to the server, so that the influence on the existing service system framework is small, and the realization is simple and convenient.
Example II,
The present embodiment will be described from the perspective of a receiving device of user behavior data, which may be referred to as a data receiving device for short, and may be specifically integrated in a server or other devices.
A method for receiving user behavior data, comprising: acquiring an original information flow and a data label of user behavior data to be acquired; adding a transparent transmission structure field and the data label in the original information flow to generate an information flow; and sending the information flow to the client, and receiving a transparent transmission structure field returned by the client, wherein the returned transparent transmission structure field carries user behavior data acquired by the client according to the data tag.
As shown in fig. 2, a specific flow of the receiving method of the user behavior data may be as follows:
201. and acquiring the original information flow and the data label of the user behavior data to be acquired.
The original information stream may include dynamic information that a good user pays attention to or subscribes to, for example, dynamic information of a friend such as a saying published by the friend, a microblog, or a friend circle state.
The content and format of the data tag and the corresponding relationship between the data tag and the user behavior data may be set according to the requirements of the actual application, and are not described herein again.
202. And adding a transparent transmission structure field and a data tag in the original information flow to generate the information flow. For example, the following may be specifically mentioned:
determining a structural body of the original information flow, and adding a transparent transmission structure field (such as a cookie field) and a data tag in the structural body according to a preset strategy to generate the information flow.
The preset policy may be set according to the requirements of the actual application, and is not described herein again.
Optionally, the information stream may also indicate other content, for example, may also indicate a reporting mode of the collected data, and the like. The reporting mode may include a reporting timing and a reporting mode, where the reporting timing may include a timing report, a real-time report, and a quantitative report (that is, the report is performed only when the data amount exceeds a preset threshold), and the reporting mode may include a full-volume report and a sampling report.
203. And sending the information flow to the client.
For example, the information flow may be specifically sent to the client through the internet or a wireless network, for example, the dynamic friend information added with the transparent transmission structure field and the data tag is sent, and the like.
204. And receiving a transparent transmission structure field returned by the client, wherein the returned transparent transmission structure field carries user behavior data acquired by the client according to the data tag.
For example, a passthrough structure field returned by the client in real time or at regular time may be specifically received, or a passthrough structure field returned by the client when it is determined that the data volume of the collected user behavior data is greater than a preset threshold value may be received.
Optionally, if in step 202, the information flow further indicates a reporting mode, the client needs to return the transparent transmission structure field according to the indicated reporting mode, that is, the step "receiving the transparent transmission structure field returned by the client" may specifically be as follows:
and receiving the transparent transmission structure field returned by the client according to the reporting mode.
For example, if the reporting mode is a timed reporting mode, at this time, a transparent transmission structure field returned by the client at a fixed time can be received; if the reporting mode is real-time reporting, at this time, a transparent transmission structure field returned by the client in real time can be received; if the reporting mode is quantitative reporting, at this time, a transparent transmission structure field returned by the client when the data volume of the collected user behavior data is determined to be greater than a preset threshold value can be received, and so on.
For a method for the client to acquire the user behavior data according to the data tag, reference may be specifically made to embodiment one, which is not described herein again.
Optionally, after receiving the transparent transmission structure field returned by the client, the received user behavior data may be analyzed in real time and/or offline.
For example, a portion of the received user behavior data may be bypassed to an a/B test (a/B test, a web page optimization method) system for real-time analysis, and another portion or all of the received user behavior data may be input to an offline analysis system for later offline analysis, and so on.
As can be seen from the above, in this embodiment, the transparent transmission structure field and the data tag indicating the user behavior data that needs to be collected are carried in the information stream, so that the client can monitor the operation of the user on the information stream after receiving the information stream, collect the corresponding user behavior data according to the data tag, and then return the user behavior data to the server through the transparent transmission structure field; because the scheme can set the data label according to the actual requirement to collect the user behavior data in a targeted manner, compared with the existing scheme that the data collection can only be carried out according to a certain fixed mode, the collection mode is more personalized, thereby not only greatly improving the collection flexibility, but also enhancing the controllability of the collection result; in addition, the collected user behavior data can be carried in the transparent transmission structure field and transmitted to the server, so that the influence on the existing service system framework is small, and the realization is simple and convenient.
Example III,
The method described in the first and second embodiments is further illustrated in detail by way of example.
In this embodiment, an example will be described in which the data acquisition device is specifically integrated in a client and the data receiving device is specifically integrated in a server.
A method for collecting user behavior data, as shown in fig. 3a, the specific process may be as follows:
301. the server acquires the original information flow and the data labels of the user behavior data to be collected.
For example, the server may specifically obtain a piece of friend dynamic information of the user, such as a saying, a microblog, or a friend circle state issued by a friend of the user, and obtain a data tag of user behavior data that needs to be collected in the friend dynamic information, for example, if comments of the friend state by the user, such as relevant data of user behaviors like "and/or" comment ", need to be collected, at this time, a data tag corresponding to the user behavior data like" and/or "comment" may be obtained, and so on.
For example, taking the data tag as a preset number, the data tag may be set to correspond to video playing state data such as "001", if "001" is indicated in the information stream, it indicates that the client needs to acquire related data of the "video playing state", and so on.
302. The server adds a transparent transmission structure field and a data label in the original information flow. For example, the following may be specifically mentioned:
the server determines a structural body of the original information flow, and adds a transparent transmission structure field, such as a cookie field, and a data tag in the structural body according to a preset strategy to generate the information flow.
The preset policy may be set according to requirements of actual applications, for example, the transparent transmission structure field and the data tag may be added at the tail of the structure, or the transparent transmission structure field and the data tag may be added between two fields of the structure, or the transparent transmission structure field and the data tag may be added at different positions of the structure, and so on, which is not described herein again.
It should be noted that, the information stream may carry, in addition to the data tag indicating the user behavior data that needs to be collected, optionally, other indication information for indicating other content, for example, may also indicate a reporting mode of collected data, that is, a mode of reporting data after the client end is instructed to collect the user behavior data. The reporting mode may include a reporting timing and a reporting mode, where the reporting timing may include a timing report, a real-time report, and a quantitative report (that is, the report is performed only when the data amount exceeds a preset threshold), and the reporting mode may include a full-volume report and a sampling report.
303. The server sends the information stream to the client.
For example, the server may send the information stream to the client through the internet or a wireless network, for example, send dynamic information of the friend to which the transparent transmission structure field and the data tag are added, and the like.
304. And after receiving the information flow, the client displays the information flow, and divides the display page of the information flow according to a preset strategy to obtain an operation area.
The preset policy may be determined according to the requirement of the actual application, for example, the preset policy may be divided according to the distribution condition of the control or the category of the display content, and specifically may be as follows:
(1) dividing according to the distribution condition of the control;
and acquiring the distribution information of the control in the display page of the information flow, and performing region division on the display page according to the distribution information of the control to obtain an operation region.
The control may include a control in the avatar area, a control in the nickname area, a control in the main tile area, a corresponding control in the comment area, and/or a corresponding control in the share area, and so on.
For example, taking the control including a control in a head portrait area, a control in a nickname area, a control in a main posting area, a corresponding control in a comment area, and a corresponding control in a sharing area as an example, at this time, according to the positions of the multiple controls in the information flow display page, the display page may be subjected to region division to obtain multiple corresponding operation regions, specifically: the comment processing system comprises a head portrait area, a nickname area, a main tile area, a comment area, a sharing area and the like, wherein the comment area can be further divided into a plurality of sub-areas, such as a like operation area and a comment operation area, and the like, and refer to fig. 3 b.
(2) Divided according to categories of display contents;
and classifying the content displayed by the information flow in the display page, and performing region division on the display page according to the classification result to obtain an operation region.
The classification manner may be determined according to the requirements of the actual application, for example, the content displayed in the display page may be divided into "image" and "text", and a plurality of reference lines, such as "top line", "main pasting line", and "bottom line", are respectively set for the display page, which may be specifically shown in fig. 3 c; then, the display page is divided into regions based on the positions of the "images" and the "text". For example, referring to fig. 3c, the following may be specified:
if the position of the image is higher than the top line, the image is determined to be the head portrait, and therefore, the area where the image is located is divided into head portrait areas.
If the position of the text is higher than the top line, the text is determined to be the head portrait, and therefore, the area in which the text is located is divided into nickname areas.
If the position of the image or the text is lower than the top line and the distance between the image or the text and the main pasting line is less than the preset distance, the image or the text is determined to be the main pasting line, and therefore the area where the image or the text is located is divided into the main pasting area.
If the position of the text is higher than the top line and the distance from the top line is less than the set value, the text can be determined as a comment, so that the area where the text is located can be divided into a comment area, and further, the comment area can be divided into a plurality of sub-areas, such as a comment operation area and a comment operation area, and so on.
It should be noted that the region division in fig. 3b and fig. 3c is only an example, and it should be understood that other division manners may also be available, and are not described herein again.
305. The client monitors the operation of the user in each operation area respectively to obtain a user behavior data set; for example, the following may be specifically mentioned:
s1, the client obtains function information of the control in each operation region, where the function information indicates operation contents that can be performed by the user.
The operation content can be set according to the characteristics of each operation area and the requirements of practical application. For example, taking the video displayed in the main tile as an example, the operation contents that the user can perform are as follows: start playing and stop playing, etc. For another example, taking the praise operation area and the comment operation area as examples, in the praise operation area, the operation contents that the user can execute are: praise, and in the comment operation area, the operation content that the user can execute is: comments are made, and so on, and are not described herein.
S2, when the user executes the operation content indicated by the function information in the display page, the client records the operation content executed by the user, the operation track, and the belonging operation area, and then executes S3.
Wherein, the operation content may include: normal clicking, clicking input, canceling input, completing input, leaving the current application, refreshing entry, refreshing exit, starting play, stopping play, clicking on a video overlay, clicking on a video replay, and/or clicking on view more, etc.
The operation trajectory may include entering from the top, exiting from the top, entering from the bottom, exiting from the bottom, switching in from other pages (or applications), right-swiping, left-swiping, right-swiping, and/or right-swiping, among others.
The top and the bottom may be determined according to a "top line" and a "bottom line", for example, the top line may be set as a reference, and the area within a preset range from the top line is the top, and similarly, the bottom line may be set as a reference, and the area within a preset range from the bottom line is the bottom, and so on, which are not described herein again.
And S3, adding the recorded operation content, operation track and operation area to the user behavior data set as one operation record by the client.
For example, taking a control related to "video" as an example, the corresponding function information includes "start playing", and "stop playing", and if the user performs the operation of "start playing" on the display page, at this time, information such as "start playing", an operation track such as "click on the video page to trigger start playing", and an affiliated operation area such as "main tile" of the operation track performed by the user may be recorded and added to the user behavior data set as an operation record.
306. And the client acquires corresponding user behavior data from the user behavior data set according to the data tag.
For example, the operation area and the operation content required to collect the user behavior data may be determined according to the data tag, and the corresponding operation record may be collected from the user behavior data set according to the determined operation area and the determined operation content to obtain the user behavior data required to be collected.
For example, taking the example in step 301 as an example, if the data tag is "001", at this time, it can be determined that the user behavior data to be collected is related data of "video playing state" according to the corresponding relationship between the data tag and the user behavior data, and therefore, it can be determined that the operation area is "main tile", and the operation content is "video playing state", such as "start playing" and "stop playing", and therefore, the operation records related to the "main tile" and the "video playing state" can be collected from the user behavior data collectively, and the user behavior data to be collected can be obtained.
307. And the client carries the acquired user behavior data in the transparent transmission structure field and transmits the user behavior data to the server, such as transparent transmission to the server.
For example, the collected user behavior data can be carried in the transparent transmission structure field in real time and transmitted to the server. Or, the collected user behavior data may be carried in the transparent transmission structure field at regular time, and transmitted to the server, for example, once in 3 hours or once in 1 day, and so on.
Optionally, because the generated data amount is large, in order to save resources and improve user experience, the data amount may be reported only when accumulated to a certain value, which may be referred to in the foregoing embodiments specifically, and is not described herein again.
Optionally, if the information flow further indicates a reporting mode of the collected data (i.e., the user behavior data), at this time, the collected user behavior data may also be carried in the transparent transmission structure field according to the indication of the reporting mode, and then transmitted to the server.
For example, if the information flow indicates real-time reporting of data, at this time, the collected user behavior data may be carried in the transparent transmission structure field in real time and transmitted to the server; if the information flow indicates that the data is reported regularly, the collected user behavior data can be carried in the transparent transmission structure field regularly and transmitted to the server; if the information flow indicates that the data is quantitatively reported, carrying the collected user behavior data in a transparent transmission structure field and transmitting the data to a server when the accumulated amount of the collected user behavior data is larger than a preset threshold; if the information flow indicates that the data is timed and reported in full, all the collected user behavior data can be carried in the transparent transmission structure field in a timed mode and transmitted to the server in a transparent mode; if the information flow indicates real-time sampling and reporting of the data, the collected user behavior data can be sampled, and the sampled user behavior data is carried in a transparent transmission structure field and transmitted to a server in real time, and so on.
In addition, optionally, when the collected user behavior data is transmitted to the server, the collected user behavior data may be transmitted to the server in full (that is, full report), or only a part of the collected user behavior data may be extracted and transmitted to the server (that is, sampling report).
The selection of "full reporting" or "sample reporting" may be determined according to the requirements of the actual application, for example, according to factors such as cost, user experience, and product requirements, and will not be described herein again.
In addition, it should be noted that the reporting mode may be subdivided for all the collected user behavior data, for example, corresponding reporting modes are respectively set for different types of data or user behavior data collected in different operation areas, so that after the required user behavior data is collected, different types of data or user behavior data in different operation areas may be reported according to the set reporting mode, for example, the user behavior data in the "main post area" is reported regularly, and the user behavior data in the "assessment area" is reported in real time, and the user behavior data in the sharing area is reported quantitatively, and so on.
308. After receiving the transparent transmission structure field returned by the client, the server can perform real-time and/or off-line analysis on the received user behavior data.
For example, a portion of the received user behavior data may be bypassed to an a/B test (a/B test, a web page optimization method) system for real-time analysis, and another portion or all of the received user behavior data may be input to an offline analysis system for later offline analysis, and so on.
Optionally, the server may further generate a report according to the analysis result for a maintainer to view, or for other applications to use, for example, the analysis result may be used as a data base for information recommendation, or as a data base for click rate/interaction rate research, and the like, which is not described herein again.
As can be seen from the above, in the embodiment, the transparent transmission structure field and the data tag indicating the user behavior data to be collected are carried in the information stream, so that after receiving the information stream, the client can monitor the operation of the user on the information stream, collect the corresponding user behavior data from the monitored data set according to the data tag, and then carry the collected user behavior data in the transparent transmission structure field to transmit the data to the server, thereby achieving the purpose of personalized collection; because the scheme can set the data label according to the actual requirement to pertinently collect the user behavior data, compared with the existing scheme that the data collection can only be carried out according to a certain fixed mode, the collection mode of the scheme is more personalized, the collection flexibility can be greatly improved, and the controllability of the collection result can be enhanced.
In addition, because the display page and the action are finely divided, the collected user behavior data have thinner dimension and stronger pertinence, and the accuracy of subsequent data analysis is improved; in addition, the collected user behavior data can be carried in the transparent transmission structure field to be transmitted to the server, so that the influence on the existing service system framework is small, and the realization is simple and convenient.
Example four,
In order to better implement the method, an embodiment of the present invention further provides a device for acquiring user behavior data, which is referred to as a data acquisition device for short, and may be specifically integrated in a client.
As shown in fig. 4, the data acquisition apparatus includes a receiving unit 401, a monitoring unit 402, an acquisition unit 403, and a reporting unit 404, as follows:
(1) a receiving unit 401;
the receiving unit 401 is configured to receive an information stream sent by a server, where the information stream carries a transparent transmission structure field and a data tag, and the data tag indicates user behavior data that needs to be collected.
The data tag indicated in the information flow may be single or multiple. The content and format of the data tag and the corresponding relation between the data tag and the user behavior data can be set according to the requirements of practical application.
(2) A monitoring unit 402;
a monitoring unit 402, configured to display the information flow, and monitor an operation of a user on the information flow to obtain a user behavior data set;
for example, the monitoring unit 402 may include a display subunit, a dividing subunit, and a monitoring subunit, as follows:
the display subunit is configured to display the information stream.
The dividing subunit is configured to perform area division on the display page of the information stream according to a preset policy to obtain an operation area.
The preset policy may be determined according to the requirement of the actual application, for example, the preset policy may be divided according to the distribution of the controls or the classification of the content displayed in the display page, as follows:
the dividing subunit may be specifically configured to acquire distribution information of a control in a display page of the information stream, and perform region division on the display page according to the distribution information of the control to obtain an operation region.
Or, the dividing subunit may be specifically configured to classify content displayed in the display page by the information stream, and perform area division on the display page according to a classification result to obtain an operation area.
The monitoring subunit is configured to monitor operations of the user in each operation area, respectively, to obtain a user behavior data set. For example, the following may be specifically mentioned:
the monitoring subunit may be specifically configured to obtain function information of the control in each operation region, where the function information indicates operation content that can be executed by a user; when the user executes the operation content indicated by the function information in the display page, recording the operation content, the operation track and the affiliated operation area executed by the user; the recorded operation content, operation track, and operation area are used as an operation record and added to the user behavior data set, which may be referred to the foregoing method embodiment specifically, and details are not described here again.
(3) An acquisition unit 403;
an acquiring unit 403, configured to acquire corresponding user behavior data from the user behavior data set according to the data tag.
For example, the acquiring unit 403 may be specifically configured to determine an operation area and operation content that need to be acquired by the user behavior data according to the data tag, and acquire a corresponding operation record from the user behavior data set according to the determined operation area and operation content, so as to obtain the user behavior data that needs to be acquired.
(4) A reporting unit 404;
and a reporting unit 404, configured to carry the acquired user behavior data in the transparent transmission structure field, and transmit the user behavior data to the server. For example, the following may be specifically mentioned:
carrying the collected user behavior data in a transparent transmission structure field in real time or at regular time, and transmitting the data to a server; alternatively, the first and second electrodes may be,
and when the data volume of the collected user behavior data is larger than a preset threshold value, carrying the collected user behavior data in the transparent transmission structure field, and transmitting the transparent transmission structure field to the server.
The preset threshold may be set according to the requirements of practical applications, and is not described herein again.
Optionally, if the information flow further indicates a reporting mode of the collected data (i.e., user behavior data), at this time, transparent transmission may be performed according to the indication of the reporting mode, that is, the reporting unit 404 may be further configured to:
and if the information flow also indicates a reporting mode, carrying the acquired user behavior data in the transparent transmission structure field according to the reporting mode, and transmitting the user behavior data to the server.
Optionally, the reporting mode may be subdivided in addition to all the collected user behavior data, for example, corresponding reporting modes may be respectively set for different types of data or user behavior data collected in different operation areas, and the like, so that after the required user behavior data is collected, the reporting unit 404 may report the different types of data or the user behavior data in different operation areas according to the set reporting modes
Optionally, when the collected user behavior data is transmitted to the server, the collected user behavior data may be transmitted to the server in full, or only a part of the collected user behavior data may be extracted and transmitted to the server; namely:
the reporting unit 404 may be specifically configured to sample the acquired user behavior data, carry the sampled user behavior data in a transparent transmission structure field, and transmit the user behavior data to the server.
In a specific implementation, the above units may be implemented as independent entities, or may also be implemented as one or several entities by any combination, and the specific implementation of the above units may refer to the foregoing embodiments, which are not described herein again.
As can be seen from the above, in this embodiment, the data tag which carries the transparent transmission structure field in the information stream and indicates the user behavior data to be collected is adopted, so that after the data collection device receives the information stream, the monitoring unit 302 can monitor the operation of the user on the information stream, the collection unit 303 collects the corresponding user behavior data from the data set obtained by monitoring according to the data tag, and then the reporting unit 304 carries the collected user behavior data in the transparent transmission structure field and transmits the data to the server, thereby achieving the purpose of personalized collection; because the scheme can set the data label according to the actual requirement to collect the user behavior data in a targeted manner, compared with the existing scheme that the data collection can only be carried out according to a certain fixed mode, the collection mode is more personalized, thereby not only greatly improving the collection flexibility, but also enhancing the controllability of the collection result; in addition, the collected user behavior data can be carried in the transparent transmission structure field and transmitted to the server, so that the influence on the existing service system framework is small, and the realization is simple and convenient.
Example V,
Correspondingly, the invention also provides a receiving device of the user behavior data, which is called a data receiving device for short and can be integrated in equipment such as a server and the like.
As shown in fig. 5, the data receiving apparatus may include an acquisition unit 501, a generation unit 502, a transmission unit 503, and a reception unit 504, as follows:
(1) an acquisition unit 501;
the obtaining unit 501 is configured to obtain an original information stream and a data tag of user behavior data to be collected.
The original information stream may include dynamic information that a good user pays attention to or subscribes to, for example, dynamic information of a friend such as a saying published by the friend, a microblog, or a friend circle state.
The content and format of the data tag and the corresponding relationship between the data tag and the user behavior data may be set according to the requirements of the actual application, and are not described herein again.
(2) A generation unit 502;
a generating unit 502, configured to add a transparent transmission structure field and a data tag in the original information stream to generate an information stream.
For example, the generating unit 502 may be specifically configured to determine a structural body of the original information stream, and add a transparent transmission structure field and a data tag in the structural body according to a preset policy to generate the information stream.
The preset policy may be set according to the requirements of the actual application, and is not described herein again.
Optionally, the information stream may also indicate other content, for example, may also indicate a reporting mode of the collected data, and the like. The reporting mode may include a reporting timing and a reporting mode, where the reporting timing may include a timing report, a real-time report, and a quantitative report (that is, the report is performed only when the data amount exceeds a preset threshold), and the reporting mode may include a full-volume report and a sampling report.
(3) A transmission unit 503;
a sending unit 503, configured to send the information stream to the client.
For example, the sending unit 503 may be specifically configured to send an information stream to the client through the internet or a wireless network, for example, send dynamic information of a friend to which a transparent transmission structure field and a data tag are added, and the like.
(4) A receiving unit 504;
the receiving unit 504 is configured to receive a passthrough structure field returned by the client, where the returned passthrough structure field carries user behavior data acquired by the client according to the data tag.
For example, the receiving unit 504 may be specifically configured to receive a passthrough structure field returned by the client in real time or at regular time, or may also receive a passthrough structure field returned by the client when it is determined that the data volume of the collected user behavior data is greater than a preset threshold, and the like.
Optionally, if the reporting mode is also indicated in the information stream, the receiving unit 504 may be specifically configured to receive a transparent transmission structure field returned by the client according to the reporting mode.
In a specific implementation, the above units may be implemented as independent entities, or may also be implemented as one or several entities by any combination, and the specific implementation of the above units may refer to the foregoing embodiments, which are not described herein again.
As can be seen from the above, the data receiving apparatus of this embodiment uses the data tag which carries the transparent transmission structure field in the information stream and indicates the user behavior data that needs to be collected, so that the client can monitor the operation of the user on the information stream after receiving the information stream, collect the corresponding user behavior data according to the data tag, and then return the data to the server through the transparent transmission structure field; because the scheme can set the data label according to the actual requirement to collect the user behavior data in a targeted manner, compared with the existing scheme that the data collection can only be carried out according to a certain fixed mode, the collection mode is more personalized, thereby not only greatly improving the collection flexibility, but also enhancing the controllability of the collection result; in addition, the collected user behavior data can be carried in the transparent transmission structure field and transmitted to the server, so that the influence on the existing service system framework is small, and the realization is simple and convenient.
Example six,
Correspondingly, the embodiment of the invention also provides a system for acquiring the user behavior data, which comprises any one of the user behavior data acquisition devices (data acquisition devices for short) provided by the embodiment of the invention. Optionally, the system for acquiring user behavior data may further include other devices, for example, any receiving device (data receiving device for short) for user behavior data provided in the embodiment of the present invention, where the data acquiring device may be specifically integrated in a terminal, and the data receiving device may be specifically integrated in a server and other devices. For example, the following may be specifically mentioned:
the server is used for acquiring the original information flow and the data label of the user behavior data required to be acquired; adding a transparent transmission structure field and a data label in the original information flow to generate an information flow; and sending the information flow to the client and receiving the transparent transmission structure field returned by the client.
The terminal is used for receiving an information flow sent by the server, and the information flow carries a transparent transmission structure field and a data tag used for indicating user behavior data needing to be collected; displaying the information flow, and monitoring the operation of the user on the information flow to obtain a user behavior data set; collecting corresponding user behavior data from the user behavior data set according to the data tag; and carrying the collected user behavior data in the transparent transmission structure field and transmitting the data to the server.
The specific implementation of each device can be referred to the previous embodiment, and is not described herein again.
Since the user behavior data acquisition system may include any data acquisition device and data receiving device provided in the embodiment of the present invention, beneficial effects that can be achieved by any data acquisition device and data receiving device provided in the embodiment of the present invention can be achieved.
Example seven,
An embodiment of the present invention further provides a server, as shown in fig. 6, which shows a schematic structural diagram of the server according to the embodiment of the present invention, specifically:
the server may include components such as a processor 601 of one or more processing cores, memory 602 of one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will appreciate that the server architecture shown in FIG. 6 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 601 is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the server. Optionally, processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 601.
The memory 602 may be used to store software programs and modules, and the processor 601 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
The server further includes a power supply 603 for supplying power to each component, and preferably, the power supply 603 may be logically connected to the processor 601 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 603 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The server may also include an input unit 604, which input unit 604 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 601 in the server loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 601 runs the application programs stored in the memory 602, thereby implementing various functions as follows:
acquiring an original information flow and a data label of user behavior data to be acquired; adding a transparent transmission structure field and the data label in the original information flow to generate an information flow; and sending the information flow to the client, and receiving a transparent transmission structure field returned by the client, wherein the transparent transmission structure field carries user behavior data acquired by the client according to the data tag.
The above operations can be referred to the previous embodiments specifically, and are not described herein again.
Because the server can set the data labels according to actual requirements to collect the user behavior data in a targeted manner, compared with the existing scheme that the data collection can only be carried out according to a certain fixed mode, the collection mode of the server is more personalized, the collection flexibility can be greatly improved, and the controllability of the collection result can be enhanced.
Example eight,
Accordingly, an embodiment of the present invention further provides a terminal, as shown in fig. 7, which may include Radio Frequency (RF) circuit 701, memory 702 including one or more computer-readable storage media, an input unit 703, a display unit 704, a sensor 705, an audio circuit 706, a Wireless Fidelity (WiFi) module 707, a processor 708 including one or more processing cores, and a power supply 709. Those skilled in the art will appreciate that the terminal structure shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 701 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 708 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 701 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 701 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 702 may be used to store software programs and modules, and the processor 708 executes various functional applications and data processing by operating the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 702 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 702 may also include a memory controller to provide the processor 708 and the input unit 703 access to the memory 702.
The input unit 703 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 703 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 708, and can receive and execute commands sent by the processor 708. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 703 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 704 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 704 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is communicated to the processor 708 to determine the type of touch event, and the processor 708 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 7 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 706, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 706 can transmit the electrical signal converted from the received audio data to a loudspeaker, and the electrical signal is converted into a sound signal by the loudspeaker and output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 706 and converted into audio data, which is then processed by the audio data output processor 708, and then transmitted to, for example, another terminal via the RF circuit 701, or the audio data is output to the memory 702 for further processing. The audio circuitry 706 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 707, and provides wireless broadband internet access for the user. Although fig. 7 shows the WiFi module 707, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 708 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 702 and calling data stored in the memory 702, thereby performing overall monitoring of the handset. Optionally, processor 708 may include one or more processing cores; preferably, the processor 708 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 708.
The terminal also includes a power source 709 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 708 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 709 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 708 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 702 according to the following instructions, and the processor 708 runs the application programs stored in the memory 702, thereby implementing various functions:
receiving an information flow sent by a server, wherein the information flow carries a transparent transmission structure field and a data tag, and the data tag indicates user behavior data needing to be acquired; displaying the information flow, and monitoring the operation of the user on the information flow to obtain a user behavior data set; collecting corresponding user behavior data from the user behavior data set according to the data tag; and carrying the collected user behavior data in the transparent transmission structure field and transmitting the data to the server.
Optionally, in order to facilitate monitoring of user operations and more detailed and flexible reporting analysis of application scenarios, the display page of the information stream may be divided into regions, and then each region is monitored, that is, the application program stored in the memory 702 may further implement the following functions:
and performing region division on the display page of the information flow according to a preset strategy to obtain operation regions, and respectively monitoring the operation of the user in each operation region to obtain a user behavior data set.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Because the terminal can set the data label according to actual requirements to pertinently collect the user behavior data, compared with the existing scheme that the data collection can only be carried out according to a certain fixed mode, the collection mode of the terminal is more personalized, the collection flexibility can be greatly improved, and the controllability of the collection result can be enhanced.
Examples nine,
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The storage medium stores a plurality of instructions, which can be loaded by the processor (i.e., processor-executable instructions) and perform all or part of the steps of any of the user behavior data collection methods provided by the embodiments of the present invention.
For example, the processor-executable instructions may perform the steps of:
receiving an information flow sent by a server, wherein the information flow carries a transparent transmission structure field and a data tag, and the data tag indicates user behavior data needing to be acquired; displaying the information flow, and monitoring the operation of the user on the information flow to obtain a user behavior data set; collecting corresponding user behavior data from the user behavior data set according to the data tag; and carrying the collected user behavior data in the transparent transmission structure field and transmitting the data to the server.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the storage medium may implement the beneficial effects that can be achieved by any one of the user behavior data acquisition methods provided by the embodiments of the present invention, which are detailed in the foregoing embodiments and are not described herein again.
The method, the device, the system and the storage medium for collecting user behavior data provided by the embodiment of the invention are described in detail, a specific embodiment is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, 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 invention.

Claims (7)

1. A method for collecting user behavior data is characterized by comprising the following steps:
receiving an information flow sent by a server, wherein the information flow carries a transparent transmission structure field and a data tag, and the data tag indicates user behavior data to be acquired;
displaying the information stream;
dividing the display page of the information flow into areas according to a preset strategy to obtain an operation area;
respectively acquiring function information of a control in each operation area, wherein the function information indicates operation contents which can be executed by a user;
when the user executes the operation content indicated by the function information in the display page, recording the operation content, the operation track and the operation area which the user executes;
taking the recorded operation content, operation track and operation area as an operation record, and adding the operation record to the user behavior data set;
determining an operation area and operation content which need to acquire user behavior data according to the data tag in the display page of the information flow;
collecting corresponding operation records from the user behavior data set according to the determined operation area and operation content to obtain user behavior data needing to be collected;
and carrying the collected user behavior data in the transparent transmission structure field and transmitting the data to the server.
2. The method according to claim 1, wherein the performing the region division on the display page of the information stream according to the preset policy to obtain the operation region comprises:
acquiring distribution information of a control in a display page of the information flow, and performing region division on the display page according to the distribution information of the control to obtain an operation region; alternatively, the first and second electrodes may be,
and classifying the content displayed by the information flow in a display page, and performing region division on the display page according to a classification result to obtain an operation region.
3. The method of claim 1, wherein the step of carrying the collected user behavior data in the transparent transmission structure field and transmitting the collected user behavior data to the server comprises:
carrying the collected user behavior data in the transparent transmission structure field in real time or at regular time, and transmitting the data to the server; alternatively, the first and second electrodes may be,
when the data volume of the collected user behavior data is larger than a preset threshold value, carrying the collected user behavior data in the transparent transmission structure field, and transmitting the transparent transmission structure field to the server; alternatively, the first and second electrodes may be,
and if the information flow also indicates a reporting mode, carrying the acquired user behavior data in the transparent transmission structure field according to the reporting mode, and transmitting the user behavior data to the server.
4. An apparatus for collecting user behavior data, comprising:
the receiving unit is used for receiving an information stream sent by a server, wherein the information stream carries a transparent transmission structure field and a data tag, and the data tag indicates user behavior data required to be acquired;
a display subunit, configured to display the information stream;
the dividing subunit is used for carrying out region division on the display page of the information stream according to a preset strategy to obtain an operation region;
the monitoring subunit is used for respectively acquiring function information of the control in each operation area, wherein the function information indicates operation contents which can be executed by a user; when the user executes the operation content indicated by the function information in the display page, recording the operation content, the operation track and the operation area which the user executes; taking the recorded operation content, operation track and operation area as an operation record, and adding the operation record to the user behavior data set;
the acquisition unit is used for determining an operation area and operation content which need to acquire user behavior data according to the data tag in the display page of the information flow; collecting corresponding operation records from the user behavior data set according to the determined operation area and operation content to obtain user behavior data needing to be collected;
and the reporting unit is used for carrying the collected user behavior data in the transparent transmission structure field and transmitting the user behavior data to the server.
5. The apparatus of claim 4,
the dividing subunit is configured to acquire distribution information of a control in a display page of the information stream, and perform region division on the display page according to the distribution information of the control to obtain an operation region; alternatively, the first and second electrodes may be,
and the dividing subunit is used for classifying the content displayed by the information flow in the display page, and dividing the display page into areas according to the classification result to obtain the operation area.
6. The apparatus of claim 4, wherein the reporting unit is configured to:
carrying the collected user behavior data in the transparent transmission structure field in real time or at regular time, and transmitting the data to the server; alternatively, the first and second electrodes may be,
when the data volume of the collected user behavior data is larger than a preset threshold value, carrying the collected user behavior data in a transparent transmission structure field, and transmitting the transparent transmission structure field to the server; alternatively, the first and second electrodes may be,
and if the information flow also indicates a reporting mode, carrying the acquired user behavior data in the transparent transmission structure field according to the reporting mode, and transmitting the user behavior data to the server.
7. A storage medium storing processor-executable instructions for performing the steps of the method of any one of claims 1 to 3.
CN201710310729.2A 2017-05-05 2017-05-05 User behavior data acquisition method and device and storage medium Active CN108810057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710310729.2A CN108810057B (en) 2017-05-05 2017-05-05 User behavior data acquisition method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710310729.2A CN108810057B (en) 2017-05-05 2017-05-05 User behavior data acquisition method and device and storage medium

Publications (2)

Publication Number Publication Date
CN108810057A CN108810057A (en) 2018-11-13
CN108810057B true CN108810057B (en) 2021-05-07

Family

ID=64054610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710310729.2A Active CN108810057B (en) 2017-05-05 2017-05-05 User behavior data acquisition method and device and storage medium

Country Status (1)

Country Link
CN (1) CN108810057B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660669B (en) * 2018-12-25 2021-05-04 成都运力科技有限公司 Method, system, equipment and storage medium for collecting user operation information
CN109872181B (en) * 2019-01-08 2024-01-19 博拉网络股份有限公司 Commercial information processing method, device and storage medium
CN112395173B (en) * 2019-08-14 2023-10-13 腾讯科技(深圳)有限公司 Method and device for reporting information flow data
CN110781052A (en) * 2019-09-20 2020-02-11 平安普惠企业管理有限公司 Offline monitoring method and device, computer equipment and storage medium
CN110794999B (en) * 2019-10-28 2021-01-15 珠海格力电器股份有限公司 Automatic control method and device based on interface segmentation and terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020059092A1 (en) * 2000-09-08 2002-05-16 Hirohisa Naito Behavior data fee collection system
CN101651707B (en) * 2009-09-22 2012-05-23 西安交通大学 Method for automatically acquiring user behavior log of network
CN103309884A (en) * 2012-03-13 2013-09-18 阿里巴巴集团控股有限公司 User behavior data collecting method and system
CN103034706B (en) * 2012-12-07 2015-10-07 合一网络技术(北京)有限公司 A kind of generation device of the video recommendations list based on information network and method
CN105279431B (en) * 2014-05-29 2020-07-07 阿里巴巴集团控股有限公司 Method, device and system for recording operation information in mobile equipment
CN106612201A (en) * 2015-10-27 2017-05-03 中国移动通信集团公司 Data acquisition method and system
CN107295050B (en) * 2016-04-01 2021-05-11 阿里巴巴集团控股有限公司 Front-end user behavior statistical method and device

Also Published As

Publication number Publication date
CN108810057A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108959000B (en) Server pressure testing method, system and terminal
CN108810057B (en) User behavior data acquisition method and device and storage medium
KR101978590B1 (en) Message updating method, device and terminal
CN107172477B (en) Voting method and device
CN105867751B (en) Operation information processing method and device
CN106254910B (en) Method and device for recording image
CN106302996B (en) Message display method and device
CN109756767B (en) Preview data playing method, device and storage medium
CN106375179B (en) Method and device for displaying instant communication message
US20170109756A1 (en) User Unsubscription Prediction Method and Apparatus
CN110784672B (en) Video data transmission method, device, equipment and storage medium
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN110555155B (en) Article information recommendation method, device and storage medium
CN110784727B (en) Reporting method and device for live broadcast
CN106302101B (en) Message reminding method, terminal and server
CN108540649B (en) Content display method and mobile terminal
CN112749074A (en) Test case recommendation method and device
CN107622234B (en) Method and device for displaying budding face gift
CN107491349B (en) Applied program processing method and device, computer equipment, storage medium
CN108269223B (en) Webpage graph drawing method and terminal
CN105159655B (en) Behavior event playing method and device
CN107688498B (en) Application program processing method and device, computer equipment and storage medium
CN109213398A (en) A kind of application quick start method, terminal and computer readable storage medium
CN110782530B (en) Method and device for displaying vehicle information in automatic driving simulation system
CN108111553B (en) Method and device for providing service

Legal Events

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