CN116361584A - Page data processing method and device, computer equipment and storage medium - Google Patents

Page data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN116361584A
CN116361584A CN202310324683.5A CN202310324683A CN116361584A CN 116361584 A CN116361584 A CN 116361584A CN 202310324683 A CN202310324683 A CN 202310324683A CN 116361584 A CN116361584 A CN 116361584A
Authority
CN
China
Prior art keywords
page data
page
data
target
queue
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.)
Pending
Application number
CN202310324683.5A
Other languages
Chinese (zh)
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 Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202310324683.5A priority Critical patent/CN116361584A/en
Publication of CN116361584A publication Critical patent/CN116361584A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a method, a device, a computer device and a storage medium for processing page data, comprising the following steps: when a page leaving event corresponding to a target page in a target application client is detected, acquiring page data of the target page; storing the page data in a local page data queue of the target application client; and sending the page data to a target server based on the storage sequence of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result to the target server. According to the method and the device for processing the page data, the page data are stored in the local page data queue of the target application client, an asynchronous reporting mode is adopted for the page data, smoothness of the user when the user leaves the page is guaranteed, and interaction efficiency of the user and the page is improved.

Description

Page data processing method and device, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for processing page data, computer equipment and a storage medium.
Background
With the development of banking self-service, the types of service which can be handled by users are more and more, and with the development of technology, users can use mobile phones or computers to perform service understanding and service processing on a banking financial platform. In order to deeply mine the real requirement of a user, the user stands at the angle of the user to design financial products, and the user page stay time of the user on a page corresponding to a certain product provided by a banking financial application program is generally monitored. The user page stay time is the time spent/stayed by the user on a certain website page or application program page, and the viscosity of the website page or application program page to the user can be reflected to a certain degree. The method and the device can accurately measure the stay time of the user page, and help operators of banking financial platforms to know the content quality of the page, so that the page content is correspondingly improved.
However, in the existing collection mode of page data aiming at the page stay time and the like, the current displayed website page or application program page on the terminal equipment can be separated only after the page data reporting operation is completed, if the conditions of poor network signals, large data quantity and the like are met, the flow is blocked due to the reasons, so that a user cannot timely separate the current displayed website page or application program page on the terminal equipment, the problem of lag blocking exists when the user performs the page separating operation, the smoothness of the user when the user performs the page separating operation is influenced, and the interaction effect between the user and the page is poor.
Disclosure of Invention
The embodiment of the invention provides a processing method, a device, computer equipment and a storage medium for page data, which are characterized in that the page data are stored in a local page data queue of a target application client, an asynchronous reporting mode is adopted for the page data, when a user triggers a page departure event to leave a current page, the page data reporting operation can be continuously executed by the page data queue without blocking the user from carrying out the page departure event, the operation is smooth when the user carries out the page departure operation, the smoothness when the user carries out the page departure is ensured, and the interaction efficiency of the user and the page is improved.
The embodiment of the invention provides a processing method of page data, which comprises the following steps:
when a page leaving event corresponding to a target page in a target application client by a user is detected, acquiring page data of the target page, wherein the page data comprises user information data, page information data and page browsing duration of the user;
storing the page data in a local page data queue of the target application client;
and sending the page data to a target server based on the storage sequence of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result to the target server.
Correspondingly, the embodiment of the invention also provides a processing device of the page data, which comprises the following steps:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring page data of a target page when a page leaving event corresponding to the target page in a target application client is detected, wherein the page data comprises user information data of a user, page information data and page browsing duration;
the storage unit is used for storing the page data in a local page data queue of the target application client;
and the sending unit is used for sending the page data to a target server based on the storage sequence of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result on the target server.
In some embodiments of the present invention, a computer device may also be provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method as described above when executing the computer program.
In some embodiments of the present invention, a computer-readable storage medium may also be provided, on which a computer program is stored, which, when run on a computer, causes the computer to perform the steps of the method as described above.
By adopting the embodiment of the application, when the page leaving event corresponding to the target page in the target application client is detected, the page data of the target page can be obtained, wherein the page data comprises user information data, page information data and page browsing duration of the user; then, storing the page data in a local page data queue of the target application client; and finally, sending the page data to a target server based on the storage sequence of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result to the target server. According to the method and the device for reporting the page data, the page data are stored in the local page data queue of the target application client, an asynchronous reporting mode is adopted for the page data, when a user triggers a page departure event to leave a current page, the page data queue can continue to execute page data reporting operation, the user is not blocked from carrying out the page departure event, the user can smoothly operate when carrying out the page departure operation, smoothness of the user when carrying out the page departure is guaranteed, and interaction efficiency of the user and the page is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for processing page data according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an application scenario of a method for processing page data according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a device for processing page data according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer 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 fall within the scope of the invention.
In the prior art, aiming at the collection mode of page data such as page stay time, the current displayed website page or application program page on the terminal equipment can be separated only after the page data reporting operation is completed, if the conditions of poor network signal, large data quantity and the like are met, the flow is blocked due to the reasons, so that a user cannot timely separate the current displayed website page or application program page on the terminal equipment, the problem of lag blocking exists when the user performs the page separation operation, the smoothness of the user when the user performs the page separation is influenced, and the interaction effect between the user and the page is poor.
In order to solve the above problems, embodiments of the present application provide a method, an apparatus, a computer device, and a storage medium for processing page data, where the page data may include user information data, page information data, and a page browsing duration of the user, where the page data may be obtained by detecting a page departure event corresponding to a target page in a target application client; then, storing the page data in a local page data queue of the target application client; and finally, sending the page data to a target server based on the storage sequence of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result to the target server. According to the method and the device for reporting the page data, the page data are stored in the local page data queue of the target application client, an asynchronous reporting mode is adopted for the page data, when a user triggers a page departure event to leave a current page, the page data queue can continue to execute page data reporting operation, the user is not blocked from carrying out the page departure event, the user can smoothly operate when carrying out the page departure operation, smoothness of the user when carrying out the page departure is guaranteed, and interaction efficiency of the user and the page is improved.
The embodiment of the application provides a processing method and device of page data, computer equipment and a storage medium. Specifically, the method for processing the page data in the embodiment of the present application may be performed by a computer device, where the computer device may be a device such as a terminal or a server. The terminal may be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a personal computer (PC, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), and the like, and the terminal may further include a client, where the client may be an application client, a browser client carrying a control program, or an instant messaging client, and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms.
The embodiment of the invention provides a processing method, a device, computer equipment and a storage medium of page data, wherein the processing method of the page data can be used together with a terminal, such as a smart phone, a tablet personal computer, a notebook computer or a personal computer. The processing method, apparatus, computer device and storage medium of the page data are described in detail below. The following description of the embodiments is not intended to limit the preferred embodiments.
Referring to fig. 1, fig. 1 is a flow chart of a processing method of page data according to an embodiment of the present application, and the specific flow may be as follows:
and 101, when a page leaving event corresponding to a target page in a target application client is detected, acquiring page data of the target page, wherein the page data comprises user information data, page information data and page browsing duration of the user.
The target page mentioned in the embodiment of the application may be an H5 page, where the H5 page refers to the 5 th generation internet hypertext markup language (Html) and also refers to all digital products made by using the H5 language, and the H5 page is a page made by using the 5 th generation Html, and the page has good portability and can be widely applied to mobile applications and games.
In a specific embodiment, the front end H5 page may monitor the page-leaving event through window. On unloading, and when the page-leaving event is monitored, in the page-leaving event monitoring function, the page-leaving duration is calculated by means of "user page-leaving duration=user-leaving page time-user-entering page time", where the specific calculation code is as follows:
let time_start=time_start// user enter page TIME (generated when entering page)
let time_end=new Date ()// user off page time (current time)
let time duration = time end time start// user dwell time length
Optionally, when a page leaving event corresponding to a target sub-page area in a long page in a target application client is detected, acquiring page data of the target sub-page area.
102, storing the page data in a local page data queue of the target application client.
In the embodiment of the application, the page data generated by different application clients can be stored in the same page data queue, namely, the page data generated by all application clients on the terminal equipment are stored in the same page data queue; the page data generated by different application clients can also be stored in page data queues corresponding to different application clients, for example, the page data generated by a first application client is stored in a first page data queue, the page data generated by a second application client is stored in a second page data queue, and the page data generated by a third application client is stored in a third page data queue; the page data generated by the application clients provided by the same platform can be stored in the same page data queue, and the application clients provided by different platforms can be stored in corresponding different page data queues.
In order to process the page data in the page data queue in order, the step of storing the page data in the local page data queue of the target application client, the method may include:
and according to the storage sequence of the page data written into the local page data queue of the target application client, sequentially storing the page data into the page data queue.
Specifically, the target application client generates first page data at a first time point 11:30, generates second page data at a second time point 11:38, generates third page data at a third time point 11:50, stores the first page data into a page data queue at the first time point, stores the second page data into the page data queue at the second time point, stores the third page data into the page data queue at the third time point, and at this time, the first page data, the second page data and the third page data exist in the page data queue, the processing priority of the first page data is higher than that of the second page data, and the processing priority of the second page data is higher than that of the third page data.
In this embodiment of the present application, the computer device may call the method provided by the native, and transfer the calculated page stay time to the native, where the specific implementation code is as follows:
window.onunload=function(){
let time_start=time_start// user entry page TIME (time_start has been generated when entering page)
let time_end=new Date ()// user off page time (current time)
let time duration = time end time start// user dwell time length
let iframe=document.createelement ("iFrame")// pass data iframe.setattribute by iFrame ("src", ":// time_duration=" +time_duration)// description: * The specified protocol, namely, url scheme, the H5 end sends url scheme request, then the native intercepts the request and performs related operation according to url scheme and carried parameters
document.body.appendChild(iFrame)
iFrame.parentNode.removeChild(iFrame)
iFrame=null
}
Further, after the native receives the page data, the page data may be stored in a page data queue, where the specific implementation code is as follows:
ArrayList<String>dataList=new ArrayList<String>();
SharedPreferences sp = getContext (). Getsharedreferences ("local data", 1);
SharedPreferences.Editor editor=sp.edit();
editor. Putstring ("data queue", new Gson (). ToJson (dataList));
editor.commit();
103, sending the page data to a target server based on the storage sequence of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result on the target server.
In this embodiment of the present application, page data in a page data queue may be traversed, and the page data in the page data queue may be sequentially sent to a target server, where specific implementation codes are as follows:
Figure BDA0004155116900000071
Figure BDA0004155116900000081
to avoid the problem of resource blocking during terminal operation, after storing the page data in the local page data queue of the target application client in step "the method may include:
and when detecting that the idle network resource of the terminal equipment running the target application client is larger than the preset network resource, sending the page data to a target server based on the storage sequence of the page data in the page data queue.
Optionally, after the step of storing the page data in the local page data queue of the target application client, the method may include:
and when the current time point is detected to be in the non-busy time period of the target application client, sending the page data to a target server based on the storage sequence of the page data in the page data queue.
For example, the non-busy period of the target application client is 11:30-12:30, when the current time point is detected to be 12:00, the fact that the current time point is in the non-busy period of the target application client is determined, and the page data is sent to the target server based on the storage sequence of the page data in the page data queue.
In order to avoid the problem of losing the page data caused by the failure of the target server to receive, after the step of "sending the page data to the target server based on the storage order of the page data in the page data queue", the method may include:
receiving a data receiving result returned by the target server;
and processing the page data in the page data queue based on the data receiving result.
In a specific embodiment, the step of "the processing the page data in the page data queue based on the data receiving result" may include:
if the data receiving result is that the data receiving is successful, deleting the page data from the page data queue to obtain a processed page data queue, and continuing to send the page data to a target server based on the storage sequence of the page data in the page data queue;
if the data receiving result is that the receiving is failed, the page data is moved to the tail end of the page data queue, an updated page data queue is obtained, and the step of sending the page data to a target server based on the storage sequence of the page data in the page data queue is continuously carried out on the updated page data queue.
Optionally, the page data queue in the computer device may send a page data to the target server, and when it is detected that the page data queue sends the page data to the target server, the page data is deleted from the page data queue, so as to obtain a processed page data queue. Then, the computer equipment can receive a data receiving result returned by the target server, if the data receiving result is that the data receiving result is successful, the step of sending the page data to the target server based on the storage sequence of the page data in the page data queue is continuously carried out on the processed page data queue; if the data receiving result is that the receiving is failed, acquiring page data from the data receiving result, adding the page data to the tail end of a page data queue, obtaining an updated page data queue, and continuing to send the page data to a target server based on the storage sequence of the page data in the page data queue.
Or, the page data queue in the computer device may send a page data to the target server, then, the computer device may receive a data receiving result returned by the target server, if the data receiving result is that the data receiving result is successful, delete the page data from the page data queue to obtain a processed page data queue, and continue to send the page data to the target server based on the storage order of the page data in the page data queue; and if the data receiving result is that the receiving is failed, the page data is sent to the target server again, and the receiving result returned by the target server is continuously received.
In another specific embodiment, after the step of "transmitting the page data to the target server based on the storage order of the page data in the page data queue", the method may include:
and if the data receiving result is that the receiving is failed, the page data queue sends the page data to a sending failure data queue, so that the failure data queue sends the page data to the target server based on the storage sequence of the page data in the failure data queue.
Optionally, the page data queue in the computer device may send a page data to the target server, and when it is detected that the page data queue sends the page data to the target server, the page data is deleted from the page data queue, so as to obtain a processed page data queue. Then, the computer equipment can receive a data receiving result returned by the target server, if the data receiving result is that the data receiving result is successful, the step of sending the page data to the target server based on the storage sequence of the page data in the page data queue is continuously carried out on the processed page data queue; if the data receiving result is that the receiving is failed, acquiring page data from the data receiving result, adding the page data to a failure data queue, and after detecting that all page data in the page data queue are sent, starting the failure data queue to send the page data in the failure data queue to the target server.
In light of the foregoing, the processing method of the page data of the present application will be further described below by way of example. The following will take an application of the processing method of page data in a specific implementation scenario as an example, where the specific application scenario is as follows:
(1) When the computer equipment detects a page leaving event corresponding to a target page in a target application client, acquiring page data of the target page, wherein the page data comprises user information data, page information data and page browsing time length of the user.
(2) And the computer equipment stores the page data in a page data queue of the target application client side. At this time, there are first page data and second page data in the page data queue, the first page data is generated by the target application client at a first time point, the second page data is generated by the target application client at a second time point, wherein the first time point is earlier than the second time point, and the processing priority of the first page data is higher than that of the second page data. The page data of the target page is third page data generated at a third time point, the second time point is earlier than the third time point, the third page data is stored in a page data queue at the third time point, at this time, first page data, second page data and third page data exist in the page data queue, the processing priority of the first page data is higher than that of the second page data, and the processing priority of the second page data is higher than that of the third page data.
(3) And the computer equipment sends the page data to the target server based on the storage sequence of the page data in the page data queue, namely sequentially sends first page data, second page data and third page data to the target server, and when detecting that the page data queue sends the first page data to the target server, deletes the first page data from the page data queue to obtain a processed page data queue, wherein the processed page data queue comprises the second page data and the third page data. And then, the computer equipment can receive a data receiving result returned by the target server, if the data receiving result is that the data receiving result is successful, the step of sending the page data to the target server based on the storage sequence of the page data in the page data queue is continuously carried out on the processed page data queue, the page data queue sends second page data to the target server, when the second page data is detected to be sent to the target server by the page data queue, the second page data is deleted from the page data queue, a new page data queue is obtained, and the new page data queue comprises third page data. The computer equipment continues to perform the step of sending the page data to the target server based on the storage sequence of the page data in the page data queue, the page data queue sends third page data to the target server, then the computer equipment can receive the data receiving result returned by the target server, if the data receiving result is that the receiving is failed, the third page data is obtained from the data receiving result, the third page data is added to the tail end of the page data queue, an updated page data queue is obtained, and the step of sending the third page data to the target server based on the storage sequence of the page data in the page data queue is performed on the updated page data queue.
Optionally, the processing method of the page data of the present application will be further described below by way of example. The following will take an application of the processing method of page data in a specific implementation scenario as an example, where the specific application scenario is as follows:
(1) When the computer equipment detects a page leaving event corresponding to a target page in a target application client, acquiring page data of the target page, wherein the page data comprises user information data, page information data and page browsing time length of the user.
(2) And the computer equipment stores the page data in a page data queue of the target application client side. At this time, there are first page data and second page data in the page data queue, the first page data is generated by the target application client at a first time point, the second page data is generated by the target application client at a second time point, wherein the first time point is earlier than the second time point, and the processing priority of the first page data is higher than that of the second page data. The page data of the target page is third page data generated at a third time point, the second time point is earlier than the third time point, the third page data is stored in a page data queue at the third time point, at this time, first page data, second page data and third page data exist in the page data queue, the processing priority of the first page data is higher than that of the second page data, and the processing priority of the second page data is higher than that of the third page data.
(3) And the computer equipment sends the page data to the target server based on the storage sequence of the page data in the page data queue, namely sequentially sends first page data, second page data and third page data to the target server, and when detecting that the page data queue sends the first page data to the target server, deletes the first page data from the page data queue to obtain a processed page data queue, wherein the processed page data queue comprises the second page data and the third page data. And then, the computer equipment can receive a data receiving result returned by the target server, if the data receiving result is that the data receiving result is successful, the step of sending the page data to the target server based on the storage sequence of the page data in the page data queue is continuously carried out on the processed page data queue, the page data queue sends second page data to the target server, when the second page data is detected to be sent to the target server by the page data queue, the second page data is deleted from the page data queue, a new page data queue is obtained, and the new page data queue comprises third page data. The computer equipment continues to perform the step of sending the page data to the target server based on the storage sequence of the page data in the page data queue after the processing, the page data queue sends third page data to the target server, then the computer equipment can receive a data receiving result returned by the target server, if the data receiving result is a receiving failure, the page data is obtained from the data receiving result and added to a failure data queue, and when all the page data in the page data queue are detected to be sent, the failure data queue starts to send the page data in the failure data queue to the target server.
In light of the foregoing, the processing method of the page data of the present application will be further described below by way of example. The following will take an application of the page data processing method in a specific implementation scenario as an example, please refer to fig. 2, where the specific application scenario is as follows:
(1) And acquiring page data of the target page. When the computer equipment detects a page leaving event corresponding to a target page in a target application client, acquiring page data of the target page, wherein the page data comprises user information data, page information data and page browsing time length of the user.
(2) The computer device stores the page data in a page data queue local to the target application client. Specifically, the computer device may store the page data in the page data queue in sequence according to the storage sequence in which the page data is written into the page data queue of the target application client.
(3) The computer device sends the page data to the target server. Specifically, the computer device sends the page data to the target server based on the order in which the page data is stored in the page data queue.
(4) The target server receives the page data.
(5) And the target server performs user preference analysis on the page data, determines a user preference result of the user on the target page, and stores the user preference result to the target server.
In summary, the embodiment of the present application provides a method for processing page data, where the page data includes user information data, page information data, and a page browsing duration of the user, where the user information data includes a page departure event corresponding to a target page in a target application client; then, storing the page data in a local page data queue of the target application client; and finally, sending the page data to a target server based on the storage sequence of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result to the target server. According to the method and the device for reporting the page data, the page data are stored in the local page data queue of the target application client, an asynchronous reporting mode is adopted for the page data, when a user triggers a page departure event to leave a current page, the page data queue can continue to execute page data reporting operation, the user is not blocked from carrying out the page departure event, the user can smoothly operate when carrying out the page departure operation, smoothness of the user when carrying out the page departure is guaranteed, and interaction efficiency of the user and the page is improved.
In order to better implement the above method, correspondingly, the embodiment of the invention also provides a processing device of the page data, and the processing device of the page data is specifically integrated in the terminal or the server.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a processing device for page data according to an embodiment of the present application, where the processing device for page data includes:
an obtaining unit 201, configured to obtain, when a page departure event corresponding to a target page in a target application client is detected, page data of the target page, where the page data includes user information data of the user, page information data, and a page browsing duration;
a storage unit 202, configured to store the page data in a local page data queue of the target application client;
and a sending unit 203, configured to send the page data to a target server based on the storage order of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result on the target server.
In some embodiments, the processing device of page data includes:
and the first sending subunit is used for sending the page data to a target server based on the storage sequence of the page data in the page data queue when detecting that the idle network resource of the terminal equipment running the target application client is larger than the preset network resource.
In some embodiments, the processing device of page data includes:
and the second sending subunit is used for sending the page data to the target server based on the storage sequence of the page data in the page data queue when the current time point is detected to be in the non-busy time period of the target application client.
In some embodiments, the processing device of page data includes:
and the storage subunit is used for sequentially storing the page data in the page data queue according to the storage sequence of the page data written into the local page data queue of the target application client.
In some embodiments, the processing device of page data includes:
the receiving subunit is used for receiving the data receiving result returned by the target server;
and the first processing subunit is used for processing the page data in the page data queue based on the data receiving result.
In some embodiments, the processing device of page data includes:
the second processing subunit is configured to delete the page data from the page data queue if the data receiving result is that the data receiving is successful, obtain a processed page data queue, and continuously send the page data to a target server based on a storage order of the page data in the page data queue;
and the second processing subunit is further configured to, if the data receiving result is that the receiving is failed, move the page data to the end of the page data queue, obtain an updated page data queue, and continue to send the page data to the target server based on the storage order of the page data in the page data queue.
In some embodiments, the processing device of page data includes:
and the third processing subunit is used for sending the page data to a sending failure data queue by the page data queue if the data receiving result is that the receiving fails, so that the failure data queue sends the page data to the target server based on the storage sequence of the page data in the failure data queue.
The embodiment of the application provides a processing device for page data, which is used for acquiring the page data of a target page when a page leaving event corresponding to the target page in a target application client is detected through an acquiring unit 201, wherein the page data comprises user information data, page information data and page browsing duration of a user; the storage unit 202 stores the page data in a local page data queue of the target application client; the sending unit 203 sends the page data to a target server based on the storage order of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result on the target server. According to the method and the device for reporting the page data, the page data are stored in the local page data queue of the target application client, an asynchronous reporting mode is adopted for the page data, when a user triggers a page departure event to leave a current page, the page data queue can continue to execute page data reporting operation, the user is not blocked from carrying out the page departure event, the user can smoothly operate when carrying out the page departure operation, smoothness of the user when carrying out the page departure is guaranteed, and interaction efficiency of the user and the page is improved.
In addition, the embodiment of the present invention further provides a computer device, which may be a terminal or a server, as shown in fig. 4, which shows a schematic structural diagram of the computer device according to the embodiment of the present invention, specifically:
the computer device may include one or more processing cores 'processors 301, one or more computer-readable storage media's memory 302, power supply 303, and input unit 304, among other components. Those skilled in the art will appreciate that the computer device structure shown in FIG. 4 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components. Wherein:
processor 301 is the control center of the computer device and uses various interfaces and lines to connect the various parts of the overall computer device, and to perform various functions and process data of the computer device by running or executing software programs and/or modules stored in memory 302, and invoking data stored in memory 302. Optionally, processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 301.
The memory 302 may be used to store software programs and modules, and the processor 301 executes various functional applications and data processing by executing the software programs and modules stored in the memory 302. The memory 302 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
The computer device further includes a power supply 303 for powering the various components, preferably, the power supply 303 is logically connected to the processor 301 by a power management system, such that functions such as managing charging, discharging, and power consumption are performed by the power management system. The power supply 303 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The computer device may also include an input unit 304, which input unit 304 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 301 in the computer device loads executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 executes the application programs stored in the memory 302, so as to implement various functions as follows:
when a page leaving event corresponding to a target page in a target application client is detected, acquiring page data of the target page, wherein the page data comprises user information data, page information data and page browsing time length of the user;
storing the page data in a local page data queue of the target application client;
and sending the page data to a target server based on the storage sequence of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result to the target server.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present invention also provide a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the methods provided in the various alternative implementations of embodiments of the present invention.
According to one aspect of the present application, there is also provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in the various alternative implementations of the above embodiments.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in any of the methods for processing page data provided in the embodiments of the present application may be executed by the computer program stored in the storage medium, so that the beneficial effects that any of the methods for processing page data provided in the embodiments of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The foregoing has described in detail the method, apparatus, computer device and storage medium for processing page data provided by the embodiments of the present invention, and specific examples have been applied to illustrate the principles and embodiments of the present invention, where the foregoing examples are only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present invention, the present description should not be construed as limiting the present invention in summary.

