CN115357829A - Method and device for exposing and burying point of page control and storage medium - Google Patents

Method and device for exposing and burying point of page control and storage medium Download PDF

Info

Publication number
CN115357829A
CN115357829A CN202210910214.7A CN202210910214A CN115357829A CN 115357829 A CN115357829 A CN 115357829A CN 202210910214 A CN202210910214 A CN 202210910214A CN 115357829 A CN115357829 A CN 115357829A
Authority
CN
China
Prior art keywords
exposure
control
page
target control
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210910214.7A
Other languages
Chinese (zh)
Inventor
李旭
赵成峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Chuangxin Journey Network Technology Co ltd
Original Assignee
Beijing Chuangxin Journey Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Chuangxin Journey Network Technology Co ltd filed Critical Beijing Chuangxin Journey Network Technology Co ltd
Priority to CN202210910214.7A priority Critical patent/CN115357829A/en
Publication of CN115357829A publication Critical patent/CN115357829A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an exposure and point burying method, device and storage medium for a page control, relates to the technical field of computers, and is used for reducing exposure data of useless controls and improving the efficiency of background screening and finishing the exposure data, and the method comprises the following steps: determining a target control in an exposure state in a page; acquiring a registration control corresponding to the target control in an exposure manager, and storing exposure data of the target control in the registration control; and calling a callback function associated with the registration control, and uploading the exposure data of the target control to a server based on the callback function.

Description

