A data collection method, device, equipment and storage medium
By determining and collecting the page materials and the placement positions of the target page and the supplementary candidate materials in the landing page, the code redundancy and performance problems caused by H5 page data collection are solved, and efficient buried point data acquisition and synchronous binding are achieved. Improved page performance.
Patent Information
- Application Number
- CN202210467936.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2042-04-29
AI Technical Summary
In the prior art, when collecting data burial points on the H5 page of the landing page, it leads to code redundancy and poor page performance, increasing the burden of data collection.
By obtaining the page material of the target page, its placement position and the number of supplementary candidate materials, determine the placement position of supplementary candidate materials, and collect buried point data after the page material is rendered to achieve synchronous binding of buried point data. Reduce code redundancy and improve page performance.
It effectively reduces code redundancy, improves page rendering performance, and realizes efficient collection and synchronous binding of buried point data.
Smart Images

Figure CN114840184B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a data collection method, device, equipment and storage medium. Background Art
[0002] Nowadays, Internet advertising forms are ever-changing. Relying on the momentum of the new media traffic era, the demand for advertising landing pages aggregated in the form of themes has emerged. Landing pages refer to pages that are opened to users after users click on ads or search using search engines. The landing pages will display extended content related to the clicked ads or search result links. In landing pages, it is often necessary to collect data through pre-set data embedding points, which can be used to determine advertising effects and subsequent push optimization.
[0003] In related technologies, landing pages are usually H5 (Hyper Text Markup Language 5) pages, which means that when collecting embedded data, data embedding is required in the H5 page, thereby increasing the performance burden of H5 data collection, resulting in code redundancy and poor page performance. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a data collection method, device, equipment and storage medium to reduce the burden of data collection, reduce code redundancy and improve page performance. The specific technical solution is as follows:
[0005] An embodiment of the present invention provides a data collection method, which is applied to a client, and the method includes:
[0006] Acquire page materials of a target page, display positions of the page materials on the target page, and a target number of supplementable candidate materials for the target page;
[0007] Determining the display position of the supplementable candidate material in the target page according to the display position of the page material and the target quantity;
[0008] Determine the page material that is closest to the supplementable candidate material and is displayed before it as the embedding material corresponding to the supplementable candidate material;
[0009] When any page material is rendered, the buried point data of the any page material is collected, and if any page material is a buried point material, the buried point data of the supplementary candidate material corresponding to the any page material is collected.
[0010] Optionally, the page material includes a plurality of entity candidate materials, and the page material whose display position is closest to the supplementable candidate material is determined as the embedding material corresponding to the supplementable candidate material, including:
[0011] Determine the page material that is closest to the supplementable candidate material and is displayed before it as the embedding material corresponding to the supplementable candidate material;
[0012] Grouping any buried point material and the supplementable candidate material corresponding to any buried point material as a material group corresponding to any buried point material;
[0013] After any page material is rendered, collecting the buried point data of the any page material, and if any page material is a buried point material, collecting the buried point data of the supplementary candidate material corresponding to the any page material, including:
[0014] When the rendering of any page material is completed, if any page material is a buried point material, the buried point data of the material group corresponding to any page material is collected; if any page material is not a buried point material, the buried point data of any page material is collected.
[0015] Optionally, the page material includes entity candidate material and content material, and the display position of the page material on the target page includes the display position of the content material on the target page, the first display position of the entity candidate material, the display interval and the display quantity;
[0016] The step of determining the display position of the supplementable candidate material in the target page according to the display position of the page material and the target quantity includes:
[0017] The display positions of the entity candidate material and the supplementable candidate material on the target page are determined according to the target quantity, the display position of the content material on the target page, the first display position, the display interval and the display quantity of the entity candidate material.
[0018] Optionally, determining the page material that is closest to the supplementable candidate material and is displayed before the supplementable candidate material as the embedding material corresponding to the supplementable candidate material includes:
[0019] Determine the content material that is closest to the supplementable candidate material and is displayed as the embedding material corresponding to the supplementable candidate material;
[0020] Grouping any buried point material and the supplementable candidate material corresponding to any buried point material as a material group corresponding to any buried point material;
[0021] After any page material is rendered, collecting the buried point data of the any page material, and if any page material is a buried point material, collecting the buried point data of the supplementary candidate material corresponding to the any page material, including:
[0022] When the rendering of any page material is completed, if any page material is a buried point material, the buried point data of the material group corresponding to any page material is collected; if any page material is not a buried point material, the buried point data of any page material is collected.
[0023] Optionally, the method further includes:
[0024] In response to a page switching operation on the target page, recording playback information of a first video played in the currently rendered target page, and acquiring at least one second video and a playback order of the second video in the target page rendered after the page switching operation;
[0025] Determining whether the second video includes the first video;
[0026] If so, continue to play the first video according to the play information, and after the first video is finished playing, play the second video in sequence according to the play order of the second video;
[0027] If not, play the second videos in sequence according to the play order of the second videos.
[0028] Optionally, the method further includes:
[0029] In response to a video selection operation on the target page, determining a selected third video, and obtaining at least one fourth video whose playing order follows the third video in the currently rendered target page and the playing order of the fourth video;
[0030] The third video is played, and after the third video is finished playing, the fourth video is played in sequence according to the playing order of the fourth video.
[0031] Optionally, after acquiring at least one second video in the target page rendered after the page switching operation, the method further includes:
[0032] Loading data of the second video;
[0033] Playing the second videos in sequence according to the playback order of the second videos includes:
[0034] The pre-loaded data of the second video are played sequentially according to the playback order of the second video.
[0035] Optionally, in response to a page switching operation on the target page, the method further includes:
[0036] Acquire display information of an image in a target page rendered after the page switching operation;
[0037] The target page is rendered according to the display information, and after the target page is rendered, the data of the image is loaded and displayed on the rendered target page.
[0038] The embodiment of the present invention further provides a data collection device, which is applied to a client, and the device includes:
[0039] An acquisition module, used to acquire page materials of a target page, display positions of the page materials on the target page, and a target number of supplementable candidate materials for the target page;
[0040] A first determination module, configured to determine a display position of the supplementable candidate material in the target page according to the display position of the page material and the target quantity;
[0041] The second determination module is used to determine the page material that is closest to the supplementable candidate material and is displayed before the supplementable candidate material as the embedding material corresponding to the supplementable candidate material;
[0042] The collection module is used to collect the buried point data of any page material after the rendering of any page material is completed, and when any page material is a buried point material, collect the buried point data of the supplementary candidate material corresponding to any page material.
[0043] An embodiment of the present invention further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0044] Memory, used to store computer programs;
[0045] The processor is used to implement any of the above-mentioned method steps when executing the program stored in the memory.
[0046] In another aspect of the present invention, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes any of the above-mentioned data collection methods.
[0047] In another aspect of the present invention, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the above-mentioned data collection methods.
[0048] According to the solution provided by an embodiment of the present invention, a client obtains the page material of a target page, the display position of the page material on the target page, and the target number of supplementary candidate materials of the target page; determines the display position of the supplementary candidate material in the target page according to the display position and the target number of the page material; determines the page material that is closest to the display position before the supplementary candidate material as the buried point material corresponding to the supplementary candidate material; when any page material is rendered, collects the buried point data of any page material, and when any page material is a buried point material, collects the buried point data of the supplementary candidate material corresponding to any page material.
[0049] In this way, the client can also determine the display position of the supplementary candidate materials on the target page for which the actual content has not yet been obtained, and perform corresponding data embedding. When the rendering of any page material is completed, the embedding data of the page material and its corresponding supplementary candidate material is synchronously collected, realizing the synchronous binding of the embedding data, thereby reducing code redundancy and effectively enhancing the rendering performance of the target page. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0051] Figure 1 A flow chart of a data collection method provided by an embodiment of the present invention;
[0052] Figure 2 A schematic diagram of a data point embedding rule scheme provided in an embodiment of the present invention;
[0053] Figure 3 A schematic diagram of a video playback rule scheme provided by an embodiment of the present invention;
[0054] Figure 4 A schematic diagram of data collection and video playback logic of a target page provided by an embodiment of the present invention;
[0055] Figure 5 A structural schematic diagram of a data acquisition device provided by an embodiment of the present invention;
[0056] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0058] The data collection method provided by the embodiment of the present invention will be described in detail below through specific examples.
[0059] like Figure 1 FIG. 1 is a flow chart of a data collection method provided by an embodiment of the present invention, and the method is applied to a client and includes:
[0060] S11: Obtaining page materials of a target page, display positions of the page materials on the target page, and a target number of supplementable candidate materials for the target page.
[0061] In the present invention, the target page is a page displayed by the client, and usually includes a variety of page materials. As the user pulls down, refreshes, etc. on the target page, the client renders and displays the page materials of the currently displayed part.
[0062] Each target page has a corresponding preset number of candidate materials. Candidate materials are usually materials with promotional effects that need to be displayed, such as event promotion banners, advertisements, etc. The display of candidate materials requires screening and bidding, so the number of candidate materials that can be displayed on the target page may be less than the preset number of candidate materials that can be displayed on the target page. In the embodiment of the present invention, for the convenience of description, the obtained candidate materials that can be displayed on the target page are referred to as entity candidate materials, and the difference between the preset number and the number of entity candidate materials is taken as the target number. The target number of candidate materials that can be displayed on the target page but have not yet been determined or obtained is called supplementable candidate materials.
[0063] In this step, the page material is the material that can be currently obtained and displayed on the target page, including entity candidate material and content material. The content material is the actual content that the user browsing the target page wants to obtain. For example, if the target page is a search result page, then the content material can be the search result required by the user. If the target page is a detail page of an activity, then the content material is text, images or videos containing detailed information of the activity, etc., without specific limitation.
[0064] The display position of the page material on the target page may refer to the position coordinates of the page material on the target page, or it may be the position identifier of the page material on the target page. For example, the display window corresponding to each material on the target page may be numbered as a position identifier, and so on, without specific limitation.
[0065] S12: Determine the placement position of the supplementary candidate material in the target page according to the placement position and target quantity of the page material.
[0066] In the embodiment of the present invention, the display order of each page material can be determined according to the display position of the page material. It can be understood that in the target page, the display position of each material is fixed. For the supplementable candidate material, although it cannot be rendered when the specific data has not been obtained, its display position is still reserved. Then, the display position of the supplementable candidate material in the target page can be determined according to the display position of the page material and the target quantity.
[0067] For example, if the page material only includes entity candidate materials, and the display positions of the entity candidate materials are 1, 3, 6, and 7 respectively, and the target number of supplementary candidate materials is 5, then the corresponding display positions of the supplementary candidate materials can be determined to be 2, 4, 5, 8, and 9. Specifically, it can be expressed as: 1 (2), 3 (4, 5), 6, 7 (8, 9).
[0068] In one implementation, if the page material includes entity candidate material and content material, the display position of the page material on the target page includes the display position of the content material on the target page, the first display position of the entity candidate material, the display interval and the display quantity; then, the step of determining the display position of the supplementable candidate material in the target page based on the display position and the target quantity of the page material may include: determining the display position of the entity candidate material and the supplementable candidate material on the target page based on the target quantity, the display position of the content material on the target page, the first display position of the entity candidate material, the display interval and the display quantity.
[0069] For example, if the display positions of the content material on the target page are a, b, c, d, e, f, g, the first display position of the entity candidate material is after the display position a of the content material, the display interval of the entity candidate material is 2, the display quantity is 2, and the target quantity is 1, then the display positions of other entity candidate materials are after the display position c of the content material, and the display position of the supplementable candidate material on the target page is after the content material e. Specifically, it can be expressed as: a, 1, b, c, 2, d, e (3), f, g, where 1 and 2 represent the display positions of the entity candidate materials, and 3 represents the display position of the supplementable candidate material.
[0070] S13: Determine the page material that is closest to the supplementable candidate material in the display position as the embedding material corresponding to the supplementable candidate material.
[0071] In this step, by determining the embedding material corresponding to the supplementable candidate material, data embedding for the supplementable candidate material can be realized. For each supplementable candidate material, the page material that is closest to the display position before the supplementable candidate material is used as the embedding material corresponding to the supplementable candidate material. In other words, different data embedding points are divided according to the display position of each material in the target page, and then subsequent embedding data collection is carried out. The data embedding points of multiple materials are aggregated and bound, thereby improving the collection efficiency of the embedding data while maintaining the integrity of the embedding data.
[0072] In one implementation, when the page material includes multiple entity candidate materials, the page material whose display position is closest to the supplementable candidate material is determined as the embedding material corresponding to the supplementable candidate material. That is to say, the page material whose display position is closest to the supplementable candidate material is determined as the embedding material corresponding to the supplementable candidate material; any embedding material and the supplementable candidate material corresponding to any embedding material are grouped as materials corresponding to any embedding material.
[0073] For instance, continuing with the above example, if the display positions of the entity candidate materials and the supplementable candidate materials in the target page are 1 (2), 3 (4, 5), 6, 7 (8, 9), then the entity candidate material at display position 1 and the supplementable candidate material at display position 2 can be grouped as one material, the entity candidate material at display position 3 and the supplementable candidate materials at display positions 4 and 5 can be grouped as one material, and the entity candidate material at display position 7 and the supplementable candidate materials at display positions 8 and 9 can be grouped as one material.
[0074] In addition, in one implementation, when the page material includes entity candidate material and content material, the page material whose display position is closest to the supplementary candidate material is determined as the embedding material corresponding to the supplementary candidate material. Specifically, it may include: determining the content material whose display position is closest to the supplementary candidate material is determined as the embedding material corresponding to the supplementary candidate material; and grouping any embedding material and the supplementary candidate material corresponding to any embedding material as the material grouping corresponding to any embedding material.
[0075] For instance, continuing with the above example, if the display positions of the entity candidate material, content material and supplementable candidate material are respectively: a, 1, b, c, 2, d, e (3), f, g, then the supplementable candidate material with display position 3 and the content material with display position e can be grouped as one material.
[0076] S14: When any page material is rendered, collect the buried point data of any page material, and if any page material is a buried point material, collect the buried point data of the supplementary candidate material corresponding to any page material.
[0077] In this step, as the page material is rendered, the buried data of the page material and the supplementable candidate material is collected, where the buried data may include operation information such as the browsing time and click count of the user on the page material, which can be used for business optimization. The buried data corresponding to the page material and the supplementable candidate material can be the same, or different forms of buried data can be set according to different needs, which is not limited in the embodiment of the present invention.
[0078] Specifically, when the page materials and the supplementable candidate materials are grouped to obtain at least one material group, after any page material is rendered, if any page material is a buried point material, the buried point data of the material group corresponding to any page material can be collected, and if any page material is not a buried point material, the buried point data of any page material can be collected. In other words, the buried point data of the materials in the same material group can be collected synchronously, thereby improving the collection efficiency of the buried point data.
[0079] like Figure 2 The figure shows a schematic diagram of a data embedding rule in an implementation method. Among them, a, b, c, d, e, f, g represent the display positions of content materials in the target page, 1, 2, 3, 4, 5, 6, 7 in the solid line frame represent the display positions of entity candidate materials, and 1, 2, 3, 4, 5, 6, 8, 9 in the dotted line frame represent the display positions of supplementary candidate materials.
[0080] In different target pages, the insertion positions of supplementary candidate materials are different, so the corresponding display positions can also be different, for example, they can be displayed in display positions 1, 2, 3, or in display positions 4, 5, 6. The return format of the embedding data can also be different, and the corresponding embedding data can be returned for each supplementary candidate material separately, for example, the embedding data of supplementary candidate materials in display positions 2, 3, and 4 can be returned separately, or two or more embedding data can be aggregated and returned at one time, for example, the embedding data of supplementary candidate materials in display positions 2 and 3 can be returned together.
[0081] In addition, when the page material and the supplementable candidate material are cut and the material grouping is determined, the cutting can be performed according to the entity candidate material, that is, each supplementable candidate material is grouped with the previous entity candidate material, for example, the supplementable candidate material at display position 2 and the entity candidate material at display position 1 are a material group, the supplementable candidate materials at display positions 4 and 5 and the entity candidate material at display position 3 are a material group, and the supplementable candidate materials at display positions 8 and 9 and the entity candidate material at display position 7 are a material group. Alternatively, the cutting can also be performed according to the content material, that is, each supplementable candidate material is grouped with the previous content material, for example, the supplementable candidate material at display position 3 and the content material at display position e are a material group.
[0082] In an embodiment of the present invention, the client can also control the playback order of the videos in the target page. Specifically, in response to a page switching operation on the target page, the playback information of the first video played in the currently rendered target page is recorded, and at least one second video and the playback order of the second video in the target page rendered after the page switching operation are obtained. Determine whether the second video includes the first video; if so, continue to play the first video according to the playback information, and after the first video is finished playing, play the second video in sequence according to the playback order of the second video. If not, play the second video in sequence according to the playback order of the second video.
[0083] That is to say, the second video can be maintained in the form of an automatic play list. The second video will be stored in the automatic play list in sequence according to the play order, and the second video will be automatically cut out of the list after playing. Through the first-in-first-out feature of the list stack, the process conversion of automatically starting the video and automatically switching to the next play order can be achieved without interaction.
[0084] The page switching operation may be a page sliding operation, or a click operation on a link, etc., and is not specifically limited.
[0085] In addition, the client can also determine the selected third video in response to the video selection operation on the target page, and obtain at least one fourth video and the playback order of the fourth video whose playback order is after the third video in the currently rendered target page; play the third video, and after the third video is finished playing, play the fourth videos in sequence according to the playback order of the fourth videos.
[0086] That is, the play order of the videos in the target page can be adjusted based on the user's video selection operation, while the original play order of the videos in the target page is not disrupted, thereby making the video play of the target page more flexible.
[0087] In one implementation, after obtaining at least one second video in the target page rendered after the page switching operation, the data of the second video can also be loaded. When playing, the pre-loaded data of the second video can be played in sequence according to the playback order of the second video.
[0088] In this way, the video material is preloaded, which reduces the possibility of lag when users watch videos, provides a better user experience, and enables the user's operations to be reflected as quickly as possible.
[0089] In addition, in one implementation, in response to a page switching operation on a target page, display information of an image within the target page rendered after the page switching operation can also be obtained; based on the display information, the target page is rendered, and after the target page is rendered, the image data is loaded and displayed on the rendered target page.
[0090] In this way, lazy loading of image materials is achieved, which can improve the first screen display speed and reduce load pressure.
[0091] like Figure 3 The following is a schematic diagram of a video playback rule in one implementation. After the user clicks on a video to play or switches pages, the automatic play list updates the list based on the video display and video playback status, and maintains the current playing video and the last playing video to determine the switching video order, ensuring that the two playing videos are different to prevent conflicts with the automatic start and resume logic.
[0092] Specifically, in response to a page switching operation on the target page, such as a sliding operation on the target page, the currently exposed video 1 and video 2 are pushed into the stack, and the automatic play list includes video 1 and video 2. Then, according to the play order, the currently playing video is determined to be video 1, and it is determined whether the currently playing video has been played last time. If it has been played, a pop operation is performed on video 1. If it has not been played, video 1 is played. At the same time, any video n that has completed playback is recorded.
[0093] In addition, in response to a video selection operation on the target page, such as a click operation on any video on the target page, if the automatic play list includes video 1, video 2 and video 3, and the user clicks on video 2, then video 1 before video 2 in the automatic play list is popped out, and according to the play order, the currently playing video is determined to be video 2, and a determination is made as to whether the currently playing video has been played last time. If it has been played, a pop operation is performed on video 2; if it has not been played, video 2 is played. At the same time, any video m that has completed playback is recorded.
[0094] like Figure 4As shown, it is a logical diagram of data collection and video playback of the target page in an implementation method. First, it is necessary to render the target page, calculate the page height of the target page, and then calculate the display position of the page material based on the page height. Then, according to the display position and target quantity of the page material, determine the display position of the supplementable candidate material in the target page, and determine the page material with the closest display position before the supplementable candidate material as the embedding material corresponding to the supplementable candidate material, perform data embedding, and collect embedding data. Among them, the video material in the target page is preloaded to improve the smoothness of video playback. On the other hand, the user can interact with the target page, such as the user's sliding operation and clicking operation on the target page. According to the sliding out and clicking state of the playing video, the automatic play list can be determined. If the currently playing video has slid out or been clicked, the automatic play list is updated, the play position of the playing video is recorded, and the video to be played is recorded, and other videos are stopped. When any video to be played is clicked, it is played according to the automatic play list. If the currently playing video has not slid out, the automatic play list is updated, and after recording the play position of the playing video, the playing video continues to be played. From the above, it can be seen that the solution provided by the embodiment of the present invention is that the client can also determine the display position of the supplementary candidate material on the target page for which the actual content has not yet been obtained, and perform corresponding data embedding. When the rendering of any page material is completed, the embedding data of the page material and its corresponding supplementary candidate material are synchronously collected, thereby realizing the synchronous binding of the embedding data, thereby reducing code redundancy and effectively enhancing the rendering performance of the target page.
[0095] like Figure 5 As shown, an embodiment of the present invention further provides a structural schematic diagram of a data acquisition device, which is applied to a client, and the device includes:
[0096] An acquisition module 201 is used to acquire page materials of a target page, display positions of the page materials on the target page, and a target number of supplementable candidate materials for the target page;
[0097] A first determination module 202, configured to determine a display position of the supplementable candidate material in the target page according to the display position of the page material and the target quantity;
[0098] The second determination module 203 is used to determine the page material that is closest to the supplementable candidate material and is displayed before the supplementable candidate material as the embedding material corresponding to the supplementable candidate material;
[0099] The collection module 204 is used to collect the buried point data of any page material after the rendering of any page material is completed, and if any page material is a buried point material, collect the buried point data of the supplementary candidate material corresponding to any page material.
[0100] In one implementation, the page material includes a plurality of entity candidate materials, and the second determination module 203 is used to:
[0101] Determine the page material that is closest to the supplementable candidate material and is displayed before it as the embedding material corresponding to the supplementable candidate material;
[0102] Grouping any buried point material and the supplementable candidate material corresponding to any buried point material as a material group corresponding to any buried point material;
[0103] The acquisition module 204 is used to:
[0104] When the rendering of any page material is completed, if any page material is a buried point material, the buried point data of the material group corresponding to any page material is collected; if any page material is not a buried point material, the buried point data of any page material is collected.
[0105] In one implementation, the page material includes entity candidate material and content material, and the display position of the page material on the target page includes the display position of the content material on the target page, the first display position of the entity candidate material, the display interval, and the display quantity;
[0106] The first determining module 202 is configured to:
[0107] The display positions of the entity candidate material and the supplementable candidate material on the target page are determined according to the target quantity, the display position of the content material on the target page, the first display position, the display interval and the display quantity of the entity candidate material.
[0108] In one implementation, the second determining module 203 is configured to:
[0109] Determine the content material that is closest to the supplementable candidate material and is displayed as the embedding material corresponding to the supplementable candidate material;
[0110] Grouping any buried point material and the supplementable candidate material corresponding to any buried point material as a material group corresponding to any buried point material;
[0111] The acquisition module 204 is used to:
[0112] When the rendering of any page material is completed, if any page material is a buried point material, the buried point data of the material group corresponding to any page material is collected; if any page material is not a buried point material, the buried point data of any page material is collected.
[0113] In one implementation, the device further includes:
[0114] A switching module, configured to record, in response to a page switching operation on the target page, the playback information of a first video played in the currently rendered target page, and obtain at least one second video in the target page rendered after the page switching operation and the playback order of the second video;
[0115] A determination module, used for determining whether the second video includes the first video;
[0116] The playback module is used to, if yes, continue to play the first video according to the playback information, and after the first video is finished playing, play the second video in sequence according to the playback order of the second video; if not, play the second video in sequence according to the playback order of the second video.
[0117] In one implementation, the device further includes:
[0118] A selection module, configured to determine the selected third video in response to a video selection operation on the target page, and obtain at least one fourth video whose playing order is after the third video in the currently rendered target page and the playing order of the fourth video;
[0119] The playback module is also used to play the third video, and after the third video is played, play the fourth video in sequence according to the playback order of the fourth video.
[0120] In one implementation, the playback module is used to:
[0121] After acquiring at least one second video in the target page rendered after the page switching operation, data of the second video is loaded; and the pre-loaded data of the second video is played in sequence according to the playback order of the second video.
[0122] In one implementation, the switching module is used to:
[0123] Acquire display information of an image in a target page rendered after the page switching operation;
[0124] The target page is rendered according to the display information, and after the target page is rendered, the data of the image is loaded and displayed on the rendered target page.
[0125] From the above, it can be seen that the solution provided by the embodiment of the present invention is that the client can also determine the display position of the supplementary candidate material on the target page for which the actual content has not yet been obtained, and perform corresponding data embedding. When the rendering of any page material is completed, the embedding data of the page material and its corresponding supplementary candidate material are synchronously collected, thereby realizing the synchronous binding of the embedding data, thereby reducing code redundancy and effectively enhancing the rendering performance of the target page.
[0126] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.
[0127] Memory 503, used for storing computer programs;
[0128] The processor 501 is used to execute the program stored in the memory 503, and implements the following steps:
[0129] Acquire page materials of a target page, display positions of the page materials on the target page, and a target number of supplementable candidate materials for the target page;
[0130] Determining the display position of the supplementable candidate material in the target page according to the display position of the page material and the target quantity;
[0131] Determine the page material that is closest to the supplementable candidate material and is displayed before it as the embedding material corresponding to the supplementable candidate material;
[0132] When any page material is rendered, the buried point data of the any page material is collected, and if any page material is a buried point material, the buried point data of the supplementary candidate material corresponding to the any page material is collected.
[0133] From the above, it can be seen that the solution provided by the embodiment of the present invention is that the client can also determine the display position of the supplementary candidate material on the target page for which the actual content has not yet been obtained, and perform corresponding data embedding. When the rendering of any page material is completed, the embedding data of the page material and its corresponding supplementary candidate material are synchronously collected, thereby realizing the synchronous binding of the embedding data, thereby reducing code redundancy and effectively enhancing the rendering performance of the target page.
[0134] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0135] The communication interface is used for communication between the above terminal and other devices.
[0136] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0137] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0138] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the data collection method described in any one of the above embodiments.
[0139] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the data collection method described in any one of the above embodiments.
[0140] From the above, it can be seen that the solution provided by the embodiment of the present invention is that the client can also determine the display position of the supplementary candidate material on the target page for which the actual content has not yet been obtained, and perform corresponding data embedding. When the rendering of any page material is completed, the embedding data of the page material and its corresponding supplementary candidate material are synchronously collected, thereby realizing the synchronous binding of the embedding data, thereby reducing code redundancy and effectively enhancing the rendering performance of the target page.
[0141] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0142] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0143] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0144] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A data collection method, characterized in that: Applied to a client, the method comprises: Acquire page materials of a target page, display positions of the page materials on the target page, and a target number of supplementable candidate materials for the target page; Determining the display position of the supplementable candidate material in the target page according to the display position of the page material and the target quantity; Determine the page material that is closest to the supplementable candidate material and is displayed before it as the embedding material corresponding to the supplementable candidate material; When any page material is rendered, the buried point data of the any page material is collected, and if any page material is a buried point material, the buried point data of the supplementary candidate material corresponding to the any page material is collected.
2. The method according to claim 1, characterized in that The page material includes a plurality of entity candidate materials, and the page material whose display position is determined to be closest to the supplementable candidate material as the embedding material corresponding to the supplementable candidate material includes: Determine the page material that is closest to the supplementable candidate material and is displayed before it as the embedding material corresponding to the supplementable candidate material; Grouping any buried point material and the supplementable candidate material corresponding to any buried point material as a material group corresponding to any buried point material; After any page material is rendered, collecting the buried point data of the any page material, and if any page material is a buried point material, collecting the buried point data of the supplementary candidate material corresponding to the any page material, including: When the rendering of any page material is completed, if any page material is a buried point material, the buried point data of the material group corresponding to any page material is collected; if any page material is not a buried point material, the buried point data of any page material is collected.
3. The method according to claim 1, characterized in that: The page material includes entity candidate material and content material, and the display position of the page material on the target page includes the display position of the content material on the target page, the first display position of the entity candidate material, the display interval and the display quantity; The step of determining the display position of the supplementable candidate material in the target page according to the display position of the page material and the target quantity includes: The display positions of the entity candidate material and the supplementable candidate material on the target page are determined according to the target quantity, the display position of the content material on the target page, the first display position, the display interval and the display quantity of the entity candidate material.
4. The method according to claim 3, characterized in that The step of determining the page material that is closest to the supplementable candidate material and is displayed before the supplementable candidate material as the embedding material corresponding to the supplementable candidate material includes: Determine the content material that is closest to the supplementable candidate material and is displayed as the embedding material corresponding to the supplementable candidate material; Grouping any buried point material and the supplementable candidate material corresponding to any buried point material as a material group corresponding to any buried point material; After any page material is rendered, collecting the buried point data of the any page material, and if any page material is a buried point material, collecting the buried point data of the supplementary candidate material corresponding to the any page material, including: When the rendering of any page material is completed, if any page material is a buried point material, the buried point data of the material group corresponding to any page material is collected; if any page material is not a buried point material, the buried point data of any page material is collected.
5. The method according to claim 3, characterized in that: The method further comprises: In response to a page switching operation on the target page, recording playback information of a first video played in the currently rendered target page, and acquiring at least one second video and a playback order of the second video in the target page rendered after the page switching operation; Determining whether the second video includes the first video; If so, continue to play the first video according to the play information, and after the first video is finished playing, play the second video in sequence according to the play order of the second video; If not, play the second videos in sequence according to the play order of the second videos.
6. The method according to claim 5, characterized in that The method further comprises: In response to a video selection operation on the target page, determining a selected third video, and obtaining at least one fourth video whose playing order follows the third video in the currently rendered target page and the playing order of the fourth video; The third video is played, and after the third video is finished playing, the fourth video is played in sequence according to the playing order of the fourth video.
7. The method according to claim 5, characterized in that After acquiring at least one second video in the target page rendered after the page switching operation, the method further includes: Loading data of the second video; Playing the second videos in sequence according to the playback order of the second videos includes: The pre-loaded data of the second video are played sequentially according to the playback order of the second video.
8. The method according to claim 5, characterized in that In response to a page switching operation on the target page, the method further includes: Acquire display information of an image in a target page rendered after the page switching operation; The target page is rendered according to the display information, and after the target page is rendered, the data of the image is loaded and displayed on the rendered target page.
9. A data acquisition device, characterized in that: Applied to a client, the device comprises: An acquisition module, used to acquire page materials of a target page, display positions of the page materials on the target page, and a target number of supplementable candidate materials for the target page; A first determination module, configured to determine a display position of the supplementable candidate material in the target page according to the display position of the page material and the target quantity; The second determination module is used to determine the page material that is closest to the supplementable candidate material and is displayed before the supplementable candidate material as the embedding material corresponding to the supplementable candidate material; The collection module is used to collect the buried point data of any page material after the rendering of any page material is completed, and when any page material is a buried point material, collect the buried point data of the supplementary candidate material corresponding to any page material.
10. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 8 when executing a program stored in a memory.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
