CN111427642B - Data processing method, device, terminal equipment and computer readable storage medium - Google Patents

Data processing method, device, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN111427642B
CN111427642B CN202010127328.5A CN202010127328A CN111427642B CN 111427642 B CN111427642 B CN 111427642B CN 202010127328 A CN202010127328 A CN 202010127328A CN 111427642 B CN111427642 B CN 111427642B
Authority
CN
China
Prior art keywords
page
time
target
background
stay
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
CN202010127328.5A
Other languages
Chinese (zh)
Other versions
CN111427642A (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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202010127328.5A priority Critical patent/CN111427642B/en
Publication of CN111427642A publication Critical patent/CN111427642A/en
Application granted granted Critical
Publication of CN111427642B publication Critical patent/CN111427642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a device, a terminal device and a computer readable storage medium, wherein the method is applied to the terminal device and comprises the following steps: when the opening operation for the target page is detected, determining the opening time of the target page; determining the background stay time of the target page, wherein the background stay time is the time between exiting background time and entering background time; if the closing operation for the target page is detected, determining the closing time of the target page; and determining the page stay time of the target page according to the closing time, the background stay time and the opening time. By implementing the embodiment of the invention, the page stay time is beneficial to determining.

Description

Data processing method, device, terminal equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, a data processing device, a terminal device, and a computer readable storage medium.
Background
With the expansion of services, the pages of application programs (APP) are increasing. The page stay time of each page in the APP can represent the interest degree of the user on the content recorded in the page to a certain extent, so that the APP operators can be helped to know the content quality of the APP page by measuring the page stay time.
But currently there is no effective means to determine the page dwell time. Therefore, how to determine the page stay time is a problem to be solved.
Disclosure of Invention
The embodiment of the invention discloses a data processing method, a data processing device, terminal equipment and a computer readable storage medium, which are beneficial to determining the page stay time.
In a first aspect, an embodiment of the present invention discloses a data processing method, where the method is applied to a terminal device, and the method may include: when the opening operation of a target page is detected, determining the opening time of the target page, wherein the target page is a page in a foreground state in a target application; determining the background stay time of the target page, wherein the background stay time is the time between exiting background time and entering background time; the background entering time is the time when the target page is switched from the foreground state to the background state, and the background exiting time is the time when the target page is switched from the background state to the foreground state or switched to the closed state; if the closing operation for the target page is detected, determining the closing time of the target page; and determining the page stay time of the target page according to the closing time, the background stay time and the opening time.
In one implementation manner, according to the closing time, the background stay time and the opening time, the specific implementation manner of determining the page stay time of the target page may be: and determining the difference value between the page duration and the background stay duration as the page stay duration of the target page, wherein the page duration is the duration between the closing time and the opening time.
In one implementation, the target application may correspond to a session duration; the method may further comprise: determining a time at which an operation for the target application is detected; if the duration between the current time and the last time of detecting the operation aiming at the target application is greater than or equal to the session duration, taking the current time as the closing time of the target page; triggering and executing the step of determining the page stay time of the target page according to the closing time, the background stay time and the opening time.
In one implementation, the target application may correspond to a session duration; the method may further comprise: detecting an opening operation for a target application; starting a timer when a starting operation for a target application is detected; if the closing operation for the target page is not detected, the current time when the timing duration of the detected counter is greater than or equal to the session duration is used as the closing time of the target page; triggering and executing the step of determining the page stay time of the target page according to the closing time, the background stay time and the opening time.
In one implementation, the method may further include: if an operation for the target application is detected before the timing duration of the counter is equal to the session duration, the timing duration of the counter is set to zero.
In one implementation, the method may further include: if the target page is detected to be switched from the foreground state to the background state for a plurality of times before the timing time length of the counter is equal to the session time length, the sum of the background stay time lengths corresponding to the background state of the target page is used as the total background stay time length of the target page; when determining the page stay time of the target page according to the closing time, the background stay time and the opening time, the method can be particularly used for determining the page stay time of the target page according to the closing time, the total background stay time and the opening time.
In one implementation, the method may further include: detecting opening operation for each page in a plurality of pages; before the timing duration of the counter is equal to the session duration, if opening operation for each page in the plurality of pages is detected, determining opening time of each page; wherein each page belongs to a target application, and the plurality of pages comprise the target page; and determining the opening sequence among the plurality of pages according to the opening time of each page.
In a second aspect, an embodiment of the invention discloses a data processing apparatus comprising means for performing the method of the first aspect described above.
In a third aspect, an embodiment of the present invention discloses a terminal device, which includes a memory for storing a computer program, and a processor, where the computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the method according to the first aspect.
According to the embodiment of the invention, the page stay time of the target page can be determined according to the close time, the background stay time and the open time of the target page.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a schematic flow chart of a data processing method according to an embodiment of the present invention;
fig. 1B is a schematic interface diagram of a target application when a page a, a page B, and a page C in the target application are all in an open state according to an embodiment of the present invention;
FIG. 2 is a flow chart of another data processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1a, fig. 1a is a flow chart of a data processing method according to an embodiment of the invention. The method is applied to a terminal device, and specifically, as shown in fig. 1a, the data processing method in the embodiment of the present invention may include, but is not limited to, the following steps:
s101, when the terminal equipment detects the opening operation of a target page, determining the opening time of the target page, wherein the target page is a page in a foreground state in the target application.
In the embodiment of the present application, the state of the page in the target application may be any one of an open state, a foreground state, a background state, and a closed state, where in the case that a certain page in the target application is in the open state, the page may be specifically in the foreground state or the background state.
In practical situations, even if the user opens a plurality of pages in the target application, the user can only browse one page at the same time, the state of the page currently browsed by the user can be a foreground state, and the states of other pages which are in an open state but not currently browsed by the user can be a background state. For example, when all 3 pages (page a, page B, and page C) in the target application running in the terminal device are in an open state, the interface schematic of the target application may be as shown in fig. 1B. As can be seen from fig. 1B, the content of page a is displayed on the display screen of the terminal device, so that page a is in the foreground state at this time, and both page B and page C are in the background state.
In one implementation, if the terminal device switches to the home screen during the process of displaying the content of the target application, that is, the content displayed on the display screen of the terminal device changes from the content of the target application to the home screen interface, the target application runs in the background at this time, and accordingly, all pages (in an open state before switching to the home screen) in the target application are in a background state. In one implementation, if the terminal device switches to display the content of the other application during the process of displaying the content of the target application, the target application runs in the background at this time, and accordingly, all pages (in an open state before switching to display the content of the other application) in the target application are in a background state.
In an embodiment of the present application, the content of the target application may include a plurality of links, and each link may correspond to one page in the target application. The user can trigger (e.g. click, press, etc.) a link to cause the terminal device to display the page content of the page corresponding to the link. Therefore, when the terminal device detects the clicking operation of the user on the first link and the first link corresponds to the target page in the target application, the terminal device can determine that the opening operation on the target page is detected. Further, the terminal device may call a page opening function to open the target page. In one implementation, the page opening function may output a successful open message upon successful opening of the target page. And the terminal equipment determines the time of outputting the successful opening message as the opening time of the target page.
In the embodiment of the present invention, the terminal device may be a smart phone, a tablet computer, a personal computer (Personal Computer, PC), a smart television, a smart watch, a vehicle-mounted device, a wearable device, a terminal device in a future fifth generation mobile communication technology (the 5th Generation,5G) network, and the embodiment of the present invention is not limited thereto.
S102, the terminal equipment determines the background stay time of the target page, wherein the background stay time is the time between exiting background time and entering background time; the time for entering the background is the time for switching the target page from the foreground state to the background state, and the time for exiting the background is the time for switching the target page from the background state to the foreground state or to the closed state.
In the embodiment of the application, when the terminal equipment detects that the target page is switched from the foreground state to the background state, the current time can be acquired, and the acquired current time is taken as the entering background time of the target page. For example, after opening page 1 in the app, the user may go back from page 1 to the background, but in fact the user has not closed page 1 at this time, at which point the terminal device may record the time to enter the background.
The target page may be re-switched from the background state back to the foreground state. For example, after opening page 1 in the app, the user switches from page 1 to the home screen, and then switches from the home screen to page 1 again. Optionally, the target page may be switched from the background state to the closed state again. For example, after opening page 1 in an app, the user switches from page 1 to the home screen and then closes the app (all pages of the app will be closed at the same time) or closes page 1.
In the embodiment of the application, when the terminal equipment detects that the target page is switched from the background state to the foreground state or is switched to the closed state, the current time can be acquired, and the acquired current time is taken as the exiting background time of the target page. The current time may be a current system time of the terminal device.
In one implementation manner, before detecting the closing operation for the target page, if the terminal device detects that the target page is switched from the foreground state to the background state for multiple times, the sum of the background stay time lengths corresponding to the background state of the target page each time can be used as the total background stay time length of the target page. For example, before detecting a closing operation for a target page, the terminal device detects that the target page is switched from the foreground state to the background state for 3 times, then it may determine a background stay period 1 corresponding to the first time of switching from the foreground state to the background state, determine a background stay period 2 corresponding to the second time of switching from the foreground state to the background state, and determine a background stay period 3 corresponding to the third time of switching from the foreground state to the background state.
S103, if the closing operation of the target page is detected, the terminal equipment determines the closing time of the target page.
In the embodiment of the application, when the terminal equipment detects the closing operation of the target page, the target page can be closed, and the current time is taken as the closing time of the target page. When a closing operation for a target application is detected, this corresponds to detecting a closing operation for a target page.
S104, the terminal equipment determines the page stay time of the target page according to the closing time, the background stay time and the opening time.
Specifically, the specific implementation manner of determining the page stay time of the target page by the terminal device according to the close time, the background stay time and the open time may be: and determining the difference value between the page duration and the background stay time as the page stay time of the target page, wherein the page duration can be the time between the closing time and the opening time. Since the target page enters the background, the user does not actually browse the target page. Therefore, the difference value between the page duration and the background stay time is determined as the page stay time of the target page, the real browsing behavior of the user can be reflected through the page stay time, and the page stay time can be effectively determined.
For example, a user will often open multiple pages in an APP, but if the user is browsing only one page at a time. This means that some pages, although open, are not actually viewed by the user, which can result in a measured dwell time for a page that is longer than the time the user actually viewed the page. By implementing the embodiment of the invention, the background stay time is considered in the process of determining the page stay time, so that the accuracy of the determined page stay time is improved.
In one implementation manner, before detecting the closing operation for the target page, if the terminal device detects that the target page is switched from the foreground state to the background state for multiple times, the difference between the page duration and the total background stay duration may be determined as the page stay duration of the target page.
In the embodiment of the invention, the page stay time of the target page can be determined according to the close time, the background stay time and the open time of the target page. The background stay time is considered in the process of determining the page stay time, so that the accuracy of the determined page stay time is improved.
In one implementation, the terminal device may register the target application in the buried point frame when detecting an open operation for the target application. After registering the target application in the embedded point framework, the embedded point framework can monitor page jumps about the target application and count data such as page stay time of pages in the target application. In one implementation, when a terminal device registers a target application in a buried point framework, a session statistics period for the target application may be entered.
In one implementation, the target application may correspond to a session duration. The duration of the session statistics period for the target application may be greater than or equal to the corresponding session duration for the target application. In one implementation, a terminal device may determine a time at which an operation for a target application is detected; if the closing operation for the target page is not detected, and the duration between the current time and the last time the operation for the target application is detected is greater than or equal to the session duration corresponding to the target application, the session statistics period related to the target application can be ended, and the current time is taken as the closing time of the target page; and then determining the page stay time of the target page according to the close time, the background stay time and the open time of the target page.
Wherein the operation for the target application may refer to any operation on any page in the target application. Specifically, after entering the session statistics period with respect to the target application, the terminal device may record the time at which the operation for the target application was detected each time, or may record only the time at which the operation for the target application was detected last time. Wherein the time at which the operation for the target application was last detected may refer to the time at which the operation for the target application was last detected before the current time. And then judging whether the duration between the current time and the time before the current time when the operation for the target application is detected last time is greater than or equal to the session duration corresponding to the target application. If yes, the duration that the user continuously does not operate the target application (or the page of the target application) reaches the session duration. In this case, the server providing the page of the target application may disconnect the communication connection with the terminal device. Therefore, before the terminal device reestablishes the communication connection with the server, the page of the target application cannot be displayed in the terminal device, and the user cannot continue to browse any page (including the target page) of the target application. Therefore, the terminal device can take the current time as the closing time of the target page. If not, the time at which the operation for the target application was last detected may be updated to the current time.
The session statistics period of the target application may refer to a period from a time when the target application is started to a time when a user continues to not operate the target application (or a page of the target application) until the session period is reached. Accordingly, when it is determined that the duration in which the user continues to not operate the target application (or the page of the target application) reaches the session duration, the session statistics period of the target application may be ended.
In the embodiment of the application, the closing time of the target page may refer to the time when the user operates the terminal device to close the target page, or may refer to the time when the user operates the terminal device to close the target application, or may refer to the time when the terminal device determines that the duration of the user lasting the target application (or the page of the target application) reaches the session duration. In other words, the closing time of the target page is the time when the statistics of the data (such as the page stay time) of the target page are completed.
In one implementation manner, session durations of different applications running in the terminal device may be different or the same, which is not limited by the embodiment of the present application. In one implementation, the terminal device may default the session duration of each application (including the target application) running in the terminal device, or may set or change the session duration of each application (including the target application) running in the terminal device according to the user operation, which is not limited in the embodiment of the present application.
In one implementation, the terminal device may initialize the buried point frame through an Application implementation class. Specifically, the initialization may include, but is not limited to, one or more of the following steps: and configuring an interceptor, and setting a processing process performed after the buried point framework receives the buried point data (such as the page stay time of the target page).
In one implementation, the terminal device may configure different interceptors according to different scenarios, and the unused interceptors may be used to obtain buried data (e.g., page stay time) of unused type pages. In the embodiment of the present application, the page type of each application (such as the target application) running in the terminal device may be a native page, a fifth generation hypertext markup language (Hypertext Markup Language, HTML) page, or a nested page.
The native page may refer to Activity objects and Fragment objects in Android (Android). Activity is one of the four Android components, provides an interface for a user to interact with the system, and each application has one or more activities. An Activity is an application component that provides a screen through which a user can interact in order to accomplish a task. Such as dialing numbers, taking pictures, sending emails, looking at maps. Specifically, a user interaction interface may correspond to an Activity. Fragments may also be referred to as fragments, which are Activity dependent and cannot exist independently. There may be multiple fragments in an Activity. The H5 page may be a WebView-based rendered page and the nested page may be a VIEWPAGER-based implemented page. Wherein, webView may be a browser.
The interceptors configured may include, but are not limited to, one or more of a native interceptor, a WebView interceptor, and a VIEWPAGER interceptor. The native interceptor is used to obtain the embedded point data (such as the page stay time) of the native page, the WebView interceptor may be used to obtain the embedded point data (such as the page stay time) of the H5 page, and the VIEWPAGER interceptor may be used to obtain the embedded point data (such as the page stay time) of the nested page. Note that, the native interceptor cannot collect the embedded point data of the H5 page rendered based on WebView, and cannot collect the embedded point data of the embedded page realized based on VIEWPAGER. The embodiment of the application designs a special interceptor aiming at a non-native page (namely an H5 page or a nested page) and is used for collecting buried point data (such as page stay time) of the corresponding non-native page.
It should be noted that, at present, the nested page implemented based on VIEWPAGER is not recognized as a page by the system, in other words, the nested page is not a page in technical terms, but is a part of the page. Therefore, embedded point data of the nested page cannot be acquired at present. In the embodiment of the application, if the terminal equipment determines that the page is realized based on VIEWPAGER, the page can be determined to be a nested page, and further, the buried point data (such as the page stay time) of the nested page can be obtained through a VIEWPAGER interceptor
In one implementation, when a page in an on state in a target application includes only native pages, only the native interceptor may be configured. When the pages in the on state in the target application include the native page, the H5 page, and the nested page, the native interceptor, the WebView interceptor, and the VIEWPAGER interceptor may be configured.
Referring to fig. 2, fig. 2 is a flow chart of another data processing method according to an embodiment of the invention. The method is applied to a terminal device, and specifically, as shown in fig. 2, the data processing method in the embodiment of the invention may include, but is not limited to, the following steps:
S201, when the terminal equipment detects the starting operation of the target application, starting a timer, wherein the target application corresponds to the session duration.
Specifically, the terminal device may enter a session statistics period with respect to the target application when detecting an opening operation with respect to the target application. Upon entering a session statistics period for the target application, a timer for the target application may be started, which may be used to indicate a duration of time that the user has not operated the target application (or a page of the target application). In particular, the timer may be a countdown timer or a count up timer.
In one implementation, if the terminal device detects an operation for the target application before the timing duration of the counter is greater than or equal to the session duration corresponding to the target application, the timing duration of the counter may be set to zero.
The session duration may be a duration during which the server maintains communication connection with the terminal device after no interaction exists between the server corresponding to the target application and the terminal device. Thus, the detection of an operation by the terminal device for the target application may indicate: the terminal device may also receive data from the server for a subsequent duration of the session. At this time, if the time duration of the timer is not set to zero, the time when the time duration of the counter is greater than or equal to the session duration will be taken as the closing time of the target page, but in reality, there may be new page data from the server, that is, the user will browse the target page to view the new page data. Therefore, before the timing duration of the counter is greater than or equal to the session duration corresponding to the target application, the terminal device detects the operation for the target application, and the timing duration of the counter is set to zero, so that the accuracy of the determined page stay duration of the target page is improved.
For example, when the timer is a countdown timer and the session duration corresponding to the target application is 25 minutes, if the user re-operates any one page of the target application before the countdown timer is not set to 0, the countdown timer may be reset to 25 minutes.
S202, when the terminal equipment detects the opening operation of a target page, determining the opening time of the target page, wherein the target page is a page in a foreground state in the target application.
S203, the terminal equipment determines the background stay time of the target page, wherein the background stay time is the time between exiting background time and entering background time; the time for entering the background is the time for switching the target page from the foreground state to the background state, and the time for exiting the background is the time for switching the target page from the background state to the foreground state or to the closed state.
S204, if the closing operation of the target page is detected, the terminal equipment takes the current time as the closing time of the target page.
It should be noted that, the execution process of the steps S202 to S204 may refer to the specific descriptions of the steps S101 to S103 in fig. 1a, and are not repeated here.
S205, if the closing operation for the target page is not detected, the terminal equipment takes the current time when the timing duration of the counter is detected to be greater than or equal to the session duration of the target application as the closing time of the target page.
In the embodiment of the application, the terminal device can end the statistics of the page stay time of any page (such as a target page) in the target application under the first or second condition: in the first case, when the terminal device detects a closing operation for the target page, for example, the user manually closes the target page; and secondly, when the timing time of the counter of the target application is longer than or equal to the corresponding session time of the target application, counting the page stay time of all pages in the target application can be ended. When the timing duration of the counter is detected to be greater than or equal to the session duration of the target application, the communication connection between the terminal equipment and the server corresponding to the target application is disconnected, the terminal equipment can not receive new page data from the server any more, and correspondingly, the terminal equipment can not display the target page, so that the terminal equipment is equivalent to closing the target page.
Specifically, if the closing operation for the target page is not detected in the session statistics period corresponding to the target application, the terminal device may use the current time when the timing duration of the detected counter is greater than or equal to the session duration of the target application as the closing time of the target page. In one implementation, if the closing operation for the target page is not detected before the timing duration of the counter is equal to the session duration, the terminal device may use the current time when the timing duration of the counter is detected to be greater than or equal to the session duration of the target application as the closing time of the target page. In this way, it is possible to avoid a case where the closing time of the target page cannot be determined when the closing operation for the target page is not detected.
In one implementation manner, in a session statistics period corresponding to the target application, the terminal device may open the target page multiple times, and correspondingly, may close the target page multiple times. In each survival process from opening to closing of the target page, the terminal device can count the page stay time of the target page in the secondary storage process. In the session statistics period of the target application, the terminal device can take the sum of the page stay time periods corresponding to the secondary storage processes of the target page as the total page stay time period of the target page. By the method, the total page stay time of the target page in the session statistics period can be accurately recorded, and the page stay time corresponding to one survival process of the target page is prevented from being used as the page stay time of the target page in the session statistics period.
S206, the terminal equipment determines the page stay time of the target page according to the closing time, the background stay time and the opening time.
In one implementation manner, if the target page is detected to be switched from the foreground state to the background state for multiple times before the timing duration of the counter is equal to the session duration, the terminal device may use the sum of the background stay durations corresponding to the background state of the target page each time as the total background stay duration of the target page. The specific implementation manner of determining the page stay time of the target page by the terminal device according to the close time, the background stay time and the open time may be: and determining the page stay time of the target page according to the close time, the background stay total time and the open time of the target page. Specifically, the terminal device may determine a difference between the page duration and the total background stay duration as a page stay duration of the target page, where the page duration is a duration between a closing time and an opening time of the target page.
By the method, the background stay time corresponding to the target page which is switched from the foreground state to the background state at a certain time can be prevented from being used as the page stay time of the target page in the session statistics period, and therefore the accuracy of the determined page stay time of the target page is improved.
In one implementation, before the timing duration of the counter is equal to the session duration, if an opening operation for each page in the plurality of pages is detected, the terminal device may determine an opening time of each page; and determining the opening sequence among the pages according to the opening time of each page. Wherein each page belongs to a target application, and the plurality of pages may include the target page.
Wherein the order of opening between the plurality of pages may indicate the order in which the pages were opened by the user. For example, the user opens page a, page B, and page C in sequence at 8:01, 8:02, and 8:03, and then jumps from page C to page a at 8:04, then the opening order between page a, page B, and page C is: page A-Page B-Page C-Page A. By counting the opening sequence among a plurality of pages, the user behavior can be better analyzed, and further the user portrait conforming to the real user behavior can be better depicted. For example, if the user jumps from browsing the page of an insurance to applying the insurance, and the duration of browsing the page of the insurance is shorter, the user's intention to purchase the insurance is stronger, and the subsequent app can increase the insurance pushing for the user, so as to improve the benefit.
In one implementation, when the session statistics period of the target application is ended, the terminal device may store the page stay time of each page of the target application in the local buried data base. Optionally, the page stay time of each page of the target application and the session identifier of the target application may be stored in an associated manner. In this way, the counted page stay time can be grouped according to the session identifier of the target application, so as to distinguish the data of the page stay time corresponding to different applications. This allows more accurate recording of user behavior and helps to improve the effectiveness of the data analysis.
Wherein the session identification of the target application may be used to uniquely identify a session between the terminal device and the server to which the target application corresponds. In one implementation, after the session statistics period of the target application is finished, if an opening operation for the target application is detected, the terminal device may regenerate the session identifier of the target application. Specifically, the session identifier of the target application may be composed of the application identifier of the target application and the current time.
In the embodiment of the invention, if the closing operation for the target page is not detected, the current time when the timing duration of the detected counter is greater than or equal to the session duration is taken as the closing time of the target page. In this way, it is possible to avoid a case where the closing time of the target page cannot be determined when the closing operation for the target page is not detected.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention, where the data processing apparatus may be a terminal device or an apparatus (e.g. a chip) with a function of the terminal device. Specifically, as shown in fig. 3, the data processing apparatus 30 may include:
The detection module 301 is configured to detect an opening operation for a target page, and may also be configured to detect a closing operation for the target page;
A determining module 302, configured to determine, when an opening operation for a target page is detected, an opening time of the target page, where the target page is a page in a foreground state in a target application;
The determining module 302 is further configured to determine a background stay time of the target page, where the background stay time is a time between exiting the background time and entering the background time; the background entering time is the time when the target page is switched from the foreground state to the background state, and the background exiting time is the time when the target page is switched from the background state to the foreground state or switched to the closed state;
the determining module 302 is further configured to determine a closing time of the target page if a closing operation for the target page is detected;
the determining module 302 is further configured to determine a page stay time of the target page according to the close time, the background stay time, and the open time.
In one implementation manner, the determining module 302 is configured to determine, according to the closing time, the background stay time, and the opening time, a page stay time of the target page, and may specifically be configured to determine a difference between the page stay time and the background stay time as the page stay time of the target page, where the page stay time is a time between the closing time and the opening time.
In one implementation, the target application may correspond to a session duration; a determination module 302 that may also be used to determine when an operation for a target application is detected; the data processing apparatus 30 may further include a processing template 303, where the processing template 303 may be configured to take the current time as a closing time of the target page if a duration between the current time and a time when an operation for the target application was last detected is greater than or equal to a session duration; triggering and executing the step of determining the page stay time of the target page according to the closing time, the background stay time and the opening time.
In one implementation, the target application may correspond to a session duration; the detection module 301 may also be used to detect a start operation for a target application; the process template 303 may also be used to start a timer upon detecting a start operation for a target application; if the closing operation for the target page is not detected, the current time when the timing duration of the detected counter is greater than or equal to the session duration is used as the closing time of the target page; triggering and executing the step of determining the page stay time of the target page according to the closing time, the background stay time and the opening time.
In one implementation, the processing template 303 may also be used to set the timer duration to zero if an operation for the target application is detected before the timer duration of the counter is equal to the session duration.
In one implementation manner, the processing template 303 may be further configured to, if it is detected that the target page is switched from the foreground state to the background state multiple times before the timing duration of the counter is equal to the session duration, use the sum of the background stay durations corresponding to the background state of the target page as the total background stay duration of the target page; the determining module 302 is configured to determine, when determining the page stay time of the target page according to the closing time, the background stay time, and the opening time, the page stay time of the target page according to the closing time, the background stay total time, and the opening time.
In one implementation, the detection module 301 may also be configured to detect an open operation for each of a plurality of pages; the determining module 302 may be further configured to determine, before the timing duration of the counter is equal to the session duration, an opening time of each page if an opening operation for each page of the plurality of pages is detected; wherein each page belongs to a target application, and the plurality of pages comprise the target page; and determining the opening sequence among the plurality of pages according to the opening time of each page.
The embodiments of the present invention and the embodiments of the methods shown in fig. 1 a-2 are based on the same concept, and the technical effects brought by the embodiments are the same, and the specific principles are not repeated herein, referring to the description of the embodiments shown in fig. 1 a-2.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal device 40 may comprise a memory 401, a processor 402 and a network interface 403, the memory 401, the processor 402 and the network interface 403 being connected by one or more communication buses. Wherein the network interface 403 is controlled by the processor 402 to send and receive information. For example, the network interface 403 may be used to receive a target page.
Memory 401 may include read-only memory and random access memory, and provides instructions and data to processor 402. A portion of memory 401 may also include non-volatile random access memory.
The Processor 402 may be a central processing unit (Central Processing Unit, CPU), the Processor 402 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor, but in the alternative, the processor 402 may be any conventional processor or the like. Wherein:
Memory 401 is used to store program instructions.
A processor 402 for calling program instructions stored in the memory 401 to cause the terminal device 40 to:
When the opening operation of a target page is detected, determining the opening time of the target page, wherein the target page is a page in a foreground state in a target application;
Determining the background stay time of the target page, wherein the background stay time is the time between exiting background time and entering background time; the background entering time is the time when the target page is switched from the foreground state to the background state, and the background exiting time is the time when the target page is switched from the background state to the foreground state or switched to the closed state;
if the closing operation for the target page is detected, determining the closing time of the target page;
And determining the page stay time of the target page according to the closing time, the background stay time and the opening time.
In one implementation, when the processor 402 determines the page stay length of the target page according to the close time, the background stay length and the open time, the following operations may be specifically performed: and determining the difference value between the page duration and the background stay duration as the page stay duration of the target page, wherein the page duration is the duration between the closing time and the opening time.
In one implementation, the target application may correspond to a session duration; the processor 402 may also perform the following operations: determining a time at which an operation for the target application is detected; if the duration between the current time and the last time of detecting the operation aiming at the target application is greater than or equal to the session duration, taking the current time as the closing time of the target page; triggering and executing the step of determining the page stay time of the target page according to the closing time, the background stay time and the opening time.
In one implementation, the target application may correspond to a session duration; the processor 402 may also perform the following operations: detecting an opening operation for a target application; starting a timer when a starting operation for a target application is detected; if the closing operation for the target page is not detected, the current time when the timing duration of the detected counter is greater than or equal to the session duration is used as the closing time of the target page; triggering and executing the step of determining the page stay time of the target page according to the closing time, the background stay time and the opening time.
In one implementation, the processor 402 may also perform the following operations: if an operation for the target application is detected before the timing duration of the counter is equal to the session duration, the timing duration of the counter is set to zero.
In one implementation, the processor 402 may also perform the following operations: if the target page is detected to be switched from the foreground state to the background state for a plurality of times before the timing time length of the counter is equal to the session time length, the sum of the background stay time lengths corresponding to the background state of the target page is used as the total background stay time length of the target page; when determining the page stay time of the target page according to the closing time, the background stay time and the opening time, the method can be particularly used for determining the page stay time of the target page according to the closing time, the total background stay time and the opening time.
In one implementation, the processor 402 may also perform the following operations: detecting opening operation for each page in a plurality of pages; before the timing duration of the counter is equal to the session duration, if opening operation for each page in the plurality of pages is detected, determining opening time of each page; wherein each page belongs to a target application, and the plurality of pages comprise the target page; and determining the opening sequence among the plurality of pages according to the opening time of each page.
It should be noted that, in the embodiment corresponding to fig. 4, details of implementation of each step and details of the embodiments shown in fig. 1 a-2 may be referred to as the foregoing, and details are not repeated here.
The embodiments of the present invention also provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the steps as performed in the method embodiments shown in fig. 1 a-2.
The above disclosure is only a few examples of the present invention, and it is not intended to limit the scope of the present invention, but it is understood by those skilled in the art that all or a part of the above embodiments may be implemented and equivalents thereof may be modified according to the scope of the present invention.

Claims (7)

1. A data processing method applied to a terminal device, the method comprising:
When the opening operation of a target page is detected, registering the target application into a buried point frame, and determining the opening time of the target page, wherein the target page is a page in a foreground state in the target application; the embedded point framework is used for monitoring page skip related to the target application and counting page stay time of pages in the target application; the embedded point frame is provided with interceptors, the interceptors are configured according to scenes, different interceptors are correspondingly configured in different scenes, and the different interceptors are used for acquiring embedded point data of pages of different types; the configured interceptors comprise one or more of a native interceptor, a WebView interceptor and a VIEWPAGER interceptor, wherein the native interceptor is used for acquiring buried point data of a native page, the WebView interceptor is used for acquiring buried point data of an H5 page, and the VIEWPAGER interceptor is used for acquiring buried point data of a nested page, and the buried point data comprises page stay time;
Determining the background stay time of the target page, wherein the background stay time is the time between the exiting background time and the entering background time; the time for entering the background is the time for switching the target page from the foreground state to the background state, and the time for exiting the background is the time for switching the target page from the background state to the foreground state or to the closed state;
If the closing operation for the target page is detected, determining the closing time of the target page; if closing operation for the target page is not detected, and the duration between the current time and the last time of detecting the operation for the target application is greater than or equal to the session duration corresponding to the target application, taking the current time as closing time of the target page; the session duration corresponding to different applications running in the terminal equipment is different;
determining the page stay time of the target page according to the closing time, the background stay time and the opening time;
If the opening operation of each page in the plurality of pages is detected, determining the opening time of each page; each page belongs to the target application, and the plurality of pages comprise the target page;
and determining the opening sequence among the pages according to the opening time of each page, and determining the user portrait based on the opening sequence among the pages.
2. The method of claim 1, wherein the determining the page stay length of the target page according to the off time, the background stay length, and the on time comprises:
And determining the difference value between the page duration and the background stay time as the page stay time of the target page, wherein the page duration is the duration between the closing time and the opening time.
3. The method according to claim 1, wherein the method further comprises:
starting a timer when a starting operation for the target application is detected;
And if the operation aiming at the target application is detected before the timing duration of the timer is equal to the session duration, setting the timing duration of the timer to be zero.
4. A method according to claim 3, characterized in that the method further comprises:
If the target page is detected to be switched from the foreground state to the background state for a plurality of times before the timing duration of the timer is equal to the session duration, the sum of the background stay durations corresponding to the background state of the target page is used as the total background stay duration of the target page;
The determining the page stay time of the target page according to the closing time, the background stay time and the opening time includes:
and determining the page stay time of the target page according to the closing time, the background stay total time and the opening time.
5. A data processing apparatus, characterized in that the apparatus comprises means for performing the data processing method according to any of claims 1-4.
6. A terminal device comprising a memory for storing a computer program comprising program instructions and a processor configured to invoke the program instructions to perform the data processing method according to any of claims 1-4.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the data processing method according to any one of claims 1-4.
CN202010127328.5A 2020-02-27 2020-02-27 Data processing method, device, terminal equipment and computer readable storage medium Active CN111427642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010127328.5A CN111427642B (en) 2020-02-27 2020-02-27 Data processing method, device, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010127328.5A CN111427642B (en) 2020-02-27 2020-02-27 Data processing method, device, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111427642A CN111427642A (en) 2020-07-17
CN111427642B true CN111427642B (en) 2024-04-26

Family

ID=71551727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010127328.5A Active CN111427642B (en) 2020-02-27 2020-02-27 Data processing method, device, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111427642B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900916A (en) * 2021-09-29 2022-01-07 北京奇艺世纪科技有限公司 Application program statistical method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111970A (en) * 2014-06-06 2014-10-22 微梦创科网络科技(中国)有限公司 Method and device for counting page average residence time and method and device for determining page user viscosity
CN106060117A (en) * 2016-05-17 2016-10-26 北京京东尚科信息技术有限公司 Method and apparatus for calculating time on page
CN106156096A (en) * 2015-04-02 2016-11-23 腾讯科技(深圳)有限公司 A kind of page time of staying acquisition methods, system and user terminal
CN110633412A (en) * 2019-08-15 2019-12-31 平安普惠企业管理有限公司 Page stay intention analysis method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180091652A1 (en) * 2016-09-29 2018-03-29 Salesforce.Com, Inc. Tracking engagement of multitasking users with an online application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111970A (en) * 2014-06-06 2014-10-22 微梦创科网络科技(中国)有限公司 Method and device for counting page average residence time and method and device for determining page user viscosity
CN106156096A (en) * 2015-04-02 2016-11-23 腾讯科技(深圳)有限公司 A kind of page time of staying acquisition methods, system and user terminal
CN106060117A (en) * 2016-05-17 2016-10-26 北京京东尚科信息技术有限公司 Method and apparatus for calculating time on page
CN110633412A (en) * 2019-08-15 2019-12-31 平安普惠企业管理有限公司 Page stay intention analysis method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
(意)埃斯普斯托(Esposito,D.).《Introducing Microsoft ASP.NET AJAX eng》.北京:机械工业出版社,2008,第285-288页. *

Also Published As

Publication number Publication date
CN111427642A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN108427633B (en) Display interface processing method and device
CN111026645B (en) User interface automatic test method and device, storage medium and electronic equipment
CN108874268B (en) User behavior data acquisition method and device
CN109308263B (en) Applet testing method, device and equipment
US9817484B2 (en) Method for capturing screen content of mobile terminal and device thereof
CN109344066B (en) Method, system and terminal for testing browser page
CN110320378B (en) Method, apparatus, device and computer readable storage medium for applying for a quality control test
CN111274131A (en) Interface testing method and device, electronic equipment and storage medium
CN104317699A (en) Application program verifying method and device
CN112148606B (en) Buried point test method, buried point test device, buried point test equipment and computer readable medium
CN116933707B (en) Test method, device, equipment and medium for design circuit
CN109885793A (en) Page data acquisition method and device, electronic equipment, storage medium
CN111324352A (en) Code generation method of application page and related equipment
CN109976966A (en) A kind of application program launching time counting method, apparatus and system
CN107797922B (en) Application page testing method, electronic device and electronic equipment
CN111447239A (en) Video stream playing control method, device and storage medium
CN109298995B (en) Performance test method and device, electronic equipment and storage medium
CN111966273A (en) Information display processing method and device
CN111427642B (en) Data processing method, device, terminal equipment and computer readable storage medium
CN108509228B (en) Page loading method, terminal equipment and computer readable storage medium
CN112307386A (en) Information monitoring method, system, electronic device and computer readable storage medium
CN109144841B (en) Method and device for identifying advertisement application, computer equipment and storage medium
CN116204799A (en) Data identification method, device, electronic equipment and storage medium
CN108228433B (en) Electronic equipment, and method and device for counting visit time and stay time of mobile application
CN113407879B (en) Data reporting method, device and readable medium

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