Method and device for exposing and burying point of page control and storage medium
Technical Field
The present disclosure relates generally to the field of computer technologies, and in particular, to a method and an apparatus for exposing and burying a dot of a page control, and a storage medium.
Background
The page control refers to a part of visible regions in the mobile terminal page, such as buttons, pictures, characters and the like; exposure means that the control is shown on the screen in a state visible to the user. The exposure and embedding point is to report the event that the control is in the exposure state and the related business related data to the background server, and a developer evaluates whether the content displayed by the page has enough attraction to the user or not, so that the content displayed by the page is continuously improved, and better service is provided for the user.
The page control exposure and dot burying methods in the related art generally have two types: buried-point-free exposure and manual buried-point exposure. However, the amount of data reported by exposure without the buried point is huge, the background screening process is very complex, and related service data are difficult to sort and clarify; manual exposure of the buried points requires a page developer to realize one-time exposure detection logic for each control, so that the development efficiency is low, and the service iteration efficiency is influenced.
Disclosure of Invention
In order to solve the above problems in the prior art, the present disclosure provides an exposure and dot burying method and apparatus for a page control, and a storage medium.
A first aspect of the present disclosure provides a method for exposing and burying dots of a page control, where the method includes: determining a target control in an exposure state in a page; acquiring a registration control corresponding to the target control in an exposure manager, and storing exposure data of the target control in the registration control; and calling a callback function associated with the registered control, and uploading the exposure data of the target control to a server based on the callback function.
In one embodiment, the determining the target control in the exposure state in the page includes: determining a target control in an exposure state in a page based on a hook function and visibility attribute information of the control in the page; the hook function is associated with a registration control included in the exposure manager and is used for monitoring a control in which visibility attribute information in a page changes.
In another embodiment, the attribute information at least includes position coordinates, hidden information, and transparency of the control; the determining the target control in the exposure state in the page based on the hook function and the visibility attribute information of the control in the page includes: in response to the existence of a control with changed visibility attribute information in the page control, triggering the hook function to determine a target control in an exposure state based on the visibility attribute information of the control in the page; and if the target control with the position coordinate positioned in the coordinate range of the screen, the control in the non-hidden state and the control transparency larger than the preset threshold is determined to exist based on the hook function, determining the target control as the target control in the exposure state.
In yet another embodiment, the method further comprises: determining whether the target control is in an exposure state for the first time; and if the target control is in the exposure state for the first time, acquiring and storing the exposure data of the target control.
In yet another embodiment, the method further comprises: and if the target control is not in the exposure state for the first time, ignoring the exposure data of the target control.
In another embodiment, the uploading the exposure data of the target control to a server based on the callback function includes: sending a notification message based on the callback function, wherein the notification message is used for notifying a page developer to report exposure data; and acquiring exposure data input by the page developer based on the notification message, and reporting the exposure data to the server.
In yet another embodiment, the exposure manager is pre-created as follows: in the page development process, adding configuration parameters in a software development kit, wherein the configuration parameters are used for configuring the process of exposing and burying points; and creating a registration control list and generating an exposure manager, wherein the registration control list is used for storing the control needing to monitor the exposure buried point and the corresponding exposure data.
A second aspect of the present disclosure provides an exposure and dot burying device for a page control, the device including: the determining module is used for determining a target control in an exposure state in a page; the storage module is used for acquiring a registration control corresponding to the target control in an exposure manager and storing the exposure data of the target control in the registration control; and the processing module is used for calling a callback function associated with the registered control and uploading the exposure data of the target control to a server based on the callback function.
In an embodiment, the determining module is specifically configured to determine a target control in an exposure state in a page based on a hook function and visibility attribute information of a control in the page; the hook function is associated with a registration control included in the exposure manager and is used for monitoring a control in which visibility attribute information in a page changes.
In another embodiment, the attribute information at least includes position coordinates, hidden information, and transparency of the control; the determining module is specifically configured to trigger the hook function to determine a target control in an exposure state based on visibility attribute information of a control in a page in response to the presence of the control with changed visibility attribute information in the page control; and if the target control with the position coordinate positioned in the coordinate range of the screen, the control in the non-hidden state and the control transparency larger than the preset threshold is determined to exist based on the hook function, determining the target control as the target control in the exposure state.
In another embodiment, the determining module is further configured to determine whether the target control is in an exposure state for the first time; and the storage module is further used for acquiring and storing the exposure data of the target control if the target control is in an exposure state for the first time.
In another embodiment, the processing module is further configured to ignore exposure data of the target control if the target control is not in an exposure state for the first time.
In another embodiment, the processing module is specifically configured to send a notification message based on the callback function, where the notification message is used to notify a page developer to report exposure data; and acquiring exposure data input by the page developer based on the notification message, and reporting the exposure data to a server.
In yet another embodiment, the exposure manager is pre-created as follows: in the page development process, adding configuration parameters in a software development toolkit, wherein the configuration parameters are used for configuring the process of exposing and burying points; and creating a registration control list and generating an exposure manager, wherein the registration control list is used for storing the control needing to monitor the exposure buried point and the corresponding exposure data.
A third aspect of the present disclosure provides an exposure and dot burying device for a page control, including: a memory to store instructions; and a processor for invoking the memory-stored instructions to perform the method of the first aspect and embodiments thereof.
A fourth aspect of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium comprises computer program instructions, which, when read by a computer, the computer performs the method of the first aspect and embodiments thereof.
The technical scheme provided by the embodiment of the disclosure at least has the following beneficial effects: and determining a target control in an exposure state in the page, acquiring a registration control corresponding to the target control in the exposure manager, storing exposure data of the target control in the registration control, further calling a callback function associated with the registration control, and uploading the exposure data of the target control to a server based on the callback function. Therefore, the target control is registered in the exposure manager, the exposure data of the target control can be acquired and stored after the exposure manager is started, the exposure detection logic does not need to be repeatedly developed, and meanwhile, the exposure manager only needs to store the exposure data of the control registered in the exposure manager, so that the exposure data of useless controls are effectively reduced, and the efficiency of screening and sorting the exposure data in the background is improved.
Drawings
The above and other objects, features and advantages of the embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 is a schematic diagram of a system provided by an embodiment of the present disclosure;
fig. 2 is a flowchart of an exposure and dot burying method for a page control according to an embodiment of the present disclosure;
fig. 3 is a flowchart of another method for exposing and burying a dot of a page control according to an embodiment of the present disclosure;
fig. 4 is a flowchart of another method for exposing and burying a dot of a page control according to an embodiment of the present disclosure;
fig. 5 is a schematic composition diagram of an exposure and dot burying device for a page control according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
In the drawings, like or corresponding reference characters designate like or corresponding parts.
Detailed Description
The principles and spirit of the present disclosure will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the present disclosure, and are not intended to limit the scope of the present disclosure in any way.
It should be noted that, although the expressions "first", "second", etc. are used herein to describe different modules, steps, data, etc. of the embodiments of the present disclosure, the expressions "first", "second", etc. are merely used to distinguish between different modules, steps, data, etc. and do not indicate a particular order or degree of importance. Indeed, the terms "first," "second," etc. are used interchangeably throughout.
At present, developers evaluate whether the content displayed on the page has enough attraction to users through exposure data acquired by exposure buried points, so that the content displayed on the page is continuously improved, and better service is provided for the users.
The page control exposure and dot burying methods in the related art generally have two types: buried-point-free exposure and manual buried-point exposure.
1. The exposure without the buried point is realized by the following modes: and accessing a specific tool pack in the front-end page, so that the tool pack can collect all exposure data and send the exposure data to a back-end server corresponding to the page application program. This results in a large amount of useless data, and the main task is to process the large amount of data by the back-end development engineer to obtain the data desired by the page developer.
Thus, the landless exposure scheme is controlled by the underlying code, although without excessive involvement from the page developer. However, the reported data volume is large, the background screening process is very complex, the cost is very high, and the related service data is difficult to be sorted and clear.
2. The manual buried point exposure is in the code logic of a page, and a page developer actively monitors a control needing to expose a buried point, so that the functions of exposure behavior detection, event reporting and the like are realized. In the manual exposure process of the embedded point, a page developer needs to write codes of a page manually, monitors the exposure behavior of the embedded point control needing to be exposed through the codes to obtain corresponding exposure data, then carries out self-processing on the exposure data, and sends the processed exposure data to the page developer, namely, the codes in the page are written according to the requirements of the page developer, the data correspond to the codes in the page, and the data finally sent to the page developer is the data required by the page developer.
Therefore, although the scheme of manually processing the exposure of the buried points can reduce the report of useless exposure data, a page developer needs to write a large amount of codes for each page and each control needing to expose the buried points, and implement exposure detection logic for each control once, so that the development efficiency is very low, and the business iteration efficiency is influenced.
Based on the above problem, the embodiment of the disclosure provides an exposure and dot burying method for a page control, which reduces exposure data of useless controls and improves efficiency of background screening and arrangement of the exposure data while exposure detection logic does not need to be repeatedly developed.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which technical aspects of embodiments of the present disclosure may be applied. As shown in fig. 1, the system architecture 100 may include a computer device 101, a network 102, a server 103, and a terminal device 104. The computer device 101 and the terminal device 104 can communicate with the server 103 through the network 102. The computer device 101 is used by a user, such as a page developer, and an environment for developing pages, such as development software, an interface building framework, and the like, is deployed on the computer device 101. A server program is deployed on the server 103. The terminal device 104 has an exposure manager installed thereon.
The process of implementing the exposure and the embedding of the page control by using the system architecture shown in fig. 1 is as follows: firstly, a page developer develops an exposure manager on computer equipment 101, the exposure manager is configured with parameter-related information and a registered control, and writes an exposure buried point program of the control through a hook function; then, the exposure manager is set in the terminal 104 through the network 102, the exposure data of the control registered in the exposure manager in the page can be monitored in real time by starting the exposure manager, the exposure data is stored in the exposure manager, and the page developer reports the exposure event to the server 103 through the network 102 based on the stored exposure data in the exposure manager.
It should be understood that the number of terminal devices, networks, servers, and computer devices in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, servers, and computer devices, as desired for an implementation. For example, the server 103 may be a server cluster composed of a plurality of servers.
It is easy to understand that the method for embedding the exposure of the page control provided by the embodiment of the present disclosure is generally executed by the terminal device, and accordingly, the exposure manager is generally disposed in the terminal device. However, in other embodiments of the present disclosure, the server may also have a similar function as the terminal device, so as to execute the exposure and dot burying method for the page control provided by the embodiments of the present disclosure.
As shown in fig. 2, an embodiment of the present disclosure provides a method for exposing and burying a dot of a page control, where the method includes the following steps:
in step S11, a target control in an exposure state in the page is determined.
Optionally, the target control in the exposure state in the page is determined based on the hook function and the visibility attribute information of the control in the page.
Wherein the hook function is associated with a registration control included in the exposure manager and is used to monitor a control in the page for changes in visibility attribute information. Visibility attribute information of the control is used to indicate whether the control is visible to the user.
A possible implementation mode is that a hook function is added to a registered control included in an exposure manager by utilizing an AOP (aspect-oriented programming) technology, visibility attribute information of the control is monitored, the newly added hook function is called when the visibility attribute information of the control changes, and then the operation of determining whether a target control is in an exposure state can be completed in the hook function. For example, when a user slides a page, the position coordinate attributes of all controls on the screen change, and the execution of the hook function is triggered when the monitoring of the event that the registered control has started the change of the position coordinate attributes at this time. And the control not registered in the exposure manager does not start monitoring, and does not add a hook function, so that the execution of the hook function is not triggered.
In step S12, a registration control corresponding to the target control is obtained in the exposure manager, and the exposure data of the target control is saved in the registration control.
Optionally, in the page development process, adding configuration parameters in the software development kit, where the configuration parameters are used to configure the process of exposing and burying points; and creating a registered control list and generating an exposure manager, wherein the registered control list is used for storing the control needing to monitor the exposure buried point and the corresponding exposure data.
It should be understood that the exposure data of the target control is saved in the registration control of the exposure manager only if the registration control corresponding to the target control exists in the exposure manager.
Optionally, the exposure data includes data of exposure time, exposure id, exposure name, and the like of the target control.
In step S13, a callback function associated with the registered control is called, and the exposure data of the target control is uploaded to the server based on the callback function.
Optionally, a notification message is sent based on the callback function, and the notification message is used for notifying a page developer to report exposure data; and acquiring exposure data input by the page developer based on the notification message, and reporting the exposure data to the server.
The method and the device for controlling the exposure of the target control in the page are characterized in that the target control in the page is determined, the registration control corresponding to the target control is obtained from the exposure manager, the exposure data of the target control is stored in the registration control, the callback function associated with the registration control is further called, and the exposure data of the target control is uploaded to a server based on the callback function. Therefore, the target control is registered in the exposure manager, the exposure data of the target control can be acquired and stored after the exposure manager is started, the exposure detection logic does not need to be repeatedly developed, and meanwhile, the exposure manager only needs to store the exposure data of the control registered in the exposure manager, so that the exposure data of useless controls are effectively reduced, and the efficiency of screening and sorting the exposure data in the background is improved.
As an exemplary embodiment, if a list module in a commodity page needs to perform exposure and dot burying, in a page development process, an exposure manager is created, all commodity card controls in the list module are registered in the exposure manager, all commodity card controls are stored in the exposure manager, and an exposure data model is associated with each control, and the exposure data model is used for storing exposure data such as exposure id, exposure time, commodity information and the like. When the commodity card control generates an exposure behavior and is displayed on a screen, the exposure manager records an exposure id, exposure time and commodity information, a callback function associated with the control registration is called, and a page developer realizes exposure event reporting logic of the commodity card in the callback function and sends the exposure event reporting logic to the background server.
In some embodiments, the attribute information includes at least position coordinates, hidden information, and transparency of the control.
Further, the target control in the exposure state in the page is determined through steps S21-S22, as shown in fig. 3:
in step S21, in response to a control with changed visibility attribute information in the page control, the hook function is triggered to determine the target control in the exposure state based on the visibility attribute information of the control in the page.
In step S22, if it is determined that there is a target control whose position coordinates are within the coordinate range of the screen, the control is in an un-hidden state, and the transparency of the control is greater than a preset threshold based on the hook function, the target control is determined to be the target control in an exposure state.
Optionally, if there is a target control whose position coordinate is within the coordinate range of the screen, the control is in an un-hidden state, and the control transparency is greater than a preset threshold, it may be determined that the target control is visible to the user, that is, in an exposure state.
Illustratively, if the top card in the merchandise list is located at the top of the screen, the width of the top card is consistent with the width of the screen, the height of the top card is 50% of the height of the screen, the top card is not hidden, the transparency of the top card is greater than 0, and the merchandise card is in an exposed state. And the starting point of the card at the bottom of the list exceeds the display range of the screen, the position coordinate is not intersected with the screen coordinate, and the user cannot see the card on the screen, namely the card is not in an exposure state. When a user slides a page, the position coordinates of the card control in the commodity list are changed, a hook function is called, whether the card appears in the screen range or not is detected, and if the card is visible to the user, the card is in an exposure state.
One special case is that a part of the position coordinates of the target control is located within the coordinate range of the screen, and a part of the position coordinates of the target control is located within the coordinate range of the screen, that is, a part of the target control is visible to the user and a part of the target control is visible to the user, and at this time, whether the target control is in an exposure state or not can be determined according to a preset rule.
For example, the preset rule may be that more than half of the coordinates in the position coordinates of the target control are within the coordinate range of the screen, and the target control is determined to be in the exposure state when the control is in the non-hidden state and the transparency of the control is greater than the preset threshold. If less than half of the coordinates in the position coordinates of the target control are in the coordinate range of the screen, but the control is in an un-hidden state and the transparency of the control is greater than a preset threshold value, determining that the target control is not in an exposure state.
In the embodiment of the disclosure, the attribute information change of the control is monitored through the hook function, the function logic of the bottom layer code is not required to be changed, whether the control is in an exposure state can be determined directly through the exposure manager, the exposure detection logic is not required to be repeatedly developed, and the cost is saved.
In some embodiments, after determining that the target control is in the exposure state, the method further comprises the following steps, as shown in fig. 4:
in step S31, it is determined whether the target control is in an exposure state for the first time.
Optionally, only one exposure is required to be recorded for exposure buried points in a service scene, and repeated exposure behaviors are not recorded. The exposure manager records the exposure history of each registered control, and when the control which is not over exposed is exposed, the exposure manager records that the control is exposed by using a mark field.
Further, whether the target control is in an exposure state for the first time is determined through the exposure history of the target control. Optionally, if the corresponding exposed field in the exposure history of the target control is true, determining that the target control is in a non-first-exposure state; and if the corresponding exposed field in the exposure history of the target control is false, determining that the target control is in a first exposure state.
In step S32, if the target control is in the exposure state for the first time, the exposure data of the target control is acquired and saved.
Optionally, if the target control is in the exposure state for the first time, setting the exposed field corresponding to the target control to true.
In step S33, if the target control is not in the exposure state for the first time, the exposure data of the target control is ignored.
For example, a commodity card in a commodity list is displayed to a user for the first time, an exposure behavior occurs and the commodity card is in a first exposure state, an exposure manager sets an exposed field corresponding to a control of the commodity card to true, when the card slides out of a screen and then slides into the range of the screen again, the card is in a non-first exposure state, and the exposure manager ignores the exposure behavior.
In the embodiment of the disclosure, by judging whether the target control is in the first exposure state and only recording the exposure data generated in the first exposure state in the exposure manager, useless exposure data can be reduced, and the efficiency of background screening and finishing of the exposure data is improved.
Certainly, in order to avoid ignoring exposure events of some important controls, a black-and-white list may be set in the exposure manager, a control that only records exposure data of first exposure is stored in the black list, and a control that needs to record exposure data of each exposure is stored in the white list. When the target control is in an exposure state, comparing the target control with controls in a black and white list, if the target control is in the black list, the exposure manager only records exposure data during first exposure, and ignores exposure data not during first exposure; if the target control is in the white list, the exposure data for each exposure is recorded in the exposure manager.
It can be seen that the foregoing has presented aspects of the embodiments of the present disclosure primarily from a methodological standpoint. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The embodiments of the present disclosure may perform division of function modules on the control device according to the above method examples, for example, each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. Optionally, the division of the modules in the embodiment of the present disclosure is illustrative, and is only a logic function division, and there may be another division manner in actual implementation.
As shown in fig. 5, an embodiment of the present disclosure provides a composition schematic diagram of an exposure and spot burying apparatus for a page control, where the apparatus includes: a determining module 201, a saving module 202 and a processing module 203;
a determining module 201, configured to determine a target control in an exposure state in a page;
the storage module 202 is configured to obtain a registration control corresponding to the target control in the exposure manager, and store the exposure data of the target control in the registration control;
and the processing module 203 is configured to call a callback function associated with the registered control, and upload the exposure data of the target control to the server based on the callback function.
In an embodiment, the determining module 201 is specifically configured to determine a target control in an exposure state in a page based on a hook function and visibility attribute information of a control in the page; the hook function is associated with a registration control included in the exposure manager and is used to monitor the control in the page for changes in visibility attribute information.
In another embodiment, the attribute information at least comprises position coordinates, hidden information and transparency of the control; the determining module 201 is specifically configured to, in response to a control with changed visibility attribute information in a page control, trigger a hook function to determine a target control in an exposure state based on the visibility attribute information of the control in the page; and if the hook function determines that the target control with the position coordinate positioned in the coordinate range of the screen, the control in the non-hidden state and the control transparency greater than the preset threshold exists, determining the target control as the target control in the exposure state.
In another embodiment, the determining module 201 is further configured to determine whether the target control is in an exposure state for the first time; the saving module 202 is further configured to, if the target control is in the exposure state for the first time, obtain and save exposure data of the target control.
In another embodiment, the processing module 203 is further configured to ignore the exposure data of the target control if the target control is not in the exposure state for the first time.
In another embodiment, the processing module 203 is specifically configured to send a notification message based on the callback function, where the notification message is used to notify a page developer to report exposure data; and acquiring exposure data input by the page developer based on the notification message, and reporting the exposure data to the server.
In yet another embodiment, the exposure manager is pre-created as follows: in the page development process, adding configuration parameters in a software development kit, wherein the configuration parameters are used for configuring the process of exposing and burying points; and creating a registered control list and generating an exposure manager, wherein the registered control list is used for storing the control needing to monitor the exposure buried point and the corresponding exposure data.
FIG. 6 is a block diagram illustrating an exposure buried point device 300 for a page control according to an example embodiment. For example, the apparatus 300 may be a terminal device.
The terminal device 300 may specifically include: processor 301, communication device 302, display 303, power supply 304, memory 305, audio circuitry 306, multimedia device 307, sensors 308, and peripheral interfaces 309. Those skilled in the art will appreciate that the hardware configuration shown in fig. 6 is not intended to be limiting, and that the handset may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The processor 301 is a control center of the mobile phone, and is connected to various parts of the mobile phone by using various interfaces and lines, and executes various functions of the mobile phone and processes data by running or executing an application program (hereinafter, may be abbreviated as App) stored in the memory 305 and calling data stored in the memory 305. In some embodiments, processor 301 may include one or more processing units.
The communication device 302 may be used for receiving and transmitting wireless signals during the transmission and reception of information or a call. Specifically, the communication device 302 may receive downlink data of the base station and then process the downlink data to the processor 301; in addition, data relating to uplink is transmitted to the base station. Typically, the radio frequency circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the communication apparatus 302 can also communicate with other devices through wireless communication. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications, general packet radio service, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
The display 303 may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The power supply 304 is logically connected to the processor 301 through a power management chip, so as to implement functions of managing charging, discharging, power consumption, and the like.
The memory 305 is used for storing application programs and data, and the processor 301 executes various functions and data processing of the mobile phone by operating the application programs and data stored in the memory 305. The memory 305 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, and application programs (such as a sound playing function, an image playing function, etc.) required by at least one function; the storage data area may store data (such as audio data, a phonebook, etc.) created from the use of the handset. Further, the memory 305 may include high speed random access memory, and may also include non-volatile memory, such as a magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 305 may store various operating systems, such as the iOS operating system developed by apple inc, the Android operating system developed by google, inc.
The audio circuitry 306 is configured to output and/or input audio signals.
The multimedia device 307 may include a WIFI device, a bluetooth component, and the like. The Wi-Fi device is used for providing network access for the mobile phone according to Wi-Fi related standard protocols, the mobile phone can be accessed to a Wi-Fi access point through the Wi-Fi device, and therefore the mobile phone helps a user to receive and send emails, browse webpages, access streaming media and the like, and wireless broadband internet access is provided for the user. In other embodiments, the Wi-Fi device can also be used as a Wi-Fi wireless access point and can provide Wi-Fi network access for other terminals.
The handset may also include at least one sensor 308, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display 303 according to the brightness of ambient light, and a proximity sensor that turns off the power of the display when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing gestures of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometers and taps), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Peripheral interface 309 for providing various interfaces to external input/output devices (e.g., keyboard, mouse, external display, external memory, sim card, etc.). For example, the terminal is connected with a mouse or a display through a Universal Serial Bus (USB) interface, is connected with a subscriber identity module card (SIM) card provided by a telecommunications carrier through a metal contact on a card slot of the SIM card, and realizes a communication function with other terminals through an interface of a Wi-Fi device, an interface of a Near Field Communication (NFC) device, an interface of a bluetooth module, and the like. Peripheral interface 309 may be used to couple the aforementioned external input/output peripheral devices to processor 301 and memory 305.
Although not shown in fig. 6, the mobile phone may further include a camera (a front camera and/or a rear camera), a flash, a micro projection device, a Near Field Communication (NFC) device, and the like, which are not described in detail herein.
FIG. 7 is a block diagram illustrating an exposure buried point device 400 of a page control according to an example embodiment. For example, the apparatus 400 may be provided as a server. Referring to fig. 7, the apparatus 400 includes: memory 401, processor 402, input/Output (I/O) interface 403. The memory 401 is used for storing instructions. And the processor 402 is configured to call the instruction stored in the memory 401 to execute the exposure and spot burying method of the page control according to the embodiment of the disclosure. The processor 402 is connected to the memory 401 and the I/O interface 403, respectively, for example, through a bus system and/or other connection mechanism (not shown). The memory 401 may be used to store programs and data, including programs of the footprint track display method involved in the embodiments of the present disclosure, and the processor 402 executes various functional applications and data processing of the apparatus 400 by running the programs stored in the memory 401.
The processor 402 in the embodiment of the present disclosure may be implemented in at least one hardware form of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), and the processor 402 may be one or a combination of several Central Processing Units (CPUs) or other Processing units with data Processing capability and/or instruction execution capability.
Memory 401 in embodiments of the present disclosure may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile Memory may include, for example, a Random Access Memory (RAM), a cache Memory (cache), and/or the like. The non-volatile Memory may include, for example, a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk Drive (HDD), a Solid-State Drive (SSD), or the like.
In the disclosed embodiment, the I/O interface 403 may be used to receive input instructions (e.g., numeric or character information, and generate key signal inputs related to user settings and function control of the apparatus 400, etc.), and may also output various information (e.g., images or sounds, etc.) to the outside. The I/O interface 403 may include one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a mouse, a joystick, a trackball, a microphone, a speaker, a touch panel, and the like in embodiments of the present disclosure.
The embodiments of the present disclosure also provide a computer-readable storage medium, which includes computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is caused to execute the method provided by the above embodiments.
The embodiment of the present disclosure further provides a computer program product, which can be directly loaded into the memory and contains software codes, and the computer program product can be loaded and executed by the computer to implement the method provided by the above embodiment.
It is to be understood that although operations are depicted in the drawings in a particular order, this is not to be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
The methods and apparatus of embodiments of the present disclosure can be accomplished with standard programming techniques with rule-based logic or other logic to accomplish the various method steps. It should also be noted that the words "means" and "module," as used herein and in the claims, is intended to encompass implementations using one or more lines of software code, and/or hardware implementations, and/or equipment for receiving inputs.
Any of the steps, operations, or procedures described herein may be performed or implemented using one or more hardware or software modules, alone or in combination with other devices. In one embodiment, the software modules are implemented using a computer program product comprising a computer readable medium containing computer program code, which is executable by a computer processor for performing any or all of the described steps, operations, or procedures.
The foregoing description of the implementations of the disclosure has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the disclosure to the precise form disclosed, and modifications and variations are possible in light of the above teachings or may be acquired from practice of the disclosure. The embodiments were chosen and described in order to explain the principles of the present disclosure and its practical application to enable one skilled in the art to utilize the present disclosure in various embodiments and with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A method for exposing and burying points of a page control is characterized by comprising the following steps:
determining a target control in an exposure state in a page;
acquiring a registration control corresponding to the target control in an exposure manager, and storing exposure data of the target control in the registration control;
and calling a callback function associated with the registered control, and uploading the exposure data of the target control to a server based on the callback function.
2. The method of claim 1, wherein the determining the target control in the page in the exposure state comprises:
determining a target control in an exposure state in a page based on a hook function and visibility attribute information of the control in the page;
the hook function is associated with a registration control included in the exposure manager and is used for monitoring a control in which visibility attribute information in a page changes.
3. The method of claim 2, wherein the attribute information includes at least position coordinates, hidden information, and transparency of the control;
the determining the target control in the exposure state in the page based on the hook function and the visibility attribute information of the control in the page includes:
responding to a control with changed visibility attribute information in a page control, and triggering the hook function to determine a target control in an exposure state based on the visibility attribute information of the control in the page;
and if the target control with the position coordinate positioned in the coordinate range of the screen, the control in the non-hidden state and the control transparency greater than the preset threshold is determined to exist based on the hook function, determining the target control as the target control in the exposure state.
4. The method of claim 1, further comprising:
determining whether the target control is in an exposure state for the first time;
and if the target control is in an exposure state for the first time, acquiring and storing exposure data of the target control.
5. The method of claim 4, further comprising:
and if the target control is not in the exposure state for the first time, ignoring the exposure data of the target control.
6. The method according to any one of claims 1-5, wherein uploading exposure data of the target control to a server based on the callback function comprises:
sending a notification message based on the callback function, wherein the notification message is used for notifying a page developer to report exposure data;
and acquiring exposure data input by the page developer based on the notification message, and reporting the exposure data to the server.
7. The method of claim 1, wherein the exposure manager is pre-created by:
in the page development process, adding configuration parameters in a software development kit, wherein the configuration parameters are used for configuring the process of exposing and burying points;
and creating a registration control list and generating an exposure manager, wherein the registration control list is used for storing the control needing to monitor the exposure buried point and the corresponding exposure data.
8. An exposure and spot burying device for a page control, the device comprising:
the determining module is used for determining a target control in an exposure state in a page;
the storage module is used for acquiring a registration control corresponding to the target control in an exposure manager and storing the exposure data of the target control in the registration control;
and the processing module is used for calling a callback function associated with the registered control and uploading the exposure data of the target control to a server based on the callback function.
9. An exposure and buried point device for a page control, the device comprising: a memory to store instructions;
a processor for invoking the memory-stored instructions to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises computer program instructions, which, when read by a computer, the computer performs the method of any one of claims 1 to 7.
CN202210910214.7A 2022-07-29 2022-07-29 Method and device for exposing and burying point of page control and storage medium Pending CN115357829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210910214.7A CN115357829A (en) 2022-07-29 2022-07-29 Method and device for exposing and burying point of page control and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210910214.7A CN115357829A (en) 2022-07-29 2022-07-29 Method and device for exposing and burying point of page control and storage medium