Claims (10)

1. A method for processing page data, comprising:
when a page leaving event corresponding to a target page in a target application client is detected, acquiring page data of the target page, wherein the page data comprises user information data, page information data and page browsing time length of the user;
storing the page data in a local page data queue of the target application client;
and sending the page data to a target server based on the storage sequence of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result to the target server.
2. The method for processing page data according to claim 1, further comprising, after storing the page data in a local page data queue of the target application client:
and when detecting that the idle network resource of the terminal equipment running the target application client is larger than the preset network resource, sending the page data to a target server based on the storage sequence of the page data in the page data queue.
3. The method for processing page data according to claim 1, further comprising, after storing the page data in a local page data queue of the target application client:
and when the current time point is detected to be in the non-busy time period of the target application client, sending the page data to a target server based on the storage sequence of the page data in the page data queue.
4. The method for processing the page data according to claim 1, wherein storing the page data in a local page data queue of the target application client comprises:
and according to the storage sequence of the page data written into the local page data queue of the target application client, sequentially storing the page data into the page data queue.
5. The method according to claim 1, characterized by further comprising, after transmitting the page data to a target server based on the order in which the page data are stored in the page data queue:
receiving a data receiving result returned by the target server;
and processing the page data in the page data queue based on the data receiving result.
6. The method according to claim 5, wherein the processing the page data in the page data queue based on the data reception result includes:
if the data receiving result is that the data receiving is successful, deleting the page data from the page data queue to obtain a processed page data queue, and continuing to send the page data to a target server based on the storage sequence of the page data in the page data queue;
if the data receiving result is that the receiving is failed, the page data is moved to the tail end of the page data queue, an updated page data queue is obtained, and the step of sending the page data to a target server based on the storage sequence of the page data in the page data queue is continuously carried out on the updated page data queue.
7. The method according to claim 5, further comprising, after transmitting the page data to a target server based on the order in which the page data is stored in the page data queue:
And if the data receiving result is that the receiving is failed, the page data queue sends the page data to a sending failure data queue, so that the failure data queue sends the page data to the target server based on the storage sequence of the page data in the failure data queue.
8. A processing apparatus for page data, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring page data of a target page when a page leaving event corresponding to the target page in a target application client is detected, wherein the page data comprises user information data of a user, page information data and page browsing duration;
the storage unit is used for storing the page data in a local page data queue of the target application client;
and the sending unit is used for sending the page data to a target server based on the storage sequence of the page data in the page data queue, so that the target server receives the page data, performs user preference analysis on the page data, determines a user preference result of a user on the target page, and stores the user preference result on the target server.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method of processing page data as claimed in any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when run on a computer, causes the computer to perform the steps of the method of processing page data according to any one of claims 1 to 7.
CN202310324683.5A 2023-03-28 2023-03-28 Page data processing method and device, computer equipment and storage medium Pending CN116361584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310324683.5A CN116361584A (en) 2023-03-28 2023-03-28 Page data processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310324683.5A CN116361584A (en) 2023-03-28 2023-03-28 Page data processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116361584A true CN116361584A (en) 2023-06-30

