Visual data collection method and system based on IOS-SDK
Through the visual data collection method based on IOS-SDK, it solves the problem of difficult to meet the collection requirements in complex environments in the existing technology, achieves precise positioning and rich data collection, adapts to the buried points scheme of different business scenarios, and improves the accuracy of data analysis. sex.
Patent Information
- Application Number
- CN202011023032.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-09-25
AI Technical Summary
Existing data collection methods are difficult to meet the collection needs in complex environments. In particular, the visual collection technology based on editor circle selection is difficult to operate on mobile terminals, and cannot report element-related information. The data volume is large and inflexible.
Using the visual data collection method based on IOS-SDK, by receiving page information, obtain and edit buried point information, bind to the page, trigger buried points, generate buried point trigger information, use the server to confirm buried point elements, and take effect when buried points Data reporting is performed in stages, supporting Hybrid communication protocol to achieve multi-dimensional data collection.
It achieves precise positioning of trigger elements, solves the problem of inconsistent positioning of elements on different versions of pages, simplifies the burying of reused elements, collects rich data, improves the accuracy of data analysis, and adapts to burying schemes in different business scenarios.
Smart Images

Figure CN112162740B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data acquisition and processing, and in particular to a visual data acquisition method and system based on IOS-SDK. Background Art
[0002] Data statistics are an important part of the iteration process of Internet products. It mainly consists of two parts: data collection and data analysis. Data collection determines the data source and collects data quickly, accurately and without omissions. This is the main challenge faced by the data collection SDK (hereinafter referred to as SDK). SDK can collect statistics on click information of page elements for analyzing user interactions and user behaviors, which plays a great role in the continuous optimization of Internet products. The data collection process is roughly designed, SDK integrated, triggered, and reported to the server. Among them, the existing data collection methods mainly include code collection, full collection, and visual collection.
[0003] Specifically, the general process of code collection is that the operation personnel put forward data statistics requirements, the product personnel design the tracking points, the developers call the SDK collection interface to implant the tracking points, repackage and release the new version, and the operation personnel analyze the data after the data is reported. This tracking method collects accurately and the data volume is small, but the disadvantage is that the manpower and time costs are high. Full tracking collection implants the tracking points into all page elements in advance, and all elements will report data after being clicked. The operation personnel will filter out the elements of interest and then perform data statistics. This collection method avoids the trouble of re-issuing the version, but the disadvantage is that the data volume is large and the reported data form is single and inflexible. Visual collection can add new collection points without releasing the version, and the collection is accurate and the reported data volume is small. To a certain extent, it combines the advantages of code tracking and full tracking, and is an important direction for the development of data collection.
[0004] Furthermore, the existing SDK visualization collection technology mainly includes visualization based on all buried points and visualization based on editor selection. Among them, the visualization based on all buried points collects the click events of all elements. When analyzing the data, the data of interest is selected in the editor for analysis. Its technical core is still the collection of all buried points. Although this technology can visually select buried points, it is essentially a full buried point technology. It still has a large amount of data, and the reported data only includes element click information, but cannot report element related information. The visualization based on device-side selection uses the SDK host program running on the device when editing buried points, generates buried point instructions and deploys them to take effect on the entire network. However, the visualization of this technology is difficult to operate on mobile terminal devices, and it cannot meet complex buried point requirements due to the screen size and interaction method. In addition, the visualization collection technology based on editor selection uses a separate website editor to edit buried points, which takes effect on the entire network after deployment. However, the existing visualization collection technology based on editor selection is still in the early stages of development. The existing solution only collects element click events, which cannot meet the collection requirements in complex collection environments. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a visual data collection method based on IOS-SDK, including: receiving a page information acquisition instruction, and feeding back the page information to the editor through the server; obtaining the buried point information obtained after editing the current page, and binding it to the current page, wherein the buried point information is edited by the editor after displaying the page information, and sent to the IOS-SDK end through the server; obtaining a first trigger signal and triggering the current buried point, thereby generating buried point trigger information, and sending the buried point trigger information to the editor, so that the editor confirms the buried point element corresponding to the current buried point and completes the creation of the page buried point; accessing the current page, and obtaining the buried points created in the current page from the server; binding the created buried point information to the current page; obtaining a second trigger signal, based on which, determining the triggered buried point and the corresponding buried point element to generate the buried point trigger information based on the buried point effective stage, and then transmitting it to the server.
[0006] Preferably, the embedding point information is edited by circling page elements.
[0007] Preferably, the embedding point information includes but is not limited to: the identification of the embedding point element, the position of the embedding point element in the page structure, the type of the embedding point element, the associated attribute information of the embedding point element, the positioning method of the embedding point element, the embedding point effective range, the page effective range and the effective version, wherein the positioning method of the embedding point element is selected from one or a combination of location positioning, attribute positioning and same-level element positioning.
[0008] Preferably, the step of binding the created embedding point information to the current page includes: parsing the created embedding point information involved in the current page, locating the target embedding point element according to the defined element positioning method, and obtaining the associated attributes of the target embedding point element, wherein, when there are multiple defined element positioning methods, if the embedding point element positioning results obtained after each positioning process are the same, then the element positioning operation of the current page is successful, and the embedding point element positioning result is used as the target embedding point element; otherwise, it fails.
[0009] Preferably, the trigger signal is identified using an OC-based runtime mechanism, and the trigger signal is selected from one of a gesture action, a click signal, and a voice signal.
[0010] Preferably, the method also includes: calling page information based on the JS-SDK end, wherein, after receiving the page information based on the IOS-SDK end, the server sends a page information acquisition notification to the JS-SDK end, so that the JS-SDK end, under the instruction of the notification, feeds back the corresponding page information to the server and further feeds back to the IOS-SDK end; the page information based on the JS-SDK end is placed in the h5 window attribute of the terminal web page window element, thereby transmitting the new page information to the server.
[0011] Preferably, the point binding process also includes: receiving point information containing hybrid point marks, and filtering the hybrid points to generate new point information, and then sending the new point information to the JS-SDK end through the server, wherein the editor recognizes the point information edited by the user, and when it contains hybrid points or the points are bound only by attribute positioning, the current point is marked as a hybrid point in the point information, and the updated point information is sent to the IOS-SDK end through the server.
[0012] Preferably, if the current burying point is a Hybrid burying point, then the associated element attributes of the current burying point are sent to the JS-SDK end through the server; if the current burying point is a non-Hybrid burying point, then when the current burying point is detected to be triggered, a first notification is sent to the JS-SDK end through the server, and the burying point information containing the associated element attribute information of the current burying point is obtained through the server, wherein the JS-SDK end outputs the burying point information containing the associated element attribute information of the current burying point after receiving the first notification.
[0013] Preferably, after receiving the Hybrid tracking point step, it also includes: obtaining the tracking point trigger information generated by the JS-SDK end after binding the Hybrid tracking point and the tracking point is triggered, and then transmitting the current tracking point trigger information to the server.
[0014] On the other hand, the present invention also provides a visual data acquisition system based on IOS-SDK, which executes the method described above, and the visual data acquisition system includes: an IOS-SDK end, which is used to first receive a page information acquisition instruction, and feed back the page information to the editor through the server, and then obtain the buried point information obtained after the current page is edited, and bind it to the current page, and then obtain a first trigger signal and trigger the current buried point, thereby generating buried point trigger information, and sending the buried point trigger information to the editor, so that the editor can confirm the buried point element corresponding to the current buried point, complete the creation of the page buried point, and access the current page, and obtain the buried point information in the current page from the server. The created tracking point is then bound to the current page, and finally a second trigger signal is obtained, based on which the triggered tracking point and the corresponding tracking point element are determined to generate tracking point trigger information based on the tracking point effective stage, which is then transmitted to the server for storage, wherein the tracking point information is edited by the editor after displaying the page information, and is sent to the IOS-SDK end through the server; the editor communicates with the JS-SDK end and the server through WebSocket; and the server communicates with the JS-SDK end through Http, which is used to store and transmit the page information of the website page, the created tracking point information in each page, and the tracking point trigger information of the created tracking point in each page.
[0015] Compared with the prior art, one or more embodiments of the above scheme may have the following advantages or beneficial effects:
[0016] The present invention proposes a visual data collection method and system based on the IOS-SDK end. The method and system first use a visual editor to circle and select points, solve the problem of complex point-burying operation and large amount of reported data, so as to accurately locate the trigger element; use the attribute positioning method to locate the page element, thereby solving the problem of positioning failure caused by inconsistent positions of page elements of different versions, and using the same-level point-burying technology to simplify the reused element points (for example: multiplexed elements such as UITableViewCell and UICollectionViewCell), and then solve the point-burying scheme in complex business scenarios. In addition, the present invention can embed the associated attribute information related to the buried point element in the buried point information, collect more abundant data at the buried point, further, provide more types of data for the data analysis stage, and analyze the buried point collection data from a multi-dimensional perspective, thereby improving the accuracy of the data analysis results. In addition, the present invention also provides a complete communication protocol that can process Hybrid buried points, so that the visual data collection method of the present invention can adapt to the buried point schemes in different business scenarios (different operating systems).
[0017] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0019] Figure 1 It is a step diagram of the visual data collection method based on IOS-SDK in an embodiment of the present application.
[0020] Figure 2 It is a specific flow chart of the visual data collection method based on IOS-SDK in the point editing stage of an embodiment of the present application.
[0021] Figure 3 It is a specific flow chart of the visual data collection method based on IOS-SDK in the implementation stage of the present application.
[0022] Figure 4 This is an example diagram of the implementation principle of the location positioning method of the IOS-SDK-based visual data collection method in the point-of-sale effectiveness stage of the embodiment of the present application.
[0023] Figure 5This is an example diagram of the implementation principle of the method for locating elements of the same level during the point-embedding effectiveness stage of the visual data collection method based on IOS-SDK in an embodiment of the present application.
[0024] Figure 6 It is a schematic diagram of a scenario in which an IOS device is embedded in an H5 page in a visual data collection method based on IOS-SDK in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will describe the implementation methods of the present invention in detail with reference to the accompanying drawings and embodiments, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly. It should be noted that as long as there is no conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other, and the technical solutions formed are all within the protection scope of the present invention.
[0026] In addition, the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. Also, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described can be performed in a sequence different from that here.
[0027] Data statistics are an important part of the iteration process of Internet products. It mainly consists of two parts: data collection and data analysis. Data collection determines the data source and collects data quickly, accurately and without omissions. This is the main challenge faced by the data collection SDK (hereinafter referred to as SDK). SDK can collect statistics on click information of page elements for analyzing user interactions and user behaviors, which plays a great role in the continuous optimization of Internet products. The data collection process is roughly designed, SDK integrated, triggered, and reported to the server. Among them, the existing data collection methods mainly include code collection, full collection, and visual collection.
[0028] The existing SDK's visualization collection technologies mainly include visualization based on all buried points and visualization based on editor selection. Among them, the visualization based on all buried points collects the click events of all elements. When analyzing the data, the data of interest is circled in the editor for analysis. Its technical core is still the collection of all buried points. Although this technology can visually circle the buried points, it is essentially a full buried point technology. It still has a large amount of data, and the reported data only includes element click information, but cannot report element-related information. In addition, the visualization collection technology based on editor selection uses a separate website editor to edit the buried points, which takes effect on the entire network after deployment. However, the existing visualization collection technology based on editor selection is still in its early stages of development. The existing solution only collects element click events, and cannot meet the collection needs in complex collection environments.
[0029] Therefore, in order to solve the above technical problems, the present invention proposes a visual data collection method (visual data collection method) based on IOS-SDK, which is completed by a visual data collection system. Among them, the visual data collection system includes an IOS-SDK end (terminal SDK), a website editor and a server end. Specifically, in the point-burying editing stage, the method firstly feeds back the page information to the editor through the server under the instruction of receiving the page information acquisition instruction; then, obtain the point-burying information including at least the target point-burying element and the target element associated attribute information edited by the editor by circling the page element after loading the page information, and bind the current page according to the current point-burying information; then, after obtaining the first trigger signal from the user, trigger the currently edited point-burying, thereby generating the point-burying trigger information, and send the current point-burying trigger information to the editor, so that the editor can confirm the target point-burying element, thereby completing the task of creating the page point-burying. Furthermore, the visual data collection method described in the present invention also needs to enter the point-burying effectiveness stage after the point-burying element is successfully created. During the effective stage of the tracking point, the IOS-SDK side communicates directly with the server. First, when the current page is accessed, the tracking points created in the current page are obtained from the server and the tracking point information is bound. Then, the second trigger signal is obtained, based on which the triggered tracking points and the corresponding tracking point elements are determined, thereby generating the tracking point trigger information based on the effective stage of the tracking point, and transmitting the current tracking point trigger information to the server for storage.
[0030] In this way, the present invention solves the problems of complex operation and large amount of reported data in the existing full-point data collection technology, and makes the data collected at the point of embedding richer by reporting not only the page elements but also the associated information of the page elements.
[0031] In addition, the present invention also provides a communication protocol for Hybrid point-burying, and in particular discloses the implementation process of the communication protocol on the IOS-SDK side. Not only does it require the participation of the IOS-SDK side, but it is also necessary to add the point-burying information of the JS-SDK side to the H5 page that has been embedded in the terminal native web page, and realize the Hybrid point-burying through data transmission between the IOS-SDK side and the JS-SDK side. The transmitted data mainly includes page information (page structure), point-burying information, cross-platform associated attributes, and point-burying trigger information. Therefore, the present invention, through the definition of the communication protocol for Hybrid point-burying, realizes the visual Hybrid point-burying function completed by the communication between the JS-SDK side, the website editor, the server and the IOS-SDK side.
[0032] Before describing the visual data collection method of the present invention, the application environment of the current visual data collection method is described. In an embodiment of the present invention, the visual data collection method is executed by a visual data collection system (based on the visual data collection system, the visual data collection method is executed; and based on the following visual data collection method, the current visual data collection system is proposed). Figure 2 and Figure 3 , the visual data acquisition system described in the present invention includes: IOS-SDK end (IOS terminal SDK), website end editor (hereinafter referred to as "editor") and server (wherein the server is the background server of the website). In the point-burying editing stage, the editor and the IOS-SDK end, and the editor and the server use WebSocket (hereinafter referred to as "ws") to communicate; in the point-burying effectiveness stage, the server and the IOS-SDK end communicate through Http.
[0033] Furthermore, in the tracking point editing stage, the editor, IOS-SDK and server sides communicate using the ws communication method. After the tracking point is deployed, it enters the tracking point effectiveness stage. At this time, the IOS-SDK side obtains the tracking point information corresponding to the tracking point created on the page from the server through the Http method.
[0034] Furthermore, the IOS-SDK end is used to first receive the page information acquisition instruction, and feed back the page information to the editor through the server, and then obtain the buried point information obtained after the buried point editing of the current page, and bind the current buried point information to the current page, and then obtain the first trigger signal, and use the signal to trigger the current buried point, thereby generating the buried point trigger information, and send the current buried point trigger information to the editor, so that the editor can confirm the buried point element corresponding to the current buried point according to the buried point trigger information, complete the creation of the page buried point, and access the current page, and obtain the buried point created in the current page from the server, and then bind the created buried point information to the current page, and finally obtain the second trigger signal, based on which, determine the triggered buried point and the corresponding buried point element, thereby generating the buried point trigger information based on the buried point effective stage, and transmit the trigger information to the server for storage. Among them, the buried point information is edited by the editor after displaying the obtained page information, and sent to the IOS-SDK end through the server. The server is used to store and transmit the page structure information of each page in the website, the embedding point information of the created embedding points in each page (including the embedding point associated attribute information) and the embedding point trigger information of the created embedding points in each page.
[0035] Figure 1 This is a step diagram of the visual data collection method based on IOS-SDK in the embodiment of the present application. Figure 1The visual data acquisition method based on the JS-SDK end (i.e., the implementation method of the visual data acquisition system) described in the present invention is described in detail.
[0036] like Figure 1 As shown, step S110, enter the point-burying editing stage, the IOS-SDK end receives the page information acquisition instruction sent by the server, and feeds back the page information to the editor through the server; step S120, the IOS-SDK end obtains the point-burying information obtained after the current page is edited, and binds the current point-burying information to the current page, thereby locating one or more point-burying elements, wherein the point-burying information here is edited by the editor after displaying the page information it obtains, and the edited point-burying information is sent to the IOS-SDK end through the server; step S130, the IOS-SDK end obtains the first trigger signal, and uses the first trigger signal to trigger the current point-burying, thereby generating point-burying trigger information, and sends the current point-burying trigger information based on the point-burying editing stage to the editor, so that the editor can confirm the point-burying element corresponding to the current point-burying according to the point-burying trigger information (that is, the point-burying element that can trigger the current point-burying), thereby completing the creation of the page point-burying, and at this time, the point-burying editing stage ends. In this way, the operation of creating a page point-burying is completed through the above steps S110 to S130.
[0037] Continue to refer Figure 1 After completing the task of deploying the buried points of the current page, the buried point effectiveness stage is entered. Step S140 uses the browser to access the current page again, and the IOS-SDK end obtains the buried point information corresponding to all the created (deployed) buried points in the current page from the server; Step S150 In the buried point effectiveness stage, the IOS-SDK end binds the current page according to the created buried point information; Step S160, the IOS-SDK end obtains the second trigger signal, and after detecting that the deployed buried points are triggered according to the second trigger signal, generates the buried point trigger information based on the buried point effectiveness stage, thereby sending the current buried point trigger information to the server again for storage by the server. In this way, through the above steps S140 to S160, the process of sending the deployed buried points to the entire network IOS terminals (for example: mobile phones) and collecting the buried point trigger information after the buried points are triggered is completed, thereby realizing a visual data collection solution based on the editor.
[0038] Figure 2 This is a specific flow chart of the visual data collection method based on IOS-SDK in the embedding point editing stage of the embodiment of the present application. Figure 1 and Figure 2 , the process of the point editing stage of the visual data collection method described in the embodiment of the present invention is described in detail.
[0039] like Figure 2As shown, step S201, start the editor, the editor is connected to the server through the ws mode, and the editor device information is sent to the server, step S202, the IOS-SDK end is connected to the server through the ws mode, and the IOS device information is sent to the server. Since the SDK program is installed in the IOS device (IOS terminal), therefore, in a specific example of step S202, after the IOS terminal user shakes the terminal device, the IOS-SDK end can be triggered to connect to the server through the ws mode and report the IOS device information. Then, step S203, the server sends the IOS device information transmitted by the IOS-SDK end to the editor, step S204, the editor displays the current IOS device information, and after the current IOS device is selected (by the editor user), the editor sends the selected device information to the server, so that step S205, when the server receives the selected device information about the current IOS device information, sends an instruction to obtain page information (page structure) to the currently selected IOS device, thereby entering step S206. Thus, the connection and communication process among the IOS-SDK side, the editor and the server side is completed through steps S201 to S205, and after the connection between the three is completed, the server sends a page information acquisition instruction to the IOS-SDK side.
[0040] Specifically, in step S205, after the editor user selects the current IOS device, the server side sends a page information acquisition instruction to the IOS-SDK side. In the embodiment of the present invention, a specific example of the format of the page information acquisition instruction is as follows:
[0041]
[0042] The type field indicates the type of the current instruction, the value of the page_config field is an array, each array element represents a page element, and the current instruction contains the information content of the current page element, the attributes of the element information, and the method of obtaining the element information. For example: if you want to obtain the UIButtonn element in the page and obtain the title attribute of the UIButtonn element, you can obtain it by calling the title method of the element object.
[0043] Step S206, after the IOS-SDK side receives the page information acquisition instruction, it sends the page information to the server side. Then, in step S207, after receiving the page information, the server side transmits the current page information to the editor, so that the editor loads the current page information and displays the current page information.
[0044] Specifically, in step S206, after receiving the page information acquisition instruction, the IOS-SDK end traverses each element in the current page and encapsulates the result of the page information. In the embodiment of the present invention, the format of the page information includes the following fields: the type field indicates that the server needs to be informed that the message is page information; pages is an array, each array element represents a root (there may be multiple roots displayed at present, for example: in the case of multiple windows, there are two roots), page_name represents the page name; picture represents the data corresponding to the page picture; views is an array, representing all page elements under the current root, each array element contains several attribute information of the corresponding page element, such as id is used to represent the identity of the element, clickable indicates whether a click event can be triggered, visible indicates whether it is visible, x_page, y_page respectively represent the x, y coordinates of the current element in the page; x, y respectively represent the x, y coordinates of the current element in the parent element, w, h respectively represent the width and height; children_id represents the child element; text represents the text content; classes represents the class inheritance relationship; location represents the location information of the page element. Location is an array, which is also used in element positioning. Each array element represents a page element, and from bottom to top, it is the element and the parent element of the element until the root element. In this way, the entire page structure in the embodiment of the present invention is a tree topology structure, which represents the parent-child relationship between each page element.
[0045] After the editor displays the current page information, it proceeds to step S208. In step S208, (the editor user) uses the editor to circle the page elements to edit the embedding points of the current page, generates corresponding embedding point information, and (after saving) sends the currently edited embedding point information to the server so that the server can save the embedding point information of the edited embedding points in the current page. Specifically, in step S208, the editor user uses the editor to circle the page elements to edit the embedding points of the current page to generate corresponding embedding point information. After the editor saves the embedding point information, the current embedding point information is sent to the server.
[0046] It should be noted that in an embodiment of the present invention, the embedding information set by the editor user not only needs to set the embedding element information, but also needs to set other information such as the associated attribute information and embedding element positioning method associated with the embedding element. Specifically, after completing the embedding editing, the IOS-SDK end will generate corresponding embedding information. At this time, the generated embedding information includes but is not limited to: the identification of one or more embedding elements, the position of each embedding element in the page structure, the type of each embedding element, the associated attributes of each embedding element (the associated attribute information includes the associated element positioning information, attribute type information, and attribute content information, etc., for example: the current embedding element is an A tag in the page, and its associated attributes can be the text content of the A tag and other content attributes related to the tag), the positioning method of the embedding element, the nearest parent element of the triggering embedding element and the associated element, the embedding effective range, the page effective range, and the effective version of the SDK. Among them, the positioning method of the embedding element is selected from one or more combinations of location positioning, attribute positioning, and peer element positioning.
[0047] Furthermore, in the embodiment of the present invention, the associated attribute may support one or a combination of Boolean type, string type, number type, and text type.
[0048] Furthermore, in an embodiment of the present invention, the associated attribute of an element supports user-defined regular expression filtering.
[0049] In this way, the tracking point information generated by the embodiment of the present invention not only includes page element information, but also includes a variety of other types of information, so that after the tracking point is created, a richer variety of collected data can be collected at the tracking point, and a wider range of data materials can be provided for the subsequent data analysis process based on the tracking point collection results, thereby analyzing more accurate user needs.
[0050] After the server receives the embedded point information edited for the current page sent by the editor, it enters step S209. In step S209, the server saves the currently received embedded point information to the database, marks the current embedded point as a non-deployed state, and sends the currently received embedded point information to the IOS-SDK end, thereby entering step S210.
[0051] In step S210, the IOS-SDK side will parse the currently received embedding information, and bind the embedding elements of the current page according to the current embedding information. In step S210, the binding process will bind the page elements according to the embedding element positioning method set by the user in step S208. At this time, one or more located embedding elements will be obtained. Finally, after the IOS-SDK side displays these located embedding elements, it will enter step S211.
[0052] In step S211, the IOS-SDK side obtains the first trigger signal, and uses the signal to trigger the current embedding point, thereby generating embedding point trigger information, and then sends the currently generated embedding point trigger information to the server side, thereby entering step S212. In an embodiment of the present invention, the first trigger signal is a signal of a bound embedding point element obtained based on the user triggering step S210 in the embedding point editing stage. Furthermore, the embodiment of the present invention uses an OC-based runtime mechanism to identify the interception action indicated by the first trigger signal. Among them, the first trigger signal is selected from one of different modes such as gesture actions, click signals, and voice signals. It should be noted that the types of trigger signals described in the present invention include but are not limited to the above-mentioned gesture actions, clicks, voices, etc., as long as they are clear and specific page elements that can be directional. In addition, in an embodiment of the present invention, the embedding point trigger information includes the corresponding relationship between the embedding point and the embedding point element that can trigger the embedding point, the current embedding point information, the embedding point trigger time, the current event coordinates, the current device information, the attribute information of the embedding point, the web page information, etc.
[0053] It should be noted that when the tracking point is in a non-deployed state (tracking point editing stage), after displaying the located tracking point elements in step S210, the IOS-SDK end user needs to determine one or more tracking point elements that ultimately trigger the current tracking point through the first trigger signal, thereby generating corresponding tracking point trigger information.
[0054] In step S212, after receiving the current embedding trigger information based on the embedding trigger stage, the server sends the current embedding trigger information based on the embedding trigger stage to the editor. In step S213, the editor receives the current embedding trigger information based on the embedding trigger stage from the server, and generates prompt information for triggering the embedding. At this time, the editor user confirms the current prompt information to determine that the embedding operation of locating the current embedding element has been successful, and then enters step S214.
[0055] Finally, in step S214, after the point tracking is successful, the editor sends a notification of changing the point tracking deployment status to the server, so that after receiving the notification of changing the point tracking deployment status, the server changes the state of the current point tracking from a non-deployed state to a deployed state. In one embodiment, after the IOS-SDK generates the point tracking trigger information and sends it to the editor through the server, the editor generates a notification of changing the point tracking deployment status after prompting the point tracking trigger, and the editor user controls the editor to send the current point tracking deployment status notification to the server by clicking the editor's deployment button. At this time, after receiving the notification of the current point tracking deployment status, the server changes the state of the current point tracking from a non-deployed state to a deployed state.
[0056] In this way, the entire point editing stage is completed through the above steps S201 to S214.
[0057] Figure 3 This is a specific flow chart of the visual data collection method based on IOS-SDK in the implementation stage of the embedding point. Figure 1 and Figure 3 , the process of the tracking point validation stage of the visual data collection method described in the embodiment of the present invention is described in detail. It should be noted that in the tracking point validation stage, the IOS-SDK terminal will directly communicate with the server.
[0058] Since the SDK is integrated on iOS devices, Figure 3 As shown, step S301 will perform a cold start operation on the SDK integrated on the IOS device. The IOS-SDK side will obtain the tracking point information corresponding to the tracking points deployed (created) in the current page stored in the server database from the server side through the Http method, thereby entering step S302.
[0059] Step S302, the IOS-SDK end binds the current embedding information to the current page according to the embedding information corresponding to all the created embeddings in the current page received. At this time, the IOS-SDK end intercepts the event trigger mechanism formed according to the bound target embedding element to wait for and receive the user's second trigger signal.
[0060] In step S302, first (step S3021, not shown in the figure) the created embedding point information involved in the current page is parsed, that is, the received embedding point information is parsed, and then, (step S3022, not shown in the figure) the target embedding point element is located according to the defined element positioning method in the embedding point information, and the relevant attributes of the target embedding point element are obtained.
[0061] The following is an explanation of the implementation method of the tracking point information parsing process on the IOS-SDK side. After the editor saves the currently edited tracking point information, the server sends all the created tracking point information in the saved current page to the IOS-SDK side. Among them, the format of the tracking point information received by the IOS-SDK side in the above process includes the following fields: id represents the tracking point element identifier representing the identity of the tracking point element; event_type represents the type of the current tracking point; location represents the position of the tracking point element in the page structure; the related field represents the associated attributes corresponding to the tracking point element, which is an array, which means that multiple attributes can be reported. prop_name is used to identify which kind of property it is, pro_type is the property type, this field is an array, which can represent multiple properties, and each data bit represents an attribute; the key field indicates the identification of the property in the reported data after the tracking point is triggered (that is, the triggered flag of the tracking point element); the target field indicates the positioning information of the associated element attribute, which is the nearest parent element between the triggering tracking point element and the associated element; the step field indicates the number of steps of the tracking point triggering element to trace back to the parent element, and after tracing back to the parent element, the associated element is located through the location field; the props_binding field indicates the positioning of the element by property; the binding_range field represents the specified effective range of the tracking point; the pages field indicates the effective pages; the versions field indicates the effective version of the SDK.
[0062] After parsing the current embedding information, the IOS-SDK side will perform page embedding element positioning processing on the current page according to the element positioning method in the embedding information, thereby obtaining the corresponding target embedding element. In the embodiment of the present invention, since the element positioning method is a combination of one or more positioning methods, if the element positioning method parsed by the IOS-SDK side is only one, then the page embedding element is positioned using the location positioning method, or the attribute positioning method, or the same-level element positioning method, to obtain the positioning result of the corresponding method, that is, the target embedding element.
[0063] In addition, if there are multiple element positioning methods parsed by the IOS-SDK end, the corresponding defined methods are used to locate the embedded elements of the current page. When the embedded element positioning results obtained after each positioning process are the same, the element positioning operation of the current page is successful, and the embedded element positioning result is used as the target embedded element. In addition, when the embedded element positioning results obtained after each positioning process are inconsistent, the element positioning operation of the current page fails. At this time, the user needs to be prompted accordingly to re-edit the embedded elements.
[0064] Figure 4This is an example diagram of the implementation principle of the location positioning method of the IOS-SDK-based visual data collection method in the effective stage of the tracking point in the embodiment of the present application. Figure 4 , the implementation principle of the location positioning method in the embodiment of the present invention on the IOS-SDK side is explained.
[0065] Location positioning locates page elements by matching topological locations, abstracting the page structure of the current page into a tree structure, such as Figure 4 As shown in the left figure, the page structure of the current page is a page tree structure. Figure 4 The right picture shows the location field contained in the tracking point information, which indicates the preset positioning method defined as the new_path positioning method for the current tracking point.
[0066] like Figure 4 As shown, the IOS-SDK side identifies the trigger signal from the user through the event interception mechanism. When the trigger signal input by the user points to (clicks) the page element of control 7, the IOS-SDK side first captures element 7, and compares nodes upward from node 7 to match element 7 (compare the attributes of the element, such as element name, position index in the parent element, element type, etc., with the child element response information in the location array). If the match is successful, continue to find the parent element upward for matching. If there is an unmatched node in the middle, the match fails until the last node 1 in the location field is matched successfully, that is, the final buried element is located. In this way, the buried element positioning result of the location positioning method is obtained.
[0067] The following describes the implementation principle of the attribute positioning method on the IOS-SDK side in the embodiment of the present invention.
[0068] Whether the page element binding method predefines the attribute positioning method is determined based on the props_binding field in the tracking point information. This positioning method ignores the position of the element in the page structure. An example of the specific implementation method of the props_binding field on the IOS-SDK side is as follows:
[0069]
[0070] The iOS SDK intercepts the element pointed to by the trigger signal from the user through the event interception mechanism. If the type (class) of the current element is ANSButton, the match is successful. In the attribute positioning method, there may be multiple page elements that match successfully. Therefore, if these elements are clicked, the tracking point will be triggered. Among them, the value of prop_name is an enumeration type. A specific example of this field is as follows:
[0071]
[0072] The above example indicates that all elements with "trigger events" in the current page will be matched successfully. These elements with "trigger events" will trigger the current tracking point. At this time, these elements with "trigger events" are the current tracking point element positioning results by attribute positioning method.
[0073] Furthermore, in one embodiment, if both location and attribute positioning methods are specified in the tracking point information, the IOS-SDK side will execute the above two positioning algorithms at the same time until all the element positioning results obtained by each method are matched, and the page positioning is successful.
[0074] The advantage of the location positioning algorithm is that it can accurately locate the target element and uniquely locate the target element. The disadvantage is that it cannot match after the page structure changes, such as: the triggering of the tracking point will fail after the page is revised. Positioning by attributes can solve this problem. No matter how the position of the element changes, it can be successfully located as long as the attributes (type, text) remain unchanged. The disadvantage is that it may locate multiple elements (if the user just wants to locate multiple elements, it is not a disadvantage). Therefore, when editing tracking points, the flexible use of these two positioning methods can meet complex business scenarios.
[0075] Figure 5 This is an example diagram of the implementation principle of the same-level element positioning method in the IOS-SDK-based visual data collection method of the embodiment of the present application during the effective stage of the tracking point. The same-level element positioning method is used to meet the tracking point requirements of list elements. Figure 5 It shows a typical list element, with a variable number of sub-elements. When sliding the list, it uses element reuse technology (i.e., removing invisible elements, modifying their appearance, and then adding them to the list to achieve the visual effect of sliding. Currently supported elements include UITableView, UICollectionView, and sub-elements of the above two elements). If the user wants to count the clicks on zan-1, the first row, or all rows, the same-level positioning function is required.
[0076] Reference below Figure 5, the implementation principle of the same-level element positioning method in the embodiment of the present invention on the IOS-SDK side is explained. In the same-level element positioning method, the located point element positioning results include two types: list fixed row point and list same-level point.
[0077] In the list fixed row embedding point, refer to Figure 5 For example, the user wants to place a tracking point on the first row (i.e., "zan-0"). In this case, the format of the location field in the tracking point information sent by the server is:
[0078]
[0079]
[0080] In the same-level tracking of the list, if the user wants to use all the zan buttons of the list as tracking points and report the title in the same row as the zan button, in this case, the only difference between the location field in the tracking information sent by the server and the fixed-row tracking of the list is that there are no section and row fields. At this time, the IOS-SDK side will recognize that the section and row fields are missing in the tracking information, and use this to determine all the buttons that meet the location match under the binding list, and use the elements corresponding to the positions of these buttons as the tracking element positioning results of the current same-level element positioning method. After all buttons are clicked, the current tracking will be triggered, so that the position of the element associated with this row is located according to the related field in the tracking information, and the title (for example: section:0-row:0) attribute is obtained.
[0081] In addition, after the target buried point element is successfully located, the embodiment of the present invention will also obtain the associated attribute information of the target buried point element in step S302. The associated attribute of the buried point element is saved in the related field in the buried point information. Taking the buried point of the same level in the previous list as an example, if the buried point element is the button of this row, then the associated attribute of the buried point element is the title of this row. At this time, a specific example of the related field is as follows:
[0082]
[0083]
[0084] as follows Figure 5As shown in the figure, if the tracking trigger element is "zan-0", the IOS-SDK will trace back to its parent element ANSTableViewCell according to the step field, and then find the element "section:0-row:0" according to the location field, so as to obtain the associated attribute of the tracking element: text through the getText function.
[0085] Finally, in step S302, the IOS-SDK side will generate corresponding embedding point effectiveness feedback information after successfully locating the target embedding point element and the associated attributes of the target embedding point element, and then send the embedding point effectiveness feedback information to the server to make the embedding point of the IOS-SDK side effective. At this time, wait for the effective embedding point to be activated (i.e., wait for the second trigger signal). Specifically, the IOS-SDK side reports the embedding point effectiveness feedback information to the server after packaging it. The embedding point effectiveness feedback information includes: the user identification code of the web page, the activation time, the activated embedding point element and the corresponding event information.
[0086] After completing the page element binding process in the embedding point validation stage, enter step S303 to wait for the current embedding point to be triggered. It should be noted that in the embedding point validation stage, it is necessary to display the embedding point information stored on the server side in step S302, and use the above preset program to bind the elements of the current page, so as to bind the corresponding relationship between the current embedding point and the corresponding embedding point elements in the embedding point editing stage to the current page, and then wait until the IOS-SDK end user triggers the embedding point of the current page through the second trigger signal.
[0087] In step S303, the IOS-SDK side obtains the second trigger signal, thereby entering step S304. In an embodiment of the present invention, the second trigger signal is a signal of the bound tracking element obtained based on the user triggering step S302 in the tracking effectiveness stage. Furthermore, the embodiment of the present invention uses an OC-based runtime mechanism to identify the interception action indicated by the second trigger signal. Among them, the second trigger signal is selected from one of different modes such as gesture actions, click signals, and voice signals. It should be noted that the types of the second trigger signal described in the present invention include but are not limited to the above-mentioned gesture actions, clicks, voices, etc., as long as they are clear and specific page elements that can be directional.
[0088] In step S304, the IOS-SDK side will determine the triggered buried point and the corresponding buried point element according to the indication of the second trigger signal, thereby generating the buried point trigger information based on the effective stage of the buried point, and sending the current buried point trigger information based on the effective stage of the buried point to the server side, and in step S305, the server will save the received buried point trigger information based on the effective stage of the buried point as the data collection result of the current buried point into the database, so as to use the data content in the database as the data basis for subsequent buried point analysis. In step S304, the IOS-SDK side continuously detects whether the current buried point is triggered. Specifically, in step S304, the second trigger signal is detected to determine whether the page element of the effective buried point in the website is triggered. After the second trigger signal indicates the target buried point element corresponding to the current target buried point, the current buried point is triggered; when no buried point element is indicated, the buried point in the current page is not triggered.
[0089] It should be noted that in the embodiment of the present invention, the content and format of the tracking trigger information generated based on the tracking editing stage and the tracking trigger information generated based on the tracking effectiveness stage are the same, but the functions of the two are different. Specifically, the tracking trigger information generated in the tracking editing stage is used to project the App page, control, tracking point and other information in the IOS-SDK end to the Web (web page) editor. The tracking information generated by the Web editor in the editing stage is the page information based on the App page and control displayed to the editor end user, and the tracking information is obtained after the tracking editing, and then the tracking information is saved on the server. The tracking point trigger information generated based on the effectiveness stage is the created tracking point information in each page generated in the tracking point editing stage pulled by the IOS-SDK from the server. Then, each time the IOS-SDK obtains the second trigger signal (the user triggers the corresponding event, such as: clicking the login button, the registration button, and other events), it searches for content that matches the tracking point element pointed to by the second trigger signal from all the created tracking point information. If the information is consistent, the match is successful (for example: the information of the IOS-SDK clicking the APP login button exists in the created tracking point information, then the match is successful), that is, the tracking point is triggered successfully.
[0090] Further, in step S304, the IOS-SDK side will search for the tracking point element corresponding to the signal from all deployed tracking points in the current page according to the indication of the second trigger signal, and determine the tracking point event triggered by the tracking point element, thereby generating the tracking point trigger information based on the tracking point effective stage.
[0091] Therefore, the present invention completes the visual data collection process based on the JS-SDK end constituted by the IOS-SDK end, the website end editor and the server through the above steps S201 to S214 and steps S301 to S305.
[0092] In addition, in order to meet more business scenarios, the present invention also provides a hybrid tracking communication protocol. The communication process not only requires the participation of the terminal (for example, mobile phone) SDK, but also requires the addition of the tracking information of the JS-SDK end to the H5 page embedded in the terminal native web page.
[0093] Now more and more Internet products are embedded with H5 pages. Figure 6 It is a schematic diagram of a scenario in which an IOS device is embedded in an H5 page in a visual data collection method based on IOS-SDK in an embodiment of the present application. Figure 6 It demonstrates the application scenarios of Internet products (e.g. IOS native interface) embedded in H5 pages.
[0094] iOS native pages and H5 pages (with iOS WKWebView elements as containers) are not in the same page structure and are developed in different languages. Such scenarios also require tracking statistics. Tracking of iOS native pages embedded with H5 pages is called Hybrid tracking.
[0095] In order to meet the needs of Hybrid tracking, not only the support of the IOS SDK is required, but also JavaScript SDK (JS-SDK for short) needs to be added to the H5 page. Hybrid tracking is realized through data transmission between the SDKs on both ends. The transmitted data mainly includes page structure, tracking information, cross-platform related attributes, and tracking trigger information. The data transmission uses the system interface provided by IOS WKWebView to execute the data transmission protocol. In this way, through the definition of the communication protocol of Hybrid tracking, the visual Hybrid tracking function is realized through communication between the JS-SDK end (i.e., the web page data collector, JS-SDK is a data collector written in javascript), the website editor, the server and the IOS-SDK end.
[0096] In the Hybrid point embedding embodiment described in the embodiment of the present invention, first, the data transmission and communication process of the point embedding editing process in the above-mentioned four-end visualized point embedding is explained.
[0097] (1) Open the tracking editor, and connect the IOS-SDK to the server through the ws method;
[0098] (2) Start the program on the IOS-SDK side, trigger the IOS-SDK side to connect to the server side through the ws method and report the device information;
[0099] (3) The server sends the device information reported by the IOS-SDK to the editor;
[0100] (4) The editor displays device information. After the editor user selects the current terminal device, the selected device information is sent to the server.
[0101] (5) The server sends a command to the selected device to obtain page structure information;
[0102] (6) The IOS-SDK generates the current page image and structure (hereinafter referred to as page information) and sends it to the server;
[0103] (7) The server sends the page information to the editor, and the editor displays the page information;
[0104] (8) The editor embeds the page to be embedded into the JS-SDK end through the iframe tag according to the page information (refer to step S201);
[0105] (9) The JS-SDK terminal opens the visual tracking status of the current tracking page (refer to step S202);
[0106] (10) The user uses the editor to edit the embedding point by circling the page element and sends the current embedding point information to the editor (see step S203);
[0107] (11) The editor sends a notification of saving the tracking point information including the current tracking point information to the server, and then the server saves the tracking point information to the database and marks the tracking point as non-deployed, and sends the current tracking point information to the IOS-SDK end (refer to step S204);
[0108] (12) The IOS-SDK end binds the currently received tracking information to the current page element;
[0109] (13) The user on the IOS-SDK side clicks on a page element on the page where a tracking point has been placed, triggering the tracking point. The IOS-SDK side sends the tracking point trigger information to the server side.
[0110] (14) The server sends the received tracking trigger information to the editor;
[0111] (15) The editor displays the tracking trigger information and confirms that the tracking is successful;
[0112] (16) The editor sends a tracking trigger message containing a notification of the changed tracking deployment status to the server, thereby completing the tracking editing stage on the IOS-SDK side.
[0113] (17) The editor requests a list of tracking points from the server (see step S205);
[0114] (18) The editor sends the tracking point list to the JS-SDK end through the postMessage communication method (see step S206);
[0115] (19) The JS-SDK end binds the embedding point information in the current embedding point list to the current page element (refer to step S207);
[0116] (20) The editor switches to test mode, and the JS-SDK selects the element bound to the tracking point in the tracking point page (see step S208);
[0117] (21) The JS-SDK terminal displays the trigger information of the embedding point and displays the prompt information that the embedding point has been successfully displayed near the currently selected embedding point element (refer to step S209);
[0118] (22) The JS-SDK side sends a notification of the change of the tracking point deployment status to the server side through the editor, thereby completing the tracking point editing stage of the JS-SDK side (refer to step S210).
[0119] Furthermore, in the Hybrid point burying embodiment described in the embodiment of the present invention, the data transmission and communication process of the point burying effectiveness process in the above-mentioned four-end visualized point burying is further described.
[0120] Since the implementation process of tracking points on the IOS-SDK side has been explained in the previous content, it will not be repeated here.
[0121] The process of IOS-SDK taking effect in visual tracking is to send the deployed tracking points to terminals across the network. The implementation process is as follows:
[0122] A. Use the browser to revisit or refresh the website where the current page is located. The JS-SDK obtains the tracking point information corresponding to the tracking points deployed in the current page from the server through HTTP.
[0123] B. The JS-SDK end binds the current embedding point information to the current page based on the embedding point information corresponding to the embedding point created in the current page;
[0124] C. After detecting that the currently effective tracking point is triggered, the JS-SDK sends the tracking point trigger information corresponding to the current tracking point to the server;
[0125] D. The server saves the received tracking trigger information as the data collection result of the current tracking point into the database.
[0126] In the actual application process, the JS-SDK side, website editor, server and IOS-SDK side will perform the point-tracking editing and validation operations on the JS-SDK side and IOS-SDK side respectively according to the corresponding processes of the above-mentioned point-tracking editing stage and point-tracking validation stage. Furthermore, in the process of editing and validating the Hybrid point-tracking based on the above four ends, it is necessary to improve some of the steps in the implementation of the above-mentioned overall process to form a complete communication protocol for solving the Hybrid point-tracking problem.
[0127] Furthermore, when the page structure information in the page information is transmitted between the above-mentioned JS-SDK, website editor, server and IOS-SDK, before the IOS-SDK edits the embedding point, it is necessary to first send the page information (including the page structure) to the server. If the current page information contains an H5 page, the H5 page information needs to be merged into the current page.
[0128] Specifically, first, the IOS-SDK side calls the page information based on the JS-SDK side. After receiving the page information based on the IOS-SDK side, the server sends a page information acquisition notification to the JS-SDK side, so that the JS-SDK side, under the instruction of the notification, feeds back the corresponding page information to the server, and further the server feeds back the page information based on the JS-SDK side to the IOS-SDK side. Then, the IOS-SDK side puts the page information based on the JS-SDK side into the h5 window attribute of the terminal web page window element, thereby transmitting the new page information to the server. In this way, the website page information currently stored by the server contains the page information of the H5 page, so that the updated page information can be obtained by the JS-SDK side later.
[0129] For example:
[0130] 1. The IOS-SDK calls the window.AnalysysAgent.getVisualDomList() function of the JS-SDK to notify the JS-SDK to obtain the page information (page structure). The JS-SDK calls the AnalysysAgentHybrid.onVisualDomList(string) function of the IOS-SDK to return the page information (page structure) of the current website.
[0131] 2. IOS-SDK puts the page information (page structure) into the h5_view attribute of the WebView element and uploads it to the server.
[0132] Furthermore, when the tracking point information is transmitted between the above-mentioned JS-SDK end, website editor, server and IOS-SDK end, when the tracking point information is parsed and the page is bound (involving the above-mentioned steps (12), (19), B, S302), if the current tracking point includes a Hybrid tracking point, or the tracking point is bound by attribute, then the IOS-SDK end needs to transmit these tracking point information to JS-SDK, and JS-SDK executes the binding of the H5 element.
[0133] Specifically, the IOS-SDK side receives the tracking information containing the marked Hybrid tracking points, and filters the Hybrid tracking points to generate new tracking information for the filtered Hybrid tracking points, and sends the new tracking information to the JS-SDK side through the server. Among them, the editor identifies the tracking information edited by the user, combines the page information obtained from the server, and when it is determined that the currently edited tracking information contains Hybrid tracking points or the tracking points are only bound by attribute positioning, the current tracking points are marked as Hybrid tracking points in the tracking information, and the updated (marked) tracking information is sent to the IOS-SDK side through the server.
[0134] For example:
[0135] 1. When the editor saves the hybrid tracking point, add the is_hybrid field to the tracking point structure corresponding to the tracking point information and set it to 1, save it to the server, and then send it to the IOS-SDK by the server;
[0136] 2. After IOS-SDK filters out the Hybrid tracking points, it sends the updated tracking point information to JS-SDK (JS-SDK determines whether the current tracking point is a Hybrid tracking point based on whether the is_hybrid field in the tracking point information is 1 or whether the tracking point is only bound by attributes). IOS-SDK calls the window.AnalysysAgent.onEventList(event_list) function of JS-SDK to pass the tracking point information containing Hybrid tracking points. In addition, after the H5 page of IOS-SDK is loaded, JS-SDK will also call the AnalysysAgentHybrid.getEventList() interface function of IOS-SDK to obtain the tracking point information containing Hybrid tracking points.
[0137] Furthermore, when the tracking point information is transmitted between the above-mentioned JS-SDK end, website editor, server and IOS-SDK end, after the tracking point information is parsed and the page binding is completed, if the current tracking point is a Hybrid tracking point, it is necessary to associate the associated attributes of the terminal page element; if the current tracking point is a non-Hybrid tracking point, it is necessary to associate the associated attributes of the H5 page element.
[0138] Specifically, in one embodiment, (involving the above steps (12), (19), B, S302) if when binding the embedding point of the current page, it is determined that the embedding point is a hybrid embedding point (JS-SDK determines whether the current embedding point is a hybrid embedding point based on whether the is_hybrid field in the embedding point information is 1 or whether the embedding point is only bound by attribute), then the associated element attributes of the current embedding point are sent to the JS-SDK end through the server, so that the associated element attributes containing the H5 page element are used as the associated element attributes of the current embedding point.
[0139] For example: if the current tracking point is Hybrid, then the related element attributes of the IOS-SDK side are associated. Among them, the child node of the related field will contain the location field. JS-SDK uses this field to determine the attribute associated with the terminal page element. When the event is triggered, the AnalysysAgentHybrid.getProperty(related) function of the IOS-SDK side will be called to obtain the related element attributes of the current JS-SDK trigger tracking point.
[0140] In another embodiment, (involving the above steps (12), (19), B, S302), if when binding the embedding point of the current page, it is determined that the embedding point is a non-Hybrid embedding point (JS-SDK determines whether the current embedding point is a Hybrid embedding point based on whether the is_hybrid field in the embedding point information is 1 or whether the embedding point is only bound by attributes), then when the IOS-SDK detects that the current embedding point is triggered, it sends a first notification to the JS-SDK end through the server, and obtains the embedding point information containing the attribute information of the associated elements of the current embedding point through the server. Among them, after receiving the first notification, the JS-SDK end outputs the embedding point information containing the attribute information of the associated elements of the current embedding point.
[0141] For example, if the current tracking point is non-Hybrid, it needs to be associated with the H5 page element. The related field subnode will contain the h5_path field. IOS-SDK uses this field to determine the attribute associated with the H5 page element. When the event is triggered, the window.AnalysysAgent.getProperty(related) interface function of JS-SDK will be called to notify IOS-SDK that the associated element attribute of the current tracking point needs to be obtained. The AnalysysAgentHybrid.onProperty(prIOS-SDKoperty) interface function called by JS-SDK returns the associated attribute value.
[0142] Furthermore, when the tracking information is transmitted between the JS-SDK, website editor, server and IOS-SDK, the transmission protocol of the tracking trigger information will be improved for the above four-end communication process (involving the above steps (14), (16), (21), C, S203). Specifically, after the JS-SDK detects that the current Hybrid tracking is triggered, the corresponding tracking trigger information is transmitted to the server through the IOS-SDK.
[0143] For example: After JS-SDK obtains the tracking information corresponding to the Hybrid tracking, it will bind the page elements to the tracking information. After the event is triggered, JS-SDK will call the AnalysysAgentTrack interface function of IOS-SDK to transmit the tracking trigger information. At this time, IOS-SDK will report the tracking trigger information to the server. Due to the data transmission regulations through the network and the unified data transmission through IOS-SDK, JS-SDK does not have the data reporting function. Therefore, after IOS-SDK obtains the data to be transmitted through the interactive interface (AnalysysAgentTrack) with JS-SDK, it needs to be reported to the server by IOS-SDK.
[0144] The present invention discloses a visual data collection method and system based on IOS-SDK. The method and system first use a visual editor to circle and select points, solve the problem of complex point-burying operation and large amount of reported data, so as to accurately locate the trigger element; use the attribute positioning method to locate the page element, thereby solving the problem of positioning failure caused by inconsistent positions of page elements of different versions, and using the same-level point-burying technology to simplify the reused element points (for example: multiplexed elements such as UITableViewCell and UICollectionViewCell), and then solve the point-burying scheme under complex business scenarios. In addition, the present invention can embed the associated attribute information related to the buried point element in the buried point information, collect more abundant data at the buried point, further, provide more types of data information for the data analysis stage, and analyze the buried point collection data from a multi-dimensional perspective, thereby improving the accuracy of the data analysis results. In addition, the present invention also provides a complete communication protocol that can process Hybrid buried points, so that the visual data collection method of the present invention can adapt to the buried point scheme under different business occasions (different operating systems).
[0145] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any person familiar with the technology within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0146] It should be understood that the embodiments disclosed in the present invention are not limited to the specific structures, processing steps or materials disclosed herein, but should be extended to equivalent substitutions of these features understood by ordinary technicians in the relevant field. It should also be understood that the terms used herein are only used for the purpose of describing specific embodiments and are not meant to be limiting.
[0147] The "one embodiment" or "embodiment" mentioned in the specification means that the specific features, structures or characteristics described in conjunction with the embodiment are included in at least one embodiment of the present invention. Therefore, the phrases "one embodiment" or "embodiment" appearing in various places throughout the specification do not necessarily refer to the same embodiment.
[0148] Although the embodiments disclosed in the present invention are as above, the above contents are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the patent protection scope of the present invention shall still be subject to the scope defined in the attached claims.
Claims
1. A visual data collection method based on IOS-SDK, comprising: The IOS-SDK side receives the page information acquisition instruction and feeds the page information back to the editor through the server, which is the website backend server; The IOS-SDK end obtains the embedded point information obtained after the embedded point editing of the current page, and binds it to the current page, wherein the embedded point information is edited by the editor after displaying the page information, and is sent to the IOS-SDK end through the server, and the embedded point information includes but is not limited to: the identification of the embedded point element, the position of the embedded point element in the page structure, the type of the embedded point element, the associated attribute information of the embedded point element, the positioning method of the embedded point element, the embedded point effective range, the page effective range and the effective version, wherein the positioning method of the embedded point element is selected from a combination of location positioning, attribute positioning and same-level element positioning, and the associated attribute information includes associated element positioning information, attribute type information and attribute content information; The IOS-SDK end obtains the first trigger signal and triggers the current burying point, thereby generating burying point trigger information, and sends the burying point trigger information to the editor through the server, so that the editor can confirm the burying point element corresponding to the current burying point and complete the creation of the page burying point. The burying point trigger information includes the corresponding relationship between the burying point and the burying point element that can trigger the burying point, the current burying point information, the burying point trigger time, the current trigger event coordinates, the current device information, the attribute information of the burying point and the web page information; Access the current IOS-SDK page through a browser, and obtain the tracking points created in the current page from the server; The IOS-SDK side parses the created tracking point information involved in the current page, and locates the target tracking point element according to the defined element positioning method, obtains the associated attributes of the target tracking point element, and thus binds the created tracking point information to the current page, including: when the element positioning method is one, the page tracking point element is located by using the location positioning method or the attribute positioning method or the same-level element positioning method to obtain the positioning result of the corresponding method. The same-level element positioning method is used to meet the tracking point requirements of list elements. In the same-level element positioning method, the located tracking point element positioning results include two categories: list fixed row tracking points and list same-level tracking points; when there are multiple defined element positioning methods, if the tracking point element positioning results obtained after each positioning process are the same, the element positioning operation of the current page is successful, and the tracking point element positioning result is used as the target tracking point element; otherwise, it fails; The IOS-SDK end obtains the second trigger signal, determines the triggered embedding point and the corresponding embedding point element, generates embedding point trigger information based on the embedding point effective stage, and transmits it to the server, wherein, During the tracking editing stage, WebSocket is used to communicate between the editor and the IOS-SDK end, and between the editor and the server. During the tracking validation stage, the server and the IOS-SDK end communicate through Http.
2. The visual data collection method according to claim 1, characterized in that: The embedding point information is edited by circling the page element.
3. The visual data collection method according to claim 1, characterized in that: The trigger signal is identified using an OC-based runtime mechanism, where the trigger signal is selected from one of a gesture action, a click signal, and a voice signal.
4. The visual data collection method according to any one of claims 1 to 3, characterized in that: The method further comprises: Calling the page information based on the JS-SDK end, wherein the server sends a page information acquisition notification to the JS-SDK end after receiving the page information based on the IOS-SDK end, so that the JS-SDK end feeds back the corresponding page information to the server and further feeds back to the IOS-SDK end under the instruction of the notification; The page information based on the JS-SDK end is placed in the h5 window attribute of the terminal web page window element, thereby transmitting the new page information to the server.
5. The visual data collection method according to claim 4, characterized in that: The process of binding the tracking point also includes: Receive the tracking point information containing the Hybrid tracking point, filter the Hybrid tracking points, thereby generating new tracking point information, and then send the new tracking point information to the JS-SDK end through the server, wherein, The editor identifies the tracking point information edited by the user, and when it contains a Hybrid tracking point or the tracking point is bound only by attribute positioning, the current tracking point is marked as a Hybrid tracking point in the tracking point information, and the updated tracking point information is sent to the IOS-SDK end through the server.
6. The visual data collection method according to claim 5, characterized in that: If the current tracking point is a Hybrid tracking point, the associated element attributes of the current tracking point are sent to the JS-SDK end through the server; If the current embedding point is a non-Hybrid embedding point, then when the current embedding point is detected to be triggered, a first notification is sent to the JS-SDK end through the server, and the embedding point information containing the associated element attribute information of the current embedding point is obtained through the server, wherein the JS-SDK end outputs the embedding point information containing the associated element attribute information of the current embedding point after receiving the first notification.
7. The visual data collection method according to claim 5 or 6, characterized in that: After receiving the Hybrid tracking step, it also includes: Obtain the embedding point trigger information generated by the JS-SDK end after the hybrid embedding point is bound and the embedding point is triggered, and then transmit the current embedding point trigger information to the server.
8. A visual data acquisition system based on IOS-SDK, characterized in that: The visual data acquisition system executes the method according to any one of claims 1 to 7, and the visual data acquisition system comprises: The IOS-SDK end is used to first receive the page information acquisition instruction, and feed back the page information to the editor through the server, and then obtain the buried point information obtained after editing the buried point on the current page, and bind it to the current page, and then obtain the first trigger signal and trigger the current buried point, thereby generating the buried point trigger information, and send the buried point trigger information to the editor, so that the editor can confirm the buried point element corresponding to the current buried point, complete the creation of the page buried point, and access the current page, and obtain the buried point created in the current page from the server, and then bind the created buried point information to the current page, and finally obtain the second trigger signal, based on which, determine the triggered buried point and the corresponding buried point element to generate the buried point trigger information based on the buried point effective stage, and then transmit it to the server for storage, wherein the buried point information is edited by the editor after displaying the page information, and sent to the IOS-SDK end through the server; The editor communicates with the JS-SDK and the server via WebSocket; and The server communicates with the JS-SDK end via Http, and is used to store and transmit page information of website pages, information on embedded points created in each page, and embedded point triggering information of embedded points created in each page.
Citation Information
Patent Citations
Method and system for calculating purchase route of mobile terminal user
CN106909372A
Hybrid application point burying method, mobile terminal and system
CN108182060A
Visual point burying method for cross-platform mobile terminal
CN108304176A
Data displaying method and device
CN108334525A
A method and system for data acquisition and analysis based on iOS visual burial point
CN109508186A
