Exposure method for reusable list data in APP

Through a unified list data exposure method, the problem of accuracy and versatility of list data exposure in APP in various scenarios is solved, accurate exposure statistics in different layout forms are achieved, the development process is simplified and the cost is reduced.

CN118778952APending Publication Date: 2024-10-15BEIJING CHESHANGHUI SOFTWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410925216.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The existing technology cannot implement a reusable list data exposure method in the APP, especially in non-linear layouts such as waterfalls and horizontal sliding list scenarios, resulting in large exposure statistical logic limitations, low versatility, and inability to adapt to multiple lists. form.

Method used

A unified list data exposure method is designed. Through a unified list item exposure detection entrance, hierarchical scene detection, monitoring of global redrawing, scrolling and focus changes, combined with Set collection deduplication, it ensures the accuracy and reusability of exposure data. , suitable for vertical and horizontal lists, including waterfall flow and other layout forms.

Benefits of technology

It achieves the accuracy and consistency of list item exposure data in different scenarios, simplifies the control View exposure detection complexity, improves development efficiency, reduces development costs, adapts to multiple list forms, and ensures the availability of exposure data. Reusability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778952A_ABST
    Figure CN118778952A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of list data exposure, and discloses a reusable list data exposure method in an APP, and the method comprises the steps: S1, unifying a list item exposure detection entrance; s2, layering a list exposure scene; s3, performing exposure detection on the list item; s4, performing exposure detection on the control Vi ew; and S5, exposing and de-duplicating the list item. According to the technical scheme, various scenes and factors influencing the exposure accuracy of the control are considered, the exposure process and algorithm of the control Vi ew are uniformly packaged, the consistency and accuracy of data exposure are ensured, a uniform detection method and entry for visible exposure of the control Vi ew and the list item are provided, the influence of different scenes is shielded, and the detection efficiency is improved. All exposures are expressed through a callback method, the complexity of control Vi ew exposure detection is greatly simplified, different list forms including a transverse list, a longitudinal list, a waterfall flow list and the like are adapted for visible exposure of list data items, and exposure is performed through uniform callback.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of list data exposure, and specifically relates to a reusable list data exposure method in an APP. Background Art

[0002] Data tracking in apps is a data collection method that is mainly used to record and collect the operation behaviors of end users when using mobile apps, conduct statistics and analysis on user behaviors, understand user usage habits and product traffic trends, and form feedback from tracking data analysis, which can also be used for product function iteration, improve product experience, and create products that meet the needs of most users. Data tracking is mainly divided into three types: exposure, clicks, and page PV.

[0003] Page exposure is to count whether the local area of ​​the page in the App is effectively browsed by users, such as the banner position of the Taobao app, the advertising resource position in the information flow of the Jinr Toutiao app, etc. Exposure is usually used together with click statistics for conversion funnel analysis of user behavior, that is, click-through conversion rate. To measure the click-through rate of each area of ​​the page or a row of information in the list information flow, it is necessary to know how many users have seen each area. Click-through rate = number of clicks / number of exposures x 100%.

[0004] Exposure statistics logic: Based on the user's operation on the app, a partial area of ​​the page changes from invisible to visible, which is counted as one exposure. For example, for a partial area of ​​a row in a list, if the user slides the page up and down, the row slides off the screen and then slides back on the screen, which is counted as one exposure.

[0005] Exposure statistics standard: How much of the local area is visible is considered an exposure, and there is no fixed standard. Generally speaking, in terms of the size of the visible area, if more than 1 / 4 or 1 / 2 of the area is visible, it can be considered as a visible one. In terms of visible time, it can be considered as a visible one from the beginning to the number of seconds it stays, which can be formulated according to different products. Therefore, this requires that the technical solution for exposure needs to be flexible and reusable.

[0006] In Android apps, the information stream list is generally implemented through the list control ReceiverView. The disadvantages of this technical solution are as follows:

[0007] (1) One of the prerequisites of this solution is that the list items use the linear layout manager LinearLayoutManager, that is, each row of the list has only one column. If the list items are laid out in a grid layout manager with one row and multiple columns, or in a waterfall layout, each list item is not aligned and the layout is staggered, then this solution will not work.

[0008] (2) The second premise of this solution is that the list is slid vertically, so only the height percentage needs to be calculated. If the list is horizontal, this solution is not suitable.

[0009] Through the above analysis, it can be seen that the existing technical solutions have great limitations and low versatility. They cannot be extended to list layout forms such as waterfall flow and are not reusable. Therefore, it is necessary to design a reusable list data exposure method in APP. Summary of the invention

[0010] The purpose of the present invention is to provide a reusable list data exposure method in an APP to solve the problems raised in the above background technology.

[0011] In order to achieve the above object, the present invention provides the following technical solution: a reusable list data exposure method in an APP, the list data exposure method comprising:

[0012] S1, unified list item exposure detection entry; obtain the exposure timing and results of list items through consistent exposure detection callback, making the exposure of list items simple and accurate;

[0013] S2, list exposure scenario stratification; list item exposure scenarios are divided into application layer, list exposure detection layer, and control View exposure detection layer; list item exposure is divided into list scrolling exposure and list overall exposure; list scrolling exposure is detected by list scrolling monitoring, and list overall exposure is detected by general control exposure in the third layer of control View exposure detection layer;

[0014] S3, list item exposure detection: detect the visibility of list items in two scenarios: list scrolling exposure and control View exposure;

[0015] S4, exposure detection of the control View; the control View exposure detection is divided into three scene change detections: monitoring the global redraw timing, monitoring the global scroll timing and monitoring the global focus change timing; after the callback of the above three scene changes, the visibility of the control View is detected, and the visibility of the control View is called back to the control View exposure detection monitoring of the upper layer. In the callback of the visibility of the control View, the visibility of the list data item is detected;

[0016] S5, list item exposure and deduplication; through the Set collection of index index--Set Set <index>It is a Set collection of list item indexes. The indices in this collection cannot be repeated. When a list item is detected to be visible, the index indices are added to the Set. In the collection, but repeatedly adding a visible index is invalid; when the list item is not visible, the index index is removed from the Set Remove from the collection; this ensures that list items are not exposed repeatedly.

[0017] Preferably, the method for detecting the visibility of the list item in step S3 is:

[0018] (1) Traverse all child controls of the list Recy l erView;

[0019] (2) Obtain the visibility of each child control (through a system call), calculate the area of ​​the child control's visible area rectangle, and compare it with the visible area of ​​the original size.

[0020] Preferably, the visibility of the common control View in S4 is affected by many factors, the main influencing factors are as follows:

[0021] (1) Press the Home button and the app will go to the background and become invisible. Return to the foreground and it will become visible again.

[0022] (2) Press the power button;

[0023] (3) The page scrolls and controls slide off and on the screen;

[0024] (4) The control is blocked by a pop-up window;

[0025] (5) The control is blocked by the input method;

[0026] (6) Actively set the visibility and invisibility of controls.

[0027] Preferably, the list item exposure scenarios in S2 are divided into two levels of detection: list scrolling exposure scenario and control View exposure scenario, which covers all factors and scenarios that affect exposure and ensures the reusability and accuracy of exposure data.

[0028] Preferably, the thresholds of visibility detection in S3 and S4 are configured through the application layer.

[0029] Preferably, the list scroll monitoring in S2 corresponds to a list scrolling scenario, and after monitoring the scrolling state, the visibility of the list data items is detected.

[0030] The beneficial effects of the present invention are as follows:

[0031] 1. The present invention solves the problem of accurate exposure data; this technical solution takes into account a variety of scenarios and factors that may affect the accuracy of control exposure, and uniformly encapsulates the control View exposure process and algorithm to ensure the consistency and accuracy of data exposure.