Publications (1)

Publication Number Publication Date
CN115357829A true CN115357829A (en) 2022-11-18

Family

ID=84032644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210910214.7A Pending CN115357829A (en) 2022-07-29 2022-07-29 Method and device for exposing and burying point of page control and storage medium

Country Status (1)

Country Link
CN (1) CN115357829A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431049A (en) * 2023-06-13 2023-07-14 中航信移动科技有限公司 Card display method, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431049A (en) * 2023-06-13 2023-07-14 中航信移动科技有限公司 Card display method, electronic equipment and storage medium
CN116431049B (en) * 2023-06-13 2023-08-15 中航信移动科技有限公司 Card display method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104135500B (en) The method and system that prompting application upgrades
US11809705B2 (en) Touch control method and apparatus
US20170215051A1 (en) Remote access to a mobile communication device over a wireless local area network (wlan)
EP2735133B1 (en) Method and apparatus for providing data entry content to a remote environment
WO2015062413A1 (en) Terminal account managing method and device cross-reference to related applications
CN103488939A (en) Method, device and terminal for prompting user
EP3584710B1 (en) Method and apparatus for controlling display of mobile terminal, and storage medium
CN103631580B (en) Method and device for generating theme icon
KR20140049000A (en) Method and apparatus for triggering a remote data entry interface
US20190213241A1 (en) Web page display method and apparatus, mobile terminal, and storage medium
CN105739820A (en) Message prompt display method and device
CN103763112A (en) User identity protection method and apparatus
CN104954159A (en) Network information statistics method and device
CN111309325B (en) Third party library reference method and device and mobile terminal
CN103713943A (en) Native terminal operating system based application function realization method and device
EP2869604A1 (en) Method, apparatus and device for processing a mobile terminal resource
CN115357829A (en) Method and device for exposing and burying point of page control and storage medium
US11150913B2 (en) Method, device, and terminal for accelerating startup of application
US10664436B2 (en) Application acceleration method and application acceleration device
CN107168648B (en) File storage method and device and terminal
CN110457192A (en) A kind of file monitor method and device, terminal, storage medium
CN113050936A (en) Front-end data processing method and device based on integrated development environment
CN110753909B (en) Service scheduling method and device, computer equipment and computer readable storage medium
CN107391128B (en) Method and device for monitoring virtual file object model vdom
CN110874143A (en) Sensor data acquisition method, intelligent terminal, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination