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

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

Info

Publication number
CN111427642A
CN111427642A CN202010127328.5A CN202010127328A CN111427642A CN 111427642 A CN111427642 A CN 111427642A CN 202010127328 A CN202010127328 A CN 202010127328A CN 111427642 A CN111427642 A CN 111427642A
Authority
CN
China
Prior art keywords
time
page
target
background
target page
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.)
Granted
Application number
CN202010127328.5A
Other languages
Chinese (zh)
Other versions
CN111427642B (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

Images

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)
  • Telephonic Communication Services (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a data processing device, terminal equipment and a computer readable storage medium, wherein the method is applied to the terminal equipment and comprises the following steps: when the starting operation aiming at the target page is detected, the starting time of the target page is determined; determining the background staying time of the target page, wherein the background staying time is the time between the background exiting time and the background entering time; if the closing operation aiming at the target page is detected, determining the closing time of the target page; and determining the page staying time of the target page according to the closing time, the background staying time and the opening time. By implementing the embodiment of the invention, the page dwell time can be determined.

Description

Data processing method and 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, an apparatus, a terminal device, and a computer-readable storage medium.
Background
With the expansion of business, more and more pages of application programs (APP) are provided. The page dwell time of each page in the APP can represent the interest degree of the user in the content recorded in the page to a certain extent, and therefore, the page dwell time is measured, and the APP operation staff can be helped to know the content quality of the APP page.
However, there is currently a lack of an effective means to determine page dwell time. Therefore, how to determine the page dwell time becomes an urgent 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 retention time of a page.
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 aiming at 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 staying time of the target page, wherein the background staying time is the time between the background exiting time and the background entering time; the background entering time is the time when the target page is switched from a foreground state to a 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 is switched to a closed state; if the closing operation aiming at the target page is detected, determining the closing time of the target page; and determining the page staying time of the target page according to the closing time, the background staying time and the opening time.
In an implementation manner, the specific implementation manner of determining the page staying time of the target page according to the closing time, the background staying time and the opening time may be: and determining the difference between the page time length and the background stay time length as the page stay time length of the target page, wherein the page stay time length is the time length 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 time length between the current time and the last time of detecting the operation aiming at the target application is greater than or equal to the conversation time length, taking the current time as the closing time of the target page; and triggering and executing the step of determining the page staying time of the target page according to the closing time, the background staying time and the opening time.
In one implementation, the target application may correspond to a session duration; the method may further comprise: detecting a starting operation aiming at a target application; starting a timer when a starting operation aiming at a target application is detected; if the closing operation aiming at the target page is not detected, the current time when the timing duration of the counter is detected to be greater than or equal to the session duration is taken as the closing time of the target page; and triggering and executing the step of determining the page staying time of the target page according to the closing time, the background staying time and the opening time.
In one implementation, the method may further include: and if the operation aiming at the target application is detected before the timing duration of the counter is equal to the session duration, setting the timing duration of the timer to be 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 multiple times before the timing duration of the counter is equal to the session duration, taking the sum of background stay durations corresponding to the target page switched to the background state every time as the total background stay duration of the target page; determining the page staying time of the target page according to the closing time, the background staying time and the opening time, and specifically, determining the page staying time of the target page according to the closing time, the total background staying time and the opening time.
In one implementation, the method may further include: detecting a starting operation for each page in a plurality of pages; before the timing duration of the counter is equal to the session duration, if the starting operation aiming at each page in the multiple pages is detected, the starting time of each page is determined; each page belongs to a target application, and the multiple 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 present invention discloses a data processing apparatus, which includes means for performing the method of the first aspect.
In a third aspect, an embodiment of the present invention discloses a terminal device, where the terminal device includes a memory and a processor, the memory is used for storing a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method according to the first aspect.
In the embodiment of the invention, the page staying time of the target page can be determined according to the closing time, the background staying time and the opening time of the target page.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1a is a 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 provided by the embodiment of the invention;
FIG. 3 is a schematic structural 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 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.
Referring to fig. 1a, fig. 1a is a schematic 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 according to the embodiment of the present invention may include, but is not limited to, the following steps:
s101, when the terminal device detects the opening operation of a target page, the opening time of the target page is determined, and the target page is a page in a foreground state in a target application.
In this embodiment of the present application, the state of a page in a target application may be any one of an open state, a foreground state, a background state, and a closed state, where in a case that a certain page in the target application is in the open state, it may be specifically in the foreground state or the background state.
In practical cases, even if a user opens multiple pages in the target application, the user can only browse one page at the same time, and the state of the page currently browsed by the user may be a foreground state, while the states of other pages that are in an open state but not currently browsed by the user may be background states. For example, when 3 pages (page a, page B, and page C) in the target application running in the terminal device are all in the open state, the interface diagram of the target application may be as shown in fig. 1B. As shown in 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, and page B and page C are both in the background state.
In one implementation, if the terminal device switches to the home screen in 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 the open state before switching to the home screen) in the target application are in the background state. In one implementation, if the terminal device switches to display the content of the other application in the process of displaying the content of the target application, the target application runs in the background at this time, and accordingly, all pages (which are in the open state before switching to display the content of the other application) in the target application are in the background state.
In an embodiment of the present application, the content of the target application may include many links, and each link may correspond to one page in the target application. A user may cause the terminal device to display the page content of the page corresponding to a link by triggering (e.g., clicking, long-pressing, etc.) the link. Therefore, when the terminal device detects the click operation of the user on the first link, and the first link corresponds to the target page in the target application, it may be determined 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 open function may output a successful open message when the target page is successfully opened. And the terminal equipment determines the time of outputting the successful opening message as the opening time of the target page.
In this embodiment of the present invention, the terminal device may be a smart phone, a tablet Computer, a Personal Computer (PC), a smart television, a smart watch, a vehicle-mounted device, a wearable device, a terminal device in the future fifth Generation mobile communication technology (5G) network, and the like, which is not limited in this embodiment of the present invention.
S102, terminal equipment determines the background staying time of the target page, wherein the background staying time is the time between the background exiting time and the background entering time; the entering background time is the time when the target page is switched from the foreground state to the background state, and the exiting background time is the time when the target page is switched from the background state to the foreground state or switched to the closed state.
In the embodiment of the application, when detecting that the target page is switched from the foreground state to the background state, the terminal device may acquire the current time, and use the acquired current time as the background entering time of the target page. For example, the user may go back from page 1 to the background after opening page 1 in the app, but in fact the user does not close page 1 at this time, at which point the terminal device may record the time to enter the background.
The target page may be toggled from the background state back to the foreground state. For example, the user switches from page 1 to the home screen after opening page 1 in the app, 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 the 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 detecting that the target page is switched from the background state to the foreground state or switched to the closed state, the terminal device may acquire the current time, and use the acquired current time as the exit background time of the target page. The current time may be a current system time of the terminal device.
In an implementation manner, before the terminal device detects the closing operation for the target page, if it is detected that the target page is switched from the foreground state to the background state for multiple times, the sum of the background stay durations corresponding to the switching of the target page to the background state every time may be used as the total background stay duration of the target page. For example, before the terminal device detects that the target page is switched from the foreground state to the background state for 3 times before closing operation for the target page is detected, the background staying time 1 corresponding to the switching from the foreground state to the background state for the first time, the background staying time 2 corresponding to the switching from the foreground state to the background state for the second time, and the background staying time 3 corresponding to the switching from the foreground state to the background state for the third time may be respectively determined.
S103, if the closing operation aiming at 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 device detects the closing operation for the target page, the target page may be closed, and the current time is taken as the closing time of the target page. When the closing operation for the target application is detected, the closing operation for the target page is equivalently detected.
And S104, the terminal equipment determines the page staying time of the target page according to the closing time, the background staying time and the opening time.
Specifically, the specific implementation manner of the terminal device determining the page staying time of the target page according to the closing time, the background staying time and the opening time may be as follows: and determining the difference between the page duration and the background stay duration as the page stay duration of the target page, wherein the page duration can be the duration between the closing time and the opening time. After the target page enters the background, the user does not actually browse the target page. Therefore, the difference between the page duration and the background stay duration is determined as the page stay duration of the target page, and the user's real browsing behavior can be reflected by the page stay duration, i.e., the page stay duration can be effectively determined.
For example, a user often opens multiple pages in an APP, but only browses one page at a time. This means that some pages are opened but they are not actually viewed by the user, which results in a measured page dwell time for a certain page being longer than the time the user actually views 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 an implementation manner, before the terminal device detects the closing operation for the target page, if it is detected that the target page is switched from the foreground state to the background state for multiple times, a 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 staying time of the target page can be determined according to the closing time, the background staying time and the opening time of the target page. The method and the device have the advantages that 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 framework when detecting a start operation for the target application. After the target application is registered in the buried point frame, the buried point frame may monitor page jumps related to the target application, and count data such as page dwell time of the page in the target application. In one implementation, when the terminal device registers a target application in the 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 session duration corresponding to 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 time length between the current time and the time when the operation for the target application is detected last time is greater than or equal to the session time length corresponding to the target application, ending the session counting period related to the target application, and taking the current time as the closing time of the target page; and then determining the page staying time of the target page according to the closing time, the background staying time and the opening time of the target page.
The operation aiming at the target application can be any operation of any page in the target application by a pointer. Specifically, after entering the session statistics period for the target application, the terminal device may record the time of each detection of the operation for the target application, or may record only the time of the last detection of the operation for the target application. The time when the operation for the target application is detected last may refer to the time when the operation for the target application is detected last before the current time. And then judging whether the time length between the current time and the time when the operation aiming at the target application is detected for the last time before the current time is greater than or equal to the session time length corresponding to the target application. If yes, the fact that the duration that the user continues not operating the target application (or the page of the target application) reaches the session duration is indicated. 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 browsing 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 of last detection of the operation for the target application may be updated to the current time.
The session statistics period of the target application may refer to a time period from a time when the target application is opened to a time when a time period during which the user continues not operating the target application (or a page of the target application) reaches a session time period. Therefore, when it is determined that the duration in which the user continues not operating 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 this embodiment of the present application, the closing time of the target page may refer to a time when the user operates the terminal device to close the target page, may also refer to a time when the user operates the terminal device to close the target application, and may also refer to a time when the terminal device determines that a duration of the target application (or a page of the target application) that is not operated by the user continuously reaches a session duration. In other words, the closing time of the target page is the time for finishing counting the data (such as the page dwell time) of the target page.
In an implementation manner, session durations of different applications running in the terminal device may be different or the same, which is not limited in this embodiment of the present application. In an implementation manner, the terminal device may default to set a session duration of each application (including a 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 a user operation, which is not limited in this embodiment of the application.
In one implementation, the terminal device may initialize the embedded point framework through an Application implementation class. Specifically, the initialization may include, but is not limited to, one or more of the following steps: configuring an interceptor, and setting a processing procedure after the buried point frame receives the buried point data (such as the page dwell time of the target page).
In an implementation manner, the terminal device may configure different interceptors according to different scenes, and the different interceptors may be used to obtain buried point data (e.g., page dwell time) of a page of a different type.
Native pages may refer to Activity objects and Fragment objects in Android (Android). Activity is one of four large components of Android, and 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 complete a task. Such as dialing numbers, taking pictures, sending emails, looking at maps. Specifically, one user interaction interface may correspond to one Activity. Fragment, which can also be called Fragment, is Activity dependent and cannot exist independently. There may be multiple fragments in an Activity. The H5 page may be a WebView rendering based page and the nested page may be a ViewPager implementation based page. Among them, WebView may be a browser.
The configured interceptors 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 configured to obtain embedded point data (e.g., page dwell time) of a native page, the WebView interceptor may be configured to obtain embedded point data (e.g., page dwell time) of an H5 page, and the ViewPager interceptor may be configured to obtain embedded point data (e.g., page dwell time) of a nested page. It should be noted that the native interceptor cannot collect the data of the embedded point of the H5 page rendered based on WebView, and cannot collect the data of the embedded point of the nested page implemented based on ViewPager. The embodiment of the application designs a special interceptor for a non-native page (namely, H5 page or nested page) to collect the buried point data (such as page dwell 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 does not belong to a page from a technical aspect, but is a part of a page composition. Therefore, the buried point data of the nested page cannot be obtained at present. In this embodiment of the application, if the terminal device determines that the page is implemented based on ViewPager, the page may be determined to be a nested page, and further, embedded point data of the nested page (for example, page staying time duration) may be obtained by the ViewPager interceptor
In one implementation, the native interceptor may only be configured when the page in the open state in the target application includes only native pages. When the pages in the open state in the target application include a native page, a H5 page, and a nested page, a native interceptor, a WebView interceptor, and a ViewPager interceptor may be configured.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating 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 according to the embodiment of the present invention may include, but is not limited to, the following steps:
s201, when the terminal device detects a starting operation for a target application, a timer is started, and the target application corresponds to a session duration.
Specifically, the terminal device may enter a session statistics period for the target application when detecting a start operation for 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 an implementation manner, 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 timer may be set to zero.
The session duration may be a duration for the server to maintain the 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 the operation for the target application by the terminal device may indicate that: the terminal device may also receive data from the server for the duration of the subsequent session duration. At this time, if the timing duration of the timer is not set to zero, the time that the timing duration of the counter is greater than or equal to the session duration is taken as the closing time of the target page, but actually, there may be new page data from the server, that is, the user may 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 aiming at the target application, and the timing duration of the timer is set to be zero, which is beneficial to improving the accuracy of the determined page staying duration of the target page.
For example, when the timer is a countdown timer and the session duration corresponding to the target application is 25 minutes, if the user operates any page of the target application again before the countdown timer is not set to 0, the countdown timer may be set to 25 minutes again.
S202, when the terminal device detects the opening operation aiming at the target page, the opening time of the target page is determined, and the target page is the page in the foreground state in the target application.
S203, the terminal device determines the background staying time of the target page, wherein the background staying time is the time between the background exiting time and the background entering time; the entering background time is the time when the target page is switched from the foreground state to the background state, and the exiting background time is the time when the target page is switched from the background state to the foreground state or switched to the closed state.
And S204, if the closing operation aiming at 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 processes of step S202 to step S204 may refer to the detailed descriptions in step S101 to step S103 in fig. 1a, and are not described herein again.
And S205, if the closing operation for the target page is not detected, the terminal device takes the current time when the timing duration of the counter is greater than or equal to the session duration of the target application as the closing time of the target page.
In this embodiment of the present application, the terminal device may end statistics on a page dwell time of any page (e.g., a target page) in the target application in case one or case two: in case one, when the terminal device detects a closing operation for the target page, for example, a user manually closes the target page; in case two, when the timing duration of the counter of the target application is greater than or equal to the session duration corresponding to the target application, at this time, statistics of the page dwell durations of all pages in the target application may 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 device and the server corresponding to the target application is disconnected, the terminal device cannot subsequently receive new page data from the server any more, and accordingly the terminal device cannot subsequently display the target page, which 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 counter is greater than or equal to the session duration of the target application as the closing time of the target page. In an implementation manner, 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 a 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 situation in which the closing time of the target page cannot be determined when the closing operation for the target page is not detected.
In one implementation, the terminal device may open the target page multiple times, and correspondingly, may close the target page multiple times within the session statistics period corresponding to the target application. In each survival process of the target page from opening to closing, the terminal device can count the page dwell time of the target page in the secondary survival process. In the session statistics period of the target application, the terminal device may use the sum of the page staying durations corresponding to the respective secondary storage processes of the target page as the total page staying duration of the target page. By the method, the total page staying time of the target page in the session statistical period can be accurately recorded, and the page staying time corresponding to one survival process of the target page is avoided being taken as the page staying time of the target page in the session statistical period.
S206, the terminal equipment determines the page staying time of the target page according to the closing time, the background staying time and the opening time.
In an implementation manner, if it is detected that the target page is 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 switching of the target page to the background state every time as the total background stay duration of the target page. The specific implementation manner of the terminal device determining the page staying time of the target page according to the closing time, the background staying time and the opening time may be as follows: and determining the page staying time of the target page according to the closing time, the total staying time of the background and the opening time of the target page. Specifically, the terminal device may determine a difference between the page duration and the total background stay duration as the page stay duration of the target page, where the page duration is a duration between the closing time and the opening time of the target page.
By the method, the background stay time corresponding to the target page switched from the foreground state to the background state for a certain time can be avoided being used as the page stay time of the target page in the session statistical period, so that the accuracy of the determined page stay time of the target page can be improved.
In one implementation, before the timing duration of the counter is equal to the session duration, if the starting operation for each of the multiple pages is detected, the terminal device may determine the starting time of each page; and determining the opening sequence among the plurality of pages according to the opening time of each page. Each page belongs to a target application, and the plurality of pages may include the target page.
Wherein the opening order among the plurality of pages may indicate an order in which the user opens the pages. For example, a 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 turn-on sequence between page A, page B, and page C is: page a-page B-page C-page a. By counting the opening sequence among the pages, the user behavior can be better analyzed, and further the user portrait which accords with the real user behavior can be better depicted. For example, if the user jumps from a page browsing a certain insurance to a page insuring the insurance, and the length of time for browsing the insurance page is short, it indicates that the user has a strong desire to purchase the insurance, and the subsequent app can increase insurance push for the user, so as to improve the benefit.
In one implementation, when the session statistics period of the target application is over, the terminal device may store the page dwell time of each page of the target application in a local buried data base. Optionally, the page dwell time of each page of the target application may be stored in association with the session identifier of the target application. By the method, the counted page stay time can be grouped according to the session identification of the target application so as to distinguish data of the page stay time corresponding to different applications. Therefore, the user behavior can be recorded more accurately, and the data analysis effect is improved.
The session identifier of the target application may be used to uniquely identify a session between the terminal device and the server corresponding to the target application. In an implementation manner, after the session statistics period of the target application is ended, 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 present invention, if the closing operation for the target page is not detected, the current time when the timing duration of the counter is detected to be 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 situation in which 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) having a function of the terminal device. Specifically, as shown in fig. 3, the data processing apparatus 30 may include:
a detection module 301, 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 a starting operation for a target page is detected, starting 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 staying time of the target page, where the background staying 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 a foreground state to a 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 is switched to a closed state;
the determining module 302 is further configured to determine, if a closing operation for a target page is detected, a closing time of the target page;
the determining module 302 is further configured to determine a page staying time of the target page according to the closing time, the background staying time, and the opening time.
In an implementation manner, the determining module 302 is configured to determine the page staying time length of the target page according to the closing time, the background staying time length and the opening time, and may specifically be configured to determine a difference between the page staying time length and the background staying time length as the page staying time length of the target page, where the page staying time length is a time length between the closing time and the opening time.
In one implementation, the target application may correspond to a session duration; a determining module 302, which may be further configured to determine a time when an operation for the 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 a current time as a closing time of the target page if a duration between the current time and a time at which an operation for the target application was last detected is greater than or equal to a session duration; and triggering and executing the step of determining the page staying time of the target page according to the closing time, the background staying time and the opening time.
In one implementation, the target application may correspond to a session duration; the detection module 301 may also be configured to detect a start operation for a target application; the processing template 303 may also be used to start a timer when a start operation for the target application is detected; if the closing operation aiming at the target page is not detected, the current time when the timing duration of the counter is detected to be greater than or equal to the session duration is taken as the closing time of the target page; and triggering and executing the step of determining the page staying time of the target page according to the closing time, the background staying time and the opening time.
In one implementation, the processing template 303 may be further configured to set the timing duration of the timer to zero if an operation for the target application is detected before the timing duration of the counter is equal to the session duration.
In an 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 for multiple times before the timing duration of the counter is equal to the session duration, take a sum of background staying durations corresponding to each time the target page is switched to the background state as a total background staying duration of the target page; the determining module 302 is configured to determine the page staying time of the target page according to the closing time, the background staying time and the opening time, and may specifically be configured to determine the page staying time of the target page according to the closing time, the total background staying time and the opening time.
In one implementation, the detection module 301 may be further configured to detect a start operation for each of the multiple pages; the determining module 302 may be further configured to determine, before the timing duration of the counter is equal to the session duration, the start time of each page if a start operation for each page of the multiple pages is detected; each page belongs to a target application, and the multiple 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 method shown in fig. 1a to 2 are based on the same concept, and the technical effects thereof are also the same, and for the specific principle, reference is made to the description of the embodiments shown in fig. 1a to 2, which is not repeated herein.
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 include 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 for transceiving information. For example, the network interface 403 may be used to receive a target page.
Memory 401 may include both read-only memory and random-access memory, and provides instructions and data to processor 402. A portion of the memory 401 may also include non-volatile random access memory.
The Processor 402 may be a Central Processing Unit (CPU), and the Processor 402 may also be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor, and optionally, the processor 402 may be any conventional processor or the like. Wherein:
a memory 401 for storing program instructions.
A processor 402 for calling the program instructions stored in the memory 401 to cause the terminal device 40 to perform the following operations:
when the opening operation aiming at 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 staying time of the target page, wherein the background staying time is the time between the background exiting time and the background entering time; the background entering time is the time when the target page is switched from a foreground state to a 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 is switched to a closed state;
if the closing operation aiming at the target page is detected, determining the closing time of the target page;
and determining the page staying time of the target page according to the closing time, the background staying time and the opening time.
In an implementation manner, the processor 402 determines the page staying time length of the target page according to the closing time, the background staying time length, and the opening time, and may specifically perform the following operations: and determining the difference between the page time length and the background stay time length as the page stay time length of the target page, wherein the page stay time length is the time length 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 time length between the current time and the last time of detecting the operation aiming at the target application is greater than or equal to the conversation time length, taking the current time as the closing time of the target page; and triggering and executing the step of determining the page staying time of the target page according to the closing time, the background staying 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 a starting operation aiming at a target application; starting a timer when a starting operation aiming at a target application is detected; if the closing operation aiming at the target page is not detected, the current time when the timing duration of the counter is detected to be greater than or equal to the session duration is taken as the closing time of the target page; and triggering and executing the step of determining the page staying time of the target page according to the closing time, the background staying time and the opening time.
In one implementation, processor 402 may also perform the following operations: and if the operation aiming at the target application is detected before the timing duration of the counter is equal to the session duration, setting the timing duration of the timer to be zero.
In one implementation, 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 multiple times before the timing duration of the counter is equal to the session duration, taking the sum of background stay durations corresponding to the target page switched to the background state every time as the total background stay duration of the target page; determining the page staying time of the target page according to the closing time, the background staying time and the opening time, and specifically, determining the page staying time of the target page according to the closing time, the total background staying time and the opening time.
In one implementation, processor 402 may also perform the following operations: detecting a starting operation for each page in a plurality of pages; before the timing duration of the counter is equal to the session duration, if the starting operation aiming at each page in the multiple pages is detected, the starting time of each page is determined; each page belongs to a target application, and the multiple 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, details which are not mentioned in the embodiment corresponding to fig. 4 and the specific implementation manner of each step may refer to the embodiment shown in fig. 1a to fig. 2 and the foregoing, and are not described again here.
Embodiments of the present invention further provide a computer-readable storage medium, in which a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute the steps executed in the method embodiments shown in fig. 1 a-2.
While the invention has been described with reference to a number of embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A data processing method is applied to terminal equipment, and is characterized in that the method comprises the following steps:
when the opening operation aiming at 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 staying time of the target page, wherein the background staying time is the time between the background exiting time and the background entering 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 aiming at the target page is detected, determining the closing time of the target page;
and determining the page staying time of the target page according to the closing time, the background staying time and the opening time.
2. The method of claim 1, wherein determining the page dwell period of the target page based on the close time, the background dwell period, and the open time comprises:
determining a difference value between a page duration and the background stay duration as the page stay duration of the target page, wherein the page duration is a duration between the closing time and the opening time.
3. The method of claim 1 or 2, wherein the target application corresponds to a session duration; the method further comprises the following steps:
determining a time at which an operation is detected for the target application;
if the closing operation aiming at the target page is not detected, and the time length between the current time and the time when the operation aiming at the target application is detected last time is greater than or equal to the conversation time length, taking the current time as the closing time of the target page;
and triggering and executing the step of determining the page staying time of the target page according to the closing time, the background staying time and the opening time.
4. The method of claim 1, wherein the target application corresponds to a session duration; the method further comprises the following steps:
starting a timer when a starting operation for the target application is detected;
if the closing operation aiming at the target page is not detected, taking the current time when the timing duration of the counter is greater than or equal to the session duration as the closing time of the target page;
and triggering and executing the step of determining the page staying time of the target page according to the closing time, the background staying time and the opening time.
5. The method of claim 4, further comprising:
and if the operation aiming at the target application is detected before the timing duration of the counter is equal to the session duration, setting the timing duration of the timer to be zero.
6. The method of claim 4, further comprising:
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, taking the sum of background stay durations corresponding to the target page switched to the background state every time as the total background stay duration of the target page;
determining the page staying time of the target page according to the closing time, the background staying time and the opening time, wherein the determining the page staying time of the target page comprises the following steps:
and determining the page staying time of the target page according to the closing time, the total staying time of the background and the opening time.
7. The method according to any one of claims 4 to 6, further comprising:
before the timing duration of the counter is equal to the session duration, if the starting operation aiming at each page in a plurality of pages is detected, the starting time of each page is determined; wherein each page belongs to the target application, and the plurality of pages include the target page;
and determining the opening sequence among the multiple pages according to the opening time of each page.
8. A data processing apparatus, characterized in that the apparatus comprises means for performing the method according to any of claims 1-7.
9. 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 method of any of claims 1 to 7.
10. 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 carry out the method according to any one of claims 1 to 7.
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 true CN111427642A (en) 2020-07-17
CN111427642B 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)

Cited By (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 (5)

* 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
US20180091652A1 (en) * 2016-09-29 2018-03-29 Salesforce.Com, Inc. Tracking engagement of multitasking users with an online application
CN110633412A (en) * 2019-08-15 2019-12-31 平安普惠企业管理有限公司 Page stay intention analysis method and device, computer equipment and storage medium

Patent Citations (5)

* 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
US20180091652A1 (en) * 2016-09-29 2018-03-29 Salesforce.Com, Inc. Tracking engagement of multitasking users with an online application
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》", 北京:机械工业出版社, pages: 285 - 288 *

Cited By (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

Also Published As

Publication number Publication date
CN111427642B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
EP2763034B1 (en) Method and device for image-capturing application screen for use in mobile terminal
CN108427633B (en) Display interface processing method and device
CN103544021A (en) Screen capturing method and device for screen content of mobile terminal
CN107357544B (en) Display method, display device, intelligent terminal and computer readable storage medium
US9817484B2 (en) Method for capturing screen content of mobile terminal and device thereof
CN108632533B (en) Camera control method, mobile terminal and computer readable storage medium
EP3461136B1 (en) Video playing method and device
CN107295352B (en) Video compression method, device, equipment and storage medium
CN112306607A (en) Screenshot method and device, electronic equipment and readable storage medium
CN111447239B (en) Video stream playing control method, device and storage medium
US20230316529A1 (en) Image processing method and apparatus, device and storage medium
CN110134237B (en) Interface control method and related equipment
CN116933707B (en) Test method, device, equipment and medium for design circuit
CN111428570A (en) Detection method and device for non-living human face, computer equipment and storage medium
CN111966273A (en) Information display processing method and device
CN111597009B (en) Application program display method and device and terminal equipment
CN111159599A (en) Method, device, electronic equipment and storage medium for processing advertisement
CN111427642A (en) Data processing method and device, terminal equipment and computer readable storage medium
CN109981873B (en) Address book permission opening method and device and electronic equipment
CN111722892A (en) System language switching method, electronic equipment and storage device
CN113391856B (en) Cross-task-stack page processing method, device, equipment and medium
CN114490323A (en) Terminal device testing method and device and electronic device
CN111859356B (en) Application program login method and device
CN107220093B (en) Process processing method and device
CN112698983A (en) Data processing method and related device

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