[0032] 2. This invention provides a unified detection method and entry for the visible exposure of control View and list items, shielding the influence of different scenes. All exposures are expressed through a callback method, greatly simplifying the complexity of control View exposure detection. It solves the problem that the exposure of control View is greatly affected by the scene, and unifies the problem that the exposure methods of controls in different scenes are different.

[0033] 3. The present invention is adapted to different list formats for visibility exposure of list data items, including horizontal and vertical lists, waterfall lists, etc., and is exposed through a unified callback. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flow chart of the scheme of the present invention;

[0035] Figure 2 This is the application layer flow chart of the present invention;

[0036] Figure 3 The present invention lists the exposure scene change detection flow chart;

[0037] Figure 4 This is a flow chart of the View exposure detection of the control unit of the present invention. DETAILED DESCRIPTION

[0038] 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.

[0039] like Figures 1 to 4 As shown, an embodiment of the present invention provides a reusable list data exposure method in an APP, and the list data exposure method includes:

[0040] S1, unified list item exposure detection entry; obtain the exposure timing and results of list items through consistent exposure detection callback, making the exposure of list items simple and accurate;

[0041] S2, list exposure scenario stratification; list item exposure scenarios are divided into application layer, list exposure detection layer, and control View exposure detection layer; the application layer is the user, and by setting this monitoring, the exposure timing and which list items to expose can be obtained; the exposure of list items is divided into list scrolling exposure and list overall exposure; list scrolling exposure is detected by list scrolling monitoring, and the overall list exposure is detected by the general control exposure of the third layer of control View exposure detection layer;

[0042] Through steps S1 and S2, the calling level of the list item exposure plan is clear, the application layer can easily obtain the exposure timing and exposure results, and all factors and scenarios that affect the exposure of the list items are covered.

[0043] S3, list item exposure detection: detect the visibility of list items in two scenarios: list scrolling exposure and control View exposure;

[0044] S4, exposure detection of the control View; the control View exposure detection is divided into three scene change detections: monitoring the global redraw timing, monitoring the global scroll timing and monitoring the global focus change timing; after the callback of the above three scene changes, the visibility of the control View is detected, and the visibility of the control View is called back to the control View exposure detection monitoring of the upper layer. In the callback of the visibility of the control View, the visibility of the list data item is detected;

[0045] Through steps S3 and S4, all exposure scenarios of list sliding and general control View are tested, ensuring the universality and reusability of the exposure technical solution, which improves the development efficiency of exposure tracking and saves the development cost of exposure tracking.

[0046] S5, list item exposure and deduplication; through the Set collection of index index--Set Set <index>It is a Set collection of list item indexes. The indices in this collection cannot be repeated. When a list item is detected to be visible, the index indices are added to the Set. In the collection, but repeatedly adding a visible index is invalid; when the list item is not visible, the index index is removed from the Set Remove from the collection; this ensures that list items are not exposed repeatedly.

[0047] Through step S5, repeated exposure in scrolling and other scenarios is removed, thereby ensuring the accuracy of the list item exposure data.

[0048] The method for detecting the visibility of the list item in step S3 is:

[0049] (1) Traverse all child controls of the list Recy l erView;

[0050] (2) Obtain the visibility of each child control (through a system call), calculate the area of ​​the child control's visible area rectangle, and compare it with the visible area of ​​the original size.

[0051] Set a flexible and configurable threshold percentage of the visible area. If the child control is visible and the visible area rectangle is larger than the original size area * percent, the list item child control can be considered to be exposed. The exposure method is called back to inform the application layer of the view and index of the list item control that needs to be exposed.

[0052] The existing solution of obtaining the index of the list item displayed on the screen through the layout manager Li nearLayoutManager is abandoned. Instead, the visibility of the list item is detected by traversing all child controls of the list ReceiverView, obtaining the visibility of each child control, comparing the rectangular area of ​​the visible area of ​​the child control with the original size area, and setting a certain visible threshold.

