Page conversion rate calculation method and device
By generating page snapshots, collecting and processing access information, and calculating and displaying page conversion rates, the problem of inability to intuitively view the conversion rate changes after page snapshots are solved in the prior art, and real-time and intuitive operational efficiency improvement is achieved.
Patent Information
- Application Number
- CN202210094147.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2042-01-26
AI Technical Summary
The prior art is difficult to view the conversion rate changes after the specified page snapshot is adjusted in real time and intuitively. The operation is complicated and cannot be closely linked to the actual page, and the video data changes cannot be visually viewed.
By generating page snapshots, obtaining media information and storing it to a data queue, detecting user access information and collecting resource information, applying Flink computing tasks for preprocessing and association, calculating page conversion rate and storing it to a database, querying and displaying page conversion rate according to requests.
It realizes the conversion rate of each update of the page through snapshots, and intuitively displays the impact of page changes on access, greatly improving operational efficiency.
Smart Images

Figure CN114491341B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a method and device for calculating a page conversion rate. Background Art
[0002] When you want to view the conversion rate changes after adjusting the snapshot of a specified page in real time, you need to set parameters such as time and page, and query the calculation results in the form of API or SQL. For operators, the operation requires high technical requirements, and it cannot be closely integrated with the actual page, and it is impossible to intuitively view the data changes of each video. Summary of the invention
[0003] In view of this, the present invention provides a method for calculating page conversion rate, through which the conversion rate of a page can be displayed in detail in the form of a snapshot after each update of the page. For each change of the page, the impact of the update on the page access can be intuitively seen, greatly improving operational efficiency.
[0004] The present invention also provides a page conversion rate calculation device to ensure the implementation and application of the above method in practice.
[0005] A method for calculating a page conversion rate, comprising:
[0006] When the target page is updated in the first time period, generating a first page snapshot corresponding to the target page;
[0007] Acquire media asset information corresponding to the first page snapshot, and store the media asset information in a preset data queue;
[0008] When it is detected that a user accesses a data resource in the target page via the target page, a preset SDK device is applied to send access information of the user accessing the target page to a preset data acquisition server, triggering the data acquisition server to collect resource information corresponding to the data resource based on the access information;
[0009] The resource information collected by the data collection server is sent to the data queue, and the media asset information and resource information in the data queue are pre-processed and associated by applying a preset Flink computing task to obtain associated information;
[0010] storing the association information and the first page snapshot in a first database;
[0011] When receiving a page conversion rate calculation request corresponding to the target page sent by the user, determining whether the conversion rate time period corresponding to the page conversion rate request is the first time period;
[0012] If the conversion rate time period corresponding to the page conversion rate request is the first time period, the associated information and the first page snapshot in the first database are obtained, the page conversion rate of the target page in the first time period is calculated based on the associated information, and the first page snapshot and the page conversion rate are displayed on the target page.
[0013] In the above method, optionally, storing the associated information and the first page snapshot in a first database includes:
[0014] Detecting whether the first database stores the last associated information and the last page snapshot before the first time period;
[0015] When the first database stores the last associated information and the last page snapshot before the first time period, the last associated information and the last page snapshot are transferred to a preset second time database, and the associated information and the first page snapshot are stored in the first database.
[0016] The above method may optionally further include:
[0017] If the conversion rate time period corresponding to the page conversion rate request is not the first time period, searching the second database for historical association information and historical page snapshots corresponding to the conversion rate time period;
[0018] Based on the historical association information, the historical page conversion rate of the target page within the conversion rate time period is calculated, and the historical page snapshot and the historical page conversion rate are displayed on the target page.
[0019] In the above method, optionally, the application of a preset Flink computing task pre-processes and associates the media asset information and resource information in the data queue to obtain associated information, including:
[0020] Apply the Flink computing task to initialize the media resource information to obtain initialized media resource information;
[0021] According to a preset data cleaning rule, the initialized media asset information and the resource information are cleaned to obtain cleaned media asset information and cleaned resource information;
[0022] The cleaned media asset information and the cleaned resource information are associated to obtain associated information.
[0023] In the above method, optionally, displaying the first page snapshot and the page conversion rate on the target page includes:
[0024] Displaying the first page snapshot on the target page;
[0025] Determining the page content currently displayed by the first page snapshot;
[0026] Using a preset recognition device to recognize the page content, determine the main content display area in the first page snapshot, and divide the target page into a main content display area and a non-main content display area;
[0027] Determining a preset display font size of the page conversion rate;
[0028] Based on the display font size, determining a display area size required to display the page conversion rate;
[0029] A sub-display area satisfying the size of the display area is determined in the non-main content display area, and the page conversion rate is displayed in the sub-display area.
[0030] A page conversion rate calculation device, comprising:
[0031] A generating unit, configured to generate a first page snapshot corresponding to the target page when the target page is updated in a first time period;
[0032] An acquisition unit, configured to acquire media asset information corresponding to the first page snapshot, and store the media asset information in a preset data queue;
[0033] A collection unit, configured to, when detecting that a user accesses a data resource in the target page via the target page, send access information of the user accessing the target page to a preset data collection server using a preset SDK device, and trigger the data collection server to collect resource information corresponding to the data resource based on the access information;
[0034] A processing unit, configured to send the resource information collected by the data collection server to the data queue, and apply a preset Flink computing task to pre-process and associate the media asset information and resource information in the data queue to obtain associated information;
[0035] A storage unit, used for storing the association information and the first page snapshot in a first database;
[0036] a determining unit, configured to, when receiving a page conversion rate calculation request corresponding to the target page sent by a user, determine whether a conversion rate time period corresponding to the page conversion rate request is the first time period;
[0037] A first calculation unit is used to obtain the associated information and the first page snapshot in the first database if the conversion rate time period corresponding to the page conversion rate request is the first time period, calculate the page conversion rate of the target page in the first time period based on the associated information, and display the first page snapshot and the page conversion rate on the target page.
[0038] In the above device, optionally, the storage unit comprises:
[0039] A detection subunit, configured to detect whether the first database stores the last associated information and the last page snapshot before the first time period;
[0040] The storage subunit is used to transfer the last associated information and the last page snapshot before the first time period to a preset second time database when the last associated information and the last page snapshot are stored in the first database, and store the associated information and the first page snapshot in the first database.
[0041] The above device may optionally further include:
[0042] a searching unit, configured to search the second database for historical association information and historical page snapshots corresponding to the conversion rate time period if the conversion rate time period corresponding to the page conversion rate request is not the first time period;
[0043] The second calculation unit is used to calculate the historical page conversion rate of the target page within the conversion rate time period based on the historical association information, and display the historical page snapshot and the historical page conversion rate on the target page.
[0044] In the above device, optionally, the processing unit includes:
[0045] A first processing subunit is used to apply the Flink computing task to initialize the media resource information to obtain initialized media resource information;
[0046] A second processing sub-unit is used to clean the initialized media asset information and the resource information according to a preset data cleaning rule to obtain cleaned media asset information and cleaned resource information;
[0047] The associating subunit is used to associate the cleaned media asset information with the cleaned resource information to obtain associated information.
[0048] In the above device, optionally, the first computing unit includes:
[0049] A first display subunit, configured to display the first page snapshot on the target page;
[0050] A first determining subunit, configured to determine the page content currently displayed by the first page snapshot;
[0051] an identification subunit, configured to identify the page content using a preset identification device, determine a main content display area in the first page snapshot, and divide the target page into a main content display area and a non-main content display area;
[0052] A second determining subunit, used to determine a preset display font size of the page conversion rate;
[0053] A third determining subunit, configured to determine a display area size required for displaying the page conversion rate based on the display font size;
[0054] The second display sub-unit is configured to determine a sub-display area that satisfies the size of the display area in the non-main content display area, and display the page conversion rate in the sub-display area.
[0055] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned page conversion rate calculation method.
[0056] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the above-mentioned page conversion rate calculation method.
[0057] Compared with the prior art, the present invention has the following advantages:
[0058] The present invention provides a method for calculating a page conversion rate, comprising: when a target page is updated in a first time period, generating a first page snapshot corresponding to the target page; obtaining media asset information corresponding to the first page snapshot, and storing the media asset information in a preset data queue; when it is detected that a user accesses a data resource in the target page via the target page, using a preset SDK device to send access information of the user accessing the target page to a preset data acquisition server, triggering the data acquisition server to collect resource information corresponding to the data resource based on the access information; sending the resource information collected by the data acquisition server to the data queue, and applying a preset Flink The computing task pre-processes the media information and resource information in the data queue and associates them to obtain associated information; the associated information and the first page snapshot are stored in the first database; when a page conversion rate calculation request corresponding to the target page sent by the user is received, it is determined whether the conversion rate time period corresponding to the page conversion rate request is the first time period; if the conversion rate time period corresponding to the page conversion rate request is the first time period, the associated information and the first page snapshot in the first database are obtained, and the page conversion rate of the target page in the first time period is calculated based on the associated information, and the first page snapshot and the page conversion rate are displayed on the target page. By applying the method provided by the present invention, the conversion rate of the page can be displayed in detail in the form of snapshots after each update of the page. For each change of the page, the impact of the update on the page access can be intuitively seen, which greatly improves operational efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] 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 will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0060] Figure 1 A method flow chart of a method for calculating a page conversion rate provided by an embodiment of the present invention;
[0061] Figure 2 A method example diagram of a method for calculating a page conversion rate provided by an embodiment of the present invention;
[0062] Figure 3 A flowchart of another method for calculating a page conversion rate provided by an embodiment of the present invention;
[0063] Figure 4 A device structure diagram of a device for calculating a page conversion rate provided by an embodiment of the present invention;
[0064] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] In this application, relational terms such as first and second, etc. are used only 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. 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 more restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0067] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.
[0068] The embodiment of the present invention provides a method for calculating page conversion rate. The method can be applied to various system platforms. The execution subject can be a processor of a computer terminal or various mobile devices. The method flow chart of the method is as follows: Figure 1 As shown, specifically including:
[0069] S101: When a target page is updated in a first time period, a first page snapshot corresponding to the target page is generated.
[0070] In the present invention, a snapshot is a complete and available copy of a specific data set, which contains a static image of the source data at the copy point. It can be a copy or replication of the data reproduction. After the media resource database is updated, the update information will be published to the message queue, and the snapshot changes can be obtained by subscribing to the message.
[0071] Among them, when the page is loaded or the video is played, the target page will be updated once.
[0072] S102: Acquire media resource information corresponding to the first page snapshot, and store the media resource information in a preset data queue.
[0073] The data queue may be a Kafka data queue, and the media information is sent to the data queue through database synchronization technology. The media information includes channel information page layout information and video information, wherein the channel information includes whether there is a new channel page online or offline; the page layout information includes the number of modules included in the page, the layout of each module, the number of videos displayed, etc.; the video information includes the video name, video introduction, playback address, etc.
[0074] S103: When it is detected that a user accesses the data resources in the target page via the target page, a preset SDK (Software Development Kit) device is used to send the access information of the user accessing the target page to a preset data acquisition server, triggering the data acquisition server to collect resource information corresponding to the data resources based on the access information.
[0075] The data resource may be a video.
[0076] Specifically, through the front-end SDK code technology, when the page is loaded or the video is played, the information is reported to the data collection server via HTTPS. After the data collection server receives the data, it is sent to the Kafka message queue in real time to access the data topic.
[0077] It should be noted that resource information includes the currently visited page, video information, source page, source location and other information.
[0078] S104: sending the resource information collected by the data collection server to the data queue, and applying a preset Flink computing task to pre-process and associate the media asset information and resource information in the data queue to obtain associated information.
[0079] Specifically, the Flink computing task is to perform real-time computing and data processing on the collected resource information and media information in the Flink framework to associate the processed information.
[0080] S105: Storing the associated information and the first page snapshot in a first database.
[0081] It should be noted that the first database is a Redis database.
[0082] S106: When receiving a page conversion rate calculation request corresponding to the target page sent by the user, determining whether the conversion rate time period corresponding to the page conversion rate request is the first time period.
[0083] In the present invention, a user's page conversion rate request can be received in real time at any time, and the conversion rate time period corresponding to the page conversion rate request is the page conversion rate of a target page in a certain time period that the user needs to query. It is determined whether the page conversion rate time period is a first time period; if the conversion rate time period corresponding to the page conversion rate request is the first time period, S107 is executed; if the conversion rate time period corresponding to the page conversion rate request is not the first time period, S108 is executed.
[0084] S107: Acquire the association information and the first page snapshot in the first database, calculate the page conversion rate of the target page in the first time period based on the association information, and display the first page snapshot and the page conversion rate on the target page.
[0085] It should be noted that, before the page is updated, the first database stores the first page snapshot and the associated information corresponding to the first time period.
[0086] S108: searching the second database for historical association information and historical page snapshots corresponding to the conversion rate time period; and calculating the historical page conversion rate of the target page within the conversion rate time period based on the historical association information.
[0087] The second database may specifically be a MySQL database.
[0088] It is understandable that the first database is used to store the latest updated snapshots and associated information, and the second database is used to store historical page snapshots and their corresponding associated information. If the conversion rate time period is not the first time period, the corresponding historical associated information and historical page snapshots are searched from the second database, and then the page conversion rate of the target page in the conversion rate time period is calculated and displayed.
[0089] Optionally, the first database is used to store the latest associated information and page snapshots. When the target page is updated, the first database and the second database need to be updated. The specific process is:
[0090] Detecting whether the first database stores the last associated information and the last page snapshot before the first time period;
[0091] When the first database stores the last association information and the last page snapshot before the first time period, the last association information and the last page snapshot are transferred to a preset second time database.
[0092] It is understandable that before storing the associated information and the first page snapshot in the first database, it is detected whether the first database contains the previous associated information and the previous page snapshot stored before the first time period. If so, it is necessary to transfer the stored data before storing the first page snapshot and the associated information in the first database; if not, the first page snapshot and the associated information are directly stored in the first database.
[0093] In the method provided by the embodiment of the present invention, when the target page is updated in the first time period, a first page snapshot is generated, and the corresponding media information is obtained and stored in the data queue. When it is detected that a user has accessed the target page, the data acquisition server is triggered by the SDK device to collect resource information. The Flink computing task is applied in the data queue to process the media information and the data information, and then the association is calculated, and the association information and the first page snapshot are stored in the first database. When a page conversion rate calculation request is received, it is determined whether the conversion rate time period is the first time period. If so, the first page snapshot and the associated information generated in the first time period are obtained from the first database; otherwise, the historical page snapshots and the historical associated information are obtained from the second database. The page conversion rate is calculated based on the obtained associated information, and the obtained page snapshot and the calculated page conversion rate are displayed on the target page.
[0094] By using the method provided by the embodiment of the present invention, the conversion rate of the page can be displayed in detail in the form of snapshots after each update of the page. For each change of the page, the impact of the update on the page access can be intuitively seen, greatly improving operational efficiency.
[0095] refer to Figure 2 Based on the method provided in the above embodiment, when the data resource is a video, the corresponding implementation process may include:
[0096] (1) Through the front-end SDK code technology, when a page is loaded or a video is played, information is reported to the data collection server via HTTPS, including the current access page, video information, source page, source location, etc. After the collection server receives the data, it sends it to the Kafka message queue access data topic in real time.
[0097] (2) Through database synchronization technology, when the page snapshot in the media database changes, the database change log containing the snapshot information is sent to the media data topic of the Kafka message queue in real time.
[0098] (3) Through Flink real-time computing, when a task starts, the media information is initialized once through the media database, and then updated by consuming the media data topic. The data in the consumer access data topic is associated with the media information through information such as page ID, video ID, source ID, and source location. After cleaning and calculation, the results are saved in redis by minute dimension.
[0099] (4) When a new snapshot is generated, the old snapshot becomes invalid and the data is no longer updated. The data statistics are summarized and saved in the relational database MySQL, and the corresponding historical data in Redis is cleared.
[0100] (5) When querying the latest snapshot data, obtain the real-time data through redis and then summarize the results. When querying the old snapshot data that has expired, directly query the corresponding data in MySQL.
[0101] (6) Through the front-end page technology, restore the media snapshot JSON to the front-end page. According to the effective time of the snapshot, match the data in redis or database, and then bind the data to the front-end page through js to generate a web page containing video conversion information.
[0102] The conversion rate calculation is explained in the following example, taking the home page as an example:
[0103] 1) There are 11 links on the homepage, including 10 videos, among which video a has a link, which appears in the top flash image and today's hot module.
[0104] 2) Through calculation, the current homepage’s PV is found to be 1000.
[0105] 3) Through calculation, it is found that the current PV of video a is 400, of which the PV of the source page being the homepage is 300, the PV of the location information being the flash image is 200, and the PV of the location being today's hottest is 100.
[0106] 4) The PV conversion rate in the video flash image a is PV / PV of the homepage itself = 200 / 1000 = 20%, and the PV conversion rate in today's hot module is 10%.
[0107] In the method provided by the embodiment of the present invention, based on the content of S104 above, the Flink computing task preset by the application pre-processes and associates the media asset information and resource information in the data queue to obtain the associated information, including:
[0108] Apply the Flink computing task to initialize the media resource information to obtain initialized media resource information;
[0109] According to a preset data cleaning rule, the initialized media asset information and the resource information are cleaned to obtain cleaned media asset information and cleaned resource information;
[0110] The cleaned media asset information and the cleaned resource information are associated to obtain associated information.
[0111] It can be understood that the Flink computing task is mainly used to initialize the media asset information. After the initialization processing, the media asset information and resource information are cleaned according to the cleaning rules, and the cleaned data is associated to obtain associated data.
[0112] In the method provided by the embodiment of the present invention, based on the content of S107, the process of displaying the first page snapshot and the page conversion rate on the target page is as follows: Figure 3 As shown, including:
[0113] S301: Displaying the first page snapshot on the target page.
[0114] Specifically, the first page snapshot is first displayed on the target page.
[0115] S302: Determine the page content currently displayed by the first page snapshot.
[0116] S303: Using a preset recognition device to recognize the page content, determine a main content display area in the first page snapshot, and divide the target page into a main content display area and a non-main content display area.
[0117] The display content of the main content display area includes characters, directories, texts, etc. The display content of the non-main content display area includes the blank part and background part of the page.
[0118] S304: Determine a preset display font size of the page conversion rate.
[0119] It should be noted that the font size can be set according to the page size of the target page.
[0120] S305: Determine a display area size required for displaying the page conversion rate based on the display font size.
[0121] S306: Determine a sub-display area that satisfies the size of the display area in the non-main content display area, and display the page conversion rate in the sub-display area.
[0122] In the method provided by the embodiment of the present invention, after the first page snapshot is displayed in the target page, the page content in the page snapshot is determined. To avoid the page conversion rate blocking the page content, an identification device is used to identify the important content part in the page content, thereby dividing the main content display area and the non-main content display area in the first page snapshot. The size of the display area required to display the page conversion rate is determined by the preset display font size, and a sub-display area that meets the display area size is selected in the non-main content area, and the page conversion rate is displayed in the sub-display area.
[0123] By applying the method provided by the present invention, a sub-display area for displaying the page conversion rate is reasonably selected to avoid the page conversion rate obscuring the page content, thereby improving the user experience and facilitating the user to make relevant records based on the page content and the page conversion rate.
[0124] The specific implementation processes and derivative methods of the above-mentioned embodiments are all within the protection scope of the present invention.
[0125] and Figure 1 Corresponding to the method described above, the embodiment of the present invention further provides a page conversion rate calculation device for calculating Figure 1 In order to implement the method in the embodiment of the present invention, the page conversion rate calculation device provided by the embodiment of the present invention can be applied to a computer terminal or various mobile devices, and its structural diagram is as follows: Figure 4 As shown, specifically including:
[0126] A generating unit 401 is configured to generate a first page snapshot corresponding to the target page when the target page is updated in a first time period;
[0127] The acquisition unit 402 is used to acquire the media asset information corresponding to the first page snapshot, and store the media asset information in a preset data queue;
[0128] The collection unit 403 is used to, when detecting that a user accesses a data resource in the target page via the target page, send access information of the user accessing the target page to a preset data collection server using a preset SDK device, and trigger the data collection server to collect resource information corresponding to the data resource based on the access information;
[0129] The processing unit 404 is used to send the resource information collected by the data collection server to the data queue, and apply a preset Flink computing task to pre-process and associate the media asset information and resource information in the data queue to obtain associated information;
[0130] The storage unit 405 is used to store the association information and the first page snapshot in a first database;
[0131] The determining unit 406 is configured to, when receiving a page conversion rate calculation request corresponding to the target page sent by the user, determine whether the conversion rate time period corresponding to the page conversion rate request is the first time period;
[0132] The first calculation unit 407 is used to obtain the associated information and the first page snapshot in the first database if the conversion rate time period corresponding to the page conversion rate request is the first time period, calculate the page conversion rate of the target page in the first time period based on the associated information, and display the first page snapshot and the page conversion rate on the target page.
[0133] In the device provided by the embodiment of the present invention, when the target page is updated in the first time period, a first page snapshot is generated, and the corresponding media information is obtained and stored in the data queue. When it is detected that a user has accessed the target page, the data acquisition server is triggered by the SDK device to collect resource information. The Flink computing task media information and data information are processed in the data queue and then the association is calculated, and the association information and the first page snapshot are stored in the first database. When a page conversion rate calculation request is received, it is determined whether the conversion rate time period is the first time period. If so, the first page snapshot and associated information generated in the first time period are obtained from the first database; otherwise, the historical page snapshots and historical associated information are obtained from the second database. The page conversion rate is calculated based on the obtained associated information, and the obtained page snapshot and the calculated page conversion rate are displayed on the target page.
[0134] By using the device provided by the embodiment of the present invention, the conversion rate of the page can be displayed in detail in the form of snapshots after each update of the page. For each change of the page, the impact of the update on the page access can be intuitively seen, greatly improving operational efficiency.
[0135] In the device provided by the embodiment of the present invention, the storage unit includes:
[0136] A detection subunit, configured to detect whether the first database stores the last associated information and the last page snapshot before the first time period;
[0137] The storage subunit is used to transfer the last associated information and the last page snapshot before the first time period to a preset second time database when the last associated information and the last page snapshot are stored in the first database, and store the associated information and the first page snapshot in the first database.
[0138] The device provided in the embodiment of the present invention further includes:
[0139] a searching unit, configured to search the second database for historical association information and historical page snapshots corresponding to the conversion rate time period if the conversion rate time period corresponding to the page conversion rate request is not the first time period;
[0140] The second calculation unit is used to calculate the historical page conversion rate of the target page within the conversion rate time period based on the historical association information, and display the historical page snapshot and the historical page conversion rate on the target page.
[0141] In the device provided by the embodiment of the present invention, the processing unit includes:
[0142] A first processing subunit is used to apply the Flink computing task to initialize the media resource information to obtain initialized media resource information;
[0143] A second processing sub-unit is used to clean the initialized media asset information and the resource information according to a preset data cleaning rule to obtain cleaned media asset information and cleaned resource information;
[0144] The associating subunit is used to associate the cleaned media asset information with the cleaned resource information to obtain associated information.
[0145] In the device provided by the embodiment of the present invention, the first computing unit includes:
[0146] A first display subunit, configured to display the first page snapshot on the target page;
[0147] A first determining subunit, configured to determine the page content currently displayed by the first page snapshot;
[0148] an identification subunit, configured to identify the page content using a preset identification device, determine a main content display area in the first page snapshot, and divide the target page into a main content display area and a non-main content display area;
[0149] A second determining subunit is used to determine a preset display font size of the page conversion rate;
[0150] A third determining subunit, configured to determine a display area size required for displaying the page conversion rate based on the display font size;
[0151] The second display sub-unit is configured to determine a sub-display area that satisfies the size of the display area in the non-main content display area, and display the page conversion rate in the sub-display area.
[0152] The specific working process of each unit and sub-unit in the page conversion rate calculation device disclosed in the above embodiment of the present invention can refer to the corresponding content in the page conversion rate calculation method disclosed in the above embodiment of the present invention, and will not be repeated here.
[0153] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned page conversion rate calculation method.
[0154] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 5 As shown, it specifically includes a memory 501 and one or more instructions 502, wherein the one or more instructions 502 are stored in the memory 501 and are configured to be executed by one or more processors 503 to perform the following operations:
[0155] When the target page is updated in the first time period, generating a first page snapshot corresponding to the target page;
[0156] Acquire media asset information corresponding to the first page snapshot, and store the media asset information in a preset data queue;
[0157] When it is detected that a user accesses a data resource in the target page via the target page, a preset SDK device is applied to send access information of the user accessing the target page to a preset data acquisition server, triggering the data acquisition server to collect resource information corresponding to the data resource based on the access information;
[0158] The resource information collected by the data collection server is sent to the data queue, and the media asset information and resource information in the data queue are pre-processed and associated by applying a preset Flink computing task to obtain associated information;
[0159] storing the association information and the first page snapshot in a first database;
[0160] When receiving a page conversion rate calculation request corresponding to the target page sent by the user, determining whether the conversion rate time period corresponding to the page conversion rate request is the first time period;
[0161] If the conversion rate time period corresponding to the page conversion rate request is the first time period, the associated information and the first page snapshot in the first database are obtained, the page conversion rate of the target page in the first time period is calculated based on the associated information, and the first page snapshot and the page conversion rate are displayed on the target page.
[0162] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0163] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, computer software, or a combination of both.
[0164] In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0165] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for calculating page conversion rate, characterized in that: include: When the target page is updated in the first time period, generating a first page snapshot corresponding to the target page; Acquire media asset information corresponding to the first page snapshot, and store the media asset information in a preset data queue; When it is detected that a user accesses a data resource in the target page via the target page, a preset SDK device is applied to send access information of the user accessing the target page to a preset data acquisition server, triggering the data acquisition server to collect resource information corresponding to the data resource based on the access information; The resource information collected by the data collection server is sent to the data queue, and the media asset information and resource information in the data queue are pre-processed and associated by applying a preset Flink computing task to obtain associated information; storing the association information and the first page snapshot in a first database; When receiving a page conversion rate calculation request corresponding to the target page sent by the user, determining whether the conversion rate time period corresponding to the page conversion rate request is the first time period; If the conversion rate time period corresponding to the page conversion rate request is the first time period, the associated information and the first page snapshot in the first database are obtained, the page conversion rate of the target page in the first time period is calculated based on the associated information, and the first page snapshot and the page conversion rate are displayed on the target page.
2. The method according to claim 1, characterized in that The storing the association information and the first page snapshot in a first database includes: Detecting whether the first database stores the last associated information and the last page snapshot before the first time period; When the first database stores the last associated information and the last page snapshot before the first time period, the last associated information and the last page snapshot are transferred to a preset second time database, and the associated information and the first page snapshot are stored in the first database.
3. The method according to claim 2, characterized in that Also includes: If the conversion rate time period corresponding to the page conversion rate request is not the first time period, searching the second time database for historical association information and historical page snapshots corresponding to the conversion rate time period; Based on the historical association information, the historical page conversion rate of the target page within the conversion rate time period is calculated, and the historical page snapshot and the historical page conversion rate are displayed on the target page.
4. The method according to claim 1, characterized in that: The Flink computing task preset by the application pre-processes and associates the media asset information and resource information in the data queue to obtain associated information, including: Apply the Flink computing task to initialize the media resource information to obtain initialized media resource information; According to a preset data cleaning rule, the initialized media asset information and the resource information are cleaned to obtain cleaned media asset information and cleaned resource information; The cleaned media asset information and the cleaned resource information are associated to obtain associated information.
5. The method according to claim 1, characterized in that The displaying the first page snapshot and the page conversion rate on the target page includes: Displaying the first page snapshot on the target page; Determining the page content currently displayed by the first page snapshot; Using a preset recognition device to recognize the page content, determine the main content display area in the first page snapshot, and divide the target page into a main content display area and a non-main content display area; Determining a preset display font size of the page conversion rate; Based on the display font size, determining a display area size required to display the page conversion rate; A sub-display area satisfying the size of the display area is determined in the non-main content display area, and the page conversion rate is displayed in the sub-display area.
6. A device for calculating page conversion rate, characterized in that: include: A generating unit, configured to generate a first page snapshot corresponding to the target page when the target page is updated in a first time period; An acquisition unit, configured to acquire media asset information corresponding to the first page snapshot, and store the media asset information in a preset data queue; A collection unit, configured to, when detecting that a user accesses a data resource in the target page via the target page, send access information of the user accessing the target page to a preset data collection server using a preset SDK device, and trigger the data collection server to collect resource information corresponding to the data resource based on the access information; A processing unit, configured to send the resource information collected by the data collection server to the data queue, and apply a preset Flink computing task to pre-process and associate the media asset information and resource information in the data queue to obtain associated information; A storage unit, used for storing the association information and the first page snapshot in a first database; a determining unit, configured to, when receiving a page conversion rate calculation request corresponding to the target page sent by a user, determine whether a conversion rate time period corresponding to the page conversion rate request is the first time period; A first calculation unit is used to obtain the associated information and the first page snapshot in the first database if the conversion rate time period corresponding to the page conversion rate request is the first time period, calculate the page conversion rate of the target page in the first time period based on the associated information, and display the first page snapshot and the page conversion rate on the target page.
7. The device according to claim 6, characterized in that The storage unit comprises: A detection subunit, configured to detect whether the first database stores the last associated information and the last page snapshot before the first time period; The storage subunit is used to transfer the last associated information and the last page snapshot before the first time period to a preset second time database when the last associated information and the last page snapshot are stored in the first database, and store the associated information and the first page snapshot in the first database.
8. The device according to claim 7, characterized in that Also includes: a search unit, configured to search the second time database for historical association information and historical page snapshots corresponding to the conversion rate time period if the conversion rate time period corresponding to the page conversion rate request is not the first time period; The second calculation unit is used to calculate the historical page conversion rate of the target page within the conversion rate time period based on the historical association information, and display the historical page snapshot and the historical page conversion rate on the target page.
9. The device according to claim 6, characterized in that The processing unit comprises: A first processing subunit is used to apply the Flink computing task to initialize the media resource information to obtain initialized media resource information; A second processing sub-unit is used to clean the initialized media asset information and the resource information according to a preset data cleaning rule to obtain cleaned media asset information and cleaned resource information; The associating subunit is used to associate the cleaned media asset information with the cleaned resource information to obtain associated information.
10. The device according to claim 6, characterized in that The first computing unit comprises: A first display subunit, configured to display the first page snapshot on the target page; A first determining subunit, configured to determine the page content currently displayed by the first page snapshot; an identification subunit, configured to identify the page content using a preset identification device, determine a main content display area in the first page snapshot, and divide the target page into a main content display area and a non-main content display area; A second determining subunit, used to determine a preset display font size of the page conversion rate; A third determining subunit, configured to determine a display area size required for displaying the page conversion rate based on the display font size; The second display sub-unit is configured to determine a sub-display area that satisfies the size of the display area in the non-main content display area, and display the page conversion rate in the sub-display area.
Citation Information
Patent Citations
Page resource updating method and device, electronic equipment, server and storage medium
CN111427648A
Page adjusting method and device
CN111488539A