Family

ID=86941490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310324683.5A Pending CN116361584A (en) 2023-03-28 2023-03-28 Page data processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116361584A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117040696A (en) * 2023-10-09 2023-11-10 深圳市天思智慧科技有限公司 Message complementary transmission method based on MQTT protocol

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117040696A (en) * 2023-10-09 2023-11-10 深圳市天思智慧科技有限公司 Message complementary transmission method based on MQTT protocol

Similar Documents

Publication Publication Date Title
CN107122379B (en) Collecting transaction data associated with a locally stored data file
US10523612B2 (en) Message history display system and method
CN105045887B (en) The system and method for mixed mode cross-domain data interaction
US9503499B1 (en) Concealing latency in display of pages
US20170323025A1 (en) Browser acceleration method and browser device having accelerator
KR20160135250A (en) Prefetching application data for periods of disconnectivity
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN106599270B (en) Network data capturing method and crawler
US10067862B2 (en) Tracking asynchronous entry points for an application
CN116361584A (en) Page data processing method and device, computer equipment and storage medium
CN111711669A (en) Data uploading method and device, server and storage medium
CN113014608A (en) Flow distribution control method and device, electronic equipment and storage medium
CN109948332A (en) A kind of physical machine login password remapping method and device
CN114465741B (en) Abnormality detection method, abnormality detection device, computer equipment and storage medium
CN111273964B (en) Data loading method and device
CN104615597A (en) Method, device and system for clearing cache file in browser
CN110633443B (en) Method, device, equipment and medium for intra-page data communication
CN116795597A (en) Online document data processing method, device, equipment and storage medium under network abnormality
CN115599571A (en) Data processing method and device, electronic equipment and storage medium
CN110245307A (en) Page cache management method and system, terminal device and storage medium
CN113986582A (en) Real-time data pushing method, device, equipment and storage medium
CN112988255B (en) Data processing method, device and computer readable storage medium
Li et al. The optimization of Transparent‐Desktop service mechanism based on SPICE
CN115333858B (en) Login page cracking method, device, equipment and storage medium
CN114237752B (en) Push page display method and device, electronic equipment and storage 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