[0053] Among them, the visibility of the common control View in S4 is affected by many factors, the main influencing factors are as follows:

[0054] (1) Press the Home button and the app will go to the background and become invisible. Return to the foreground and it will become visible again.

[0055] (2) Press the power button;

[0056] (3) The page scrolls and controls slide off and on the screen;

[0057] (4) The control is blocked by a pop-up window;

[0058] (5) The control is blocked by the input method;

[0059] (6) Actively set the visibility and invisibility of controls.

[0060] The list item exposure scenarios in S2 are divided into two levels of detection: list scrolling exposure scenario and control View exposure scenario, which covers all factors and scenarios that affect exposure and ensures the reusability and accuracy of exposure data.

[0061] The thresholds for visibility detection in S3 and S4 are both configured through the application layer.

[0062] The list scroll monitoring in S2 corresponds to the list scrolling scenario, and after monitoring the scrolling state, the visibility of the list data items is detected.

[0063] 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.

[0064] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents. < / index> < / index>

Claims

1. A reusable list data exposure method in APP, Features: The list data exposure methods include: S1, unified list item exposure detection entry; obtain the exposure timing and results of list items through consistent exposure detection callback, making the exposure of list items simple and accurate; S2, list exposure scene stratification; List item exposure scenarios are divided into application layer, list exposure detection layer, and control View exposure detection layer; list item exposure is divided into list scrolling exposure and list overall exposure; The exposure of list scrolling is detected through list scrolling monitoring, and the exposure of the entire list is detected through the common control exposure detection of the third-layer control View exposure detection layer; S3, list item exposure detection: detect the visibility of list items in two scenarios: list scrolling exposure and control View exposure; S4, exposure detection of the control View; the control View exposure detection is divided into three types of scene change detection: monitoring the global redrawing timing, monitoring the global scrolling timing, and monitoring the global focus change timing; after the callback of the above three scene changes, the visibility of the control View is detected, and the visibility of the control View is called back to the control View exposure detection monitoring of the upper layer. In the callback of the visibility of the control View, the visibility of the list data item is detected; S5, list item exposure and deduplication; through the Set collection of index index--Set <index>Set <index>It is a Set collection of list item indexes. The index in this collection cannot be repeated. When a list item is detected to be visible, the index is added to the Set. <index>In the collection, repeated addition of visible index is invalid; when the list item is not visible, the index is removed from the Set <index> Remove from the collection; this ensures that list items are not exposed repeatedly.< / index> < / index> < / index> < / index> 2. A method for exposing reusable list data in an APP according to claim 1, Features: The method for detecting the visibility of the list item in step S3 is: (1) Traverse all child controls of the list RecylerView; (2) Obtain the visibility of each child control (through a system call), calculate the area of ​​the child control's visible area rectangle, and compare it with the visible area of ​​the original size.

3. A method for exposing reusable list data in an APP according to claim 1, Features: The visibility of the common control View in S4 is affected by many factors, the main influencing factors are as follows: (1) Press the Home button and the app will go to the background and become invisible. Return to the foreground and it will become visible again. (2) Press the power button; (3) The page scrolls and controls slide off and on the screen; (4) The control is blocked by a pop-up window; (5) The control is blocked by the input method; (6) Actively set the visibility and invisibility of controls.

4. A method for exposing reusable list data in an APP according to claim 1, Features: The list item exposure scenarios in S2 are divided into two levels of detection: list scrolling exposure scenario and control View exposure scenario, which covers all factors and scenarios that affect exposure and ensures the reusability and accuracy of exposure data.

5. A method for exposing reusable list data in an APP according to claim 1, Features: The thresholds for visibility detection in S3 and S4 are configured through the application layer.

6. A method for exposing reusable list data in an APP according to claim 1, Features: The list scroll monitoring in S2 corresponds to the list scrolling scenario. After the scrolling state is monitored, the visibility of the list data items is detected.