Visual tracking method and system based on JS-SDK
Through the visual point burying method based on JS-SDK, using the web editor and attribute positioning technology, combined with the Hybrid point burying protocol, accurate data collection in complex environments is achieved, which solves the complex operations and large amount of data in the existing technology. problems, improving the accuracy and richness of data collection.
Patent Information
- Application Number
- CN202011022932.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-25
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-09-25
AI Technical Summary
The visual point-burying technology of the existing data collection SDK is difficult to meet the collection needs in complex environments. The operation is complex and the amount of reported data is large, making it impossible to collect rich information related to page elements.
Adopt a visual point burying method based on JS-SDK, bury points through the circle selection method of the web page visual editor, use attribute positioning and sibling element positioning technology, and combine with the Hybrid point burying communication protocol to achieve precise positioning of page elements and enrich data collection.
It solves the problems of complex operations and large data volume, improves the accuracy and richness of data collection, adapts to the needs of buried points in different business scenarios, and provides multi-dimensional analysis capabilities.
Smart Images

Figure CN112162739B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data acquisition and processing, and in particular to a JS-SDK-based visualized point tracking method and system. 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 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. The visualization based on device-side selection uses the SDK host program running on the device when editing the buried points, generates the 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 mode. In addition, the visualization collection technology based on editor selection uses a separate web 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 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 point tracking method based on JS-SDK, including: obtaining a page to be tracked through an editor and activating a visual point tracking mode of the page; editing the points in the page and transmitting the point tracking information to a server through the editor; obtaining a point tracking list related to the current point tracking transmitted from the server through the editor, and binding the information in the point tracking list to the current page in a non-deployed state; when the editor is switched to test mode, confirming the point tracking elements to complete the creation of page point tracking; accessing the current page and obtaining the point tracking created in the current page from the server; binding the created point tracking information to the current page so that after the point tracking is triggered, the point tracking trigger information is saved on the server.
[0006] Preferably, in the step of embedding points in the editing page, editing is performed by circling the 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 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 new_path positioning, positioning by attributes and positioning of elements at the same level.
[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, after the step of binding the created embedding point information to the current page, it also includes: after the target embedding point element is successfully located, adding an event listener to the target embedding point element.
[0010] Preferably, the method also includes: connecting with the server through an editor, and obtaining a page information acquisition notification when the terminal SDK is connected to the server, wherein the page information acquisition notification is issued by the server after the terminal SDK sends the page information of the page to be embedded to the server; through the server, the page information of the page to be embedded is fed back to the terminal SDK, so that the terminal SDK puts the page information into 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 points and performing page binding, wherein the editor identifies the point information, and when it contains hybrid points or the points are bound only by attribute positioning, marks the current point as a hybrid point in the point information, and sends the updated point information to the terminal SDK via the server, so that after the terminal SDK filters out the hybrid points, the point information is sent to the web page data collector via the server.
[0012] Preferably, if the current burying point is a hybrid burying point, the associated element attributes about the current burying point stored in the terminal SDK will be called through the server; if the current burying point is a non-hybrid burying point, then after obtaining the first notification, the burying point information containing the associated element attribute information of the current burying point will be fed back to the terminal SDK through the server, wherein when the terminal SDK detects that the current burying point is triggered, the first notification is sent to the web page data collector through the server.
[0013] Preferably, after the step of receiving and binding the Hybrid burying point, it also includes: after the current Hybrid burying point is triggered, transmitting the corresponding burying point triggering information to the server through the terminal SDK.
[0014] On the other hand, the present invention also provides a visual point-burying system based on JS-SDK, and the visual point-burying system executes the method as described above, and the visual point-burying system includes: a web page data collector, which is used to first obtain the page to be buried through an editor, and activate the visual point-burying mode of the page, and then edit the points in the page, and transmit the point-burying information to the server through the editor, and then obtain the point-burying list related to the current point-burying transmitted from the server through the editor, bind the information in the point-burying list to the current page in a non-deployed state, and confirm the buried point when the editor is switched to test mode. Click the element to complete the creation of the page embedding point, access the current page, and obtain the embedding point created in the current page from the server, and finally bind the created embedding point information to the current page, so that after the embedding point is triggered, the embedding point triggering information can be saved on the server; the editor communicates with the web page data collector and the server through PostMessage; and the server communicates with the web page data collector through Http or Https, and is used to store and transmit the page information of the website page, the embedded point information created in each page, and the embedded point triggering information of the created embedded 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 point-burying method and system based on JS-SDK. The method and system first use the circle selection method of the web page visual editor to bury points, which solves the problems of complex point-burying operations and large amounts of reported data; the page elements are located by using attribute positioning, 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 solve the point-burying problem of list elements, and then can solve the point-burying scheme in complex business scenarios. In addition, the present invention can embed associated attribute information related to the point-burying elements in the point-burying information, can collect more abundant data at the point-burying, further, provide more types of data for the data analysis stage, and can analyze the point-burying 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 points, so that the visual point-burying method of the present invention can adapt to the point-burying 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 This is a step diagram of a visual tracking method based on JS-SDK in an embodiment of the present application.
[0020] Figure 2 It is a specific flow chart of the visualization tracking method based on JS-SDK in the tracking editing stage of an embodiment of the present application.
[0021] Figure 3 It is a specific flow chart of the visualization tracking method based on JS-SDK in the tracking effectiveness stage of the embodiment of the present application.
[0022] Figure 4 This is an example diagram of the implementation principle of the new_path positioning method of the JS-SDK-based visual tracking method in the tracking effective stage of the embodiment of the present application.
[0023] Figure 5 This is an example diagram of the implementation principle of the method for locating elements of the same level during the tracking point effectiveness stage of the visual tracking point method based on JS-SDK in an embodiment of the present application.
[0024] Figure 6 This is an example diagram of the implementation effect of the JS-SDK-based visual tracking method in an embodiment of the present application for obtaining relevant attributes of the target tracking element during the tracking effectiveness stage.
[0025] Figure 7 It is a schematic diagram of a scenario in which an Internet product is embedded in an H5 page in a visual tracking method based on JS-SDK in an embodiment of the present application. DETAILED DESCRIPTION
[0026] 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.
[0027] 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.
[0028] 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.
[0029] The existing SDK 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 click events of all elements. When analyzing 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 mode. In addition, the visualization collection technology based on editor selection uses a separate web 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.
[0030] Therefore, in order to solve the above technical problems, the present invention proposes a visual collection method (visualized point-burying method) based on JS-SDK, which is completed by a visual point-burying system. Among them, the visual point-burying system includes a web page data collector, a web page editor and a server. Specifically, in the point-burying editing stage, the method first obtains the page structure information of the page to be buried through the editor; then, in the visual point-burying mode, the point-burying is edited by circling the page element of the editor, and the point-burying information including at least the target point-burying element and the target element associated attribute information is input, so that the server saves the current point-burying information; then, the point-burying list containing the current point-burying information transmitted from the server is obtained through the editor; when the editor is in a non-deployed state, the current page is bound to the elements, so that when the editor is switched to a test state, the target point-burying element is selected, so as to complete the page point-burying creation task after the point-burying element is confirmed. Furthermore, the visual point-burying 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 web page data collector 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. After the target tracking point element is triggered and activated, the tracking point trigger information corresponding to the currently triggered element is sent to the server for storage.
[0031] 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.
[0032] 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 in the web-side data collector. Not only does it require the participation of the terminal SDK, but it is also necessary to add the point burying information of the web-side data collector 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 terminal SDK and the web-side data collector. 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 realizes the visual Hybrid point burying function completed by the communication between the web-side data collector, the web editor, the server and the terminal SDK through the definition of the communication protocol for Hybrid point burying.
[0033] Before describing the visualization point burying method of the present invention, the application environment of the current visualization point burying method is described. In an embodiment of the present invention, the visualization point burying method is executed by a visualization point burying system (the visualization point burying method is executed based on the visualization point burying system; and the current visualization point burying system is proposed based on the visualization point burying method described below). Figure 2 and Figure 3 The visual tracking system of the present invention includes: a web page data collector (the web page data collector is a data collector written in javascript), a website editor (hereinafter referred to as "editor") and a server (wherein the server is the background server of the website). In the tracking editing stage, the editor and the web page data collector, and the editor and the server communicate through the PostMessage interface. The server and the web page data collector communicate through Http / Https.
[0034] Furthermore, the communication between the editor and the web page data collector uses the postMessage communication method of iframe. During the tracking point editing stage, the web page data collector notifies the editor of the tracking point location and other information through the postMessage communication method. After the tracking point is deployed, it enters the tracking point effectiveness stage. At this time, the web page data collector obtains the tracking point information corresponding to the tracking point created on the page from the server through Http or Https.
[0035] Furthermore, the web page data collector is used to first obtain the page to be buried through the editor, and activate the visual burying mode of the page, and then edit the burying points in the page, and transmit the burying point information to the server through the editor, and then obtain the burying point list related to the current burying point transmitted from the server through the editor, bind the information in the burying point list to the current page in the non-deployment state, and when the editor switches to the test mode, confirm the burying point element to complete the creation of the page burying point, and access the current page, and obtain the burying point created in the current page from the server, and finally bind the created burying point information to the current page, so that after the burying point is triggered, the burying point trigger information is saved on the server. The server is used to store and transmit the page structure information of each page in the website, the burying point information of the created burying points in each page (including burying point association information) and the burying point trigger information of the created burying points in each page, etc. In addition, during the tracking point editing stage, the server is used to generate a corresponding tracking point list based on the tracking point information of the current page received from the web page data collector through the editor, and then feed the tracking point list back to the web page data collector through the editor for binding the tracking point elements of the current page.
[0036] Figure 1This is a step diagram of the visual tracking method based on JS-SDK in the embodiment of the present application. Figure 1 The JS-SDK-based visualization tracking method (i.e., the implementation method of the visualization tracking system) described in the present invention is described in detail.
[0037] like Figure 1 As shown, step S110, enter the point-burying editing stage, the web page data collector obtains the page to be buried through the editor, and activates the visual point-burying mode of the current page to be buried (i.e., the current page); step S120, the web page data collector uses the editor to edit the required configuration of the pending buried points in the current page to be buried, and transmits the buried point information corresponding to the pending buried points to the server through the editor; step S130, the web page data collector obtains the buried point list related to the buried point information corresponding to the current pending buried points transmitted from the server through the editor, and binds the information in the buried point list to the current page to be buried when the editor is in a non-deployed state, thereby locating one or more buried point elements; step S140, the web page data collector switches the editor to the test mode, and after triggering the final buried point element, the buried point confirmation is successful and the creation of the page buried point is completed, at this time, the buried point editing stage ends. In this way, the operation of creating page buried points is completed through the above steps S110 to S140.
[0038] Continue to refer Figure 1 After completing the task of deploying the buried points of the current page, the buried points effectiveness stage is entered. Step S150 uses the browser to access the current page again, and the web page data collector obtains the buried point information corresponding to all the created (deployed) buried points in the current page from the server; Step S160 In the buried point effectiveness stage, the web page data collector binds the current page according to the created buried point information; Step S170, after detecting that the deployed buried points are triggered, the web page data collector generates corresponding buried point trigger information, thereby sending the current buried point trigger information to the server for storage by the server. In this way, through the above steps S150 to S170, the process of sending the deployed buried points to the visited website and collecting the buried point trigger information after the buried points are triggered is completed, thereby realizing the visual data collection solution based on the editor.
[0039] Figure 2 This is a specific flow chart of the JS-SDK-based visualization tracking method in the tracking editing stage of the embodiment of the present application. Figure 1 and Figure 2 , the process of the point tracking editing stage of the visual point tracking method described in the embodiment of the present invention is described in detail.
[0040] like Figure 2As shown, in step S201, the web page data collector obtains the page structure information corresponding to the page to be embedded from the server through the editor, and the editor embeds the current page according to the current page structure information. In step S201, the web page data collector is connected to the editor under the operation of the first type of user (the first type of user is located at the web page data collector), and the embedding editor is opened. After the editor obtains the page structure information corresponding to the current page from the server, the current page structure information is embedded into the current page to be embedded through the iframe tag, thereby entering step S202.
[0041] In step S202, the web data collector activates the current page to a visual embedding state. In step S202, the web data collector sets the SDK in the current page to be embedded to a visual embedding state, automatically loads the SDK with the visualization function, and thus turns on the SDK of the current page to a visual embedding state, thereby entering step S203.
[0042] Furthermore, when the first type of user uses the editor to embed the current website page through the iframe tag, the web page data collector will receive the visualization mode activation instruction sent by the editor, and after passing the verification, activate the visualization tracking state of the page. The SDK implementation format of this process is as follows:
[0043]
[0044] Among them, the type field is the type of the above visual mode activation instruction, the value of the orgin field is the address embedded in the iframe, the value of the boss field is the parent window website address, and the isNewVisual field is the latest version of the current visual edit box. After the web data collector's instruction verification passes, the web data collector will return the following verification result to the editor. The format of the verification result is as follows:
[0045] {
[0046] "code": 200,
[0047] "type": "INIT",
[0048] "isNewVisual": true
[0049] }
[0050] The type field indicates that the editor is informed that the current verification result information is an initialization message. When the value of the code field is 200, it indicates that the verification is passed and the visualization tracking state has been activated. When the value of the code field is 400, it indicates that the verification is not passed and the current visualization tracking state has ended. The isNewVisual field indicates that the current visualization SDK is the latest version.
[0051] In step S203, the web page data collector edits the embedding points of the current page by circling the page elements in the editor, generates corresponding embedding point information, and sends the embedding point information to the editor, so that (step S204) the editor sends the current embedding point information to the server, and the server saves the embedding point information of the edited embedding points in the current page. Specifically, in step S203, 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 web page data collector saves the embedding point information, it sends the current embedding point information to the editor through the PostMessage communication method.
[0052] It should be noted that, in an embodiment of the present invention, the first type of user set the point information to not only set the point element information, but also set the associated attribute information and the point element positioning method and other information associated with the point element. Specifically, after completing the point editing, the web page data collector will generate the corresponding point information. At this time, the generated point information includes but is not limited to: the identification of one or more point elements, the position of each point element in the page structure, the associated attributes of each point element (the associated attribute information includes the associated element positioning information, attribute type information, and attribute content information, etc., for example: the current point element is the 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 type of each point element, the positioning method of the point element, the nearest parent element of the triggering point element and the associated element, the effective scope of the point, the effective scope of the page, and the effective version of the SDK. Among them, the positioning method of the point element is selected from one or more combinations of new_path positioning, attribute positioning, and peer element positioning.
[0053] 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.
[0054] Furthermore, in an embodiment of the present invention, the associated attribute of an element supports user-defined regular expression filtering.
[0055] 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.
[0056] In step S204, after the editor receives the current burying point information, the editor will send a burying point information saving notification including the current burying point information to the server, so that the editor notifies the server to save the current burying point information into the database. In addition, in step S204, after the server receives the burying point information saving notification, it marks the current burying point as a non-deployed state.
[0057] After the editor sends the above-mentioned point-of-care information saving notification to the server, it proceeds to step S205. In step S205, the editor requests the point-of-care list from the server. In step S206, after the editor receives the point-of-care list, it sends the current point-of-care list to the web page data collector through the postMessage communication method, so that the web page data collector receives the point-of-care list transmitted from the server by the editor. It should be noted that in the embodiment of the present invention, the point-of-care list is a collection of all the point-of-care information edited in step S204.
[0058] After the web page data collector receives the current embedding point list, it proceeds to step S207. In step S207, the web page data collector will parse the currently received embedding point list to obtain (one or more embedding point information input from the editor end), thereby binding the current embedding point information to the embedding point elements of the current page. In step S207, the binding process will bind the page elements according to the embedding point element positioning method set by the user in step S203. At this time, several located embedding point elements will be obtained. Finally, the web page data collector will display these located embedding point elements, thereby entering step S208.
[0059] In step S208, after the web page data collector generates the result of the embedding element binding, the editor is notified to switch to the test mode, so that after switching to the test mode, the first type of users can filter out some target embedding elements from the displayed embedding elements, thereby entering step S209. When filtering the displayed embedding elements, the first type of users can select some embedding elements from all the embedding elements displayed in the current embedding page as target embedding elements and click them, thereby selecting the target embedding elements.
[0060] In step S209, the web page data collector will display the embedding trigger information related to the current target embedding element near the target embedding element, and prompt the user that the embedding operation has been successful by displaying the embedding trigger information to the user, thereby entering step S210. It should be noted that in the embodiment of the present invention, the embedding trigger information includes the current embedding information, and the corresponding relationship between all embedding elements that can trigger the embedding matched by the current embedding information.
[0061] Step S210, after generating the embedding trigger information, the web page data collector will send the embedding trigger information containing the embedding deployment status change notification to the server through the editor, so that after receiving the embedding deployment status change notification, the server will convert the current embedding status from a non-deployed state to a deployed state. In one embodiment, after generating the embedding trigger information and sending it to the editor, when the editor receives the embedding deployment status change notification, the editor user controls the editor to send the current embedding deployment status notification to the server by clicking the editor's deploy button. At this time, after receiving the current embedding deployment status notification, the server will convert the current embedding status from a non-deployed state to a deployed state.
[0062] In this way, the entire point editing stage is completed through the above steps S201 to S210.
[0063] Figure 3 This is a specific flow chart of the JS-SDK-based visualization tracking method in the tracking validation stage of the embodiment of the present application. Figure 1 and Figure 3 , the process of the tracking point validation stage of the visual tracking point 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 web page data collector will communicate directly with the server.
[0064] like Figure 3 As shown, step S301 uses a browser to revisit or refresh the website webpage where the above-mentioned current page is located. The webpage data collector 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 through Http or Https, thereby entering step S302.
[0065] In step S302, the web page data collector binds the current embedding point information to the current page according to the embedding point information corresponding to the embedded point created in the current page.
[0066] 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.
[0067] The following is an explanation of the implementation method of the embedding information parsing process of the web page data collector. After the editor enables the server to save the embedding trigger information containing the embedding information, the server sends all the embedded information created in the saved current page to the editor. Further, the editor sends the current embedded information to the web page data collector through the postMessage communication method. Among them, the tracking point information includes the following fields: id represents the tracking point element identifier representing the identity of the tracking point element; the new_path field represents the position of the tracking point element in the page structure; the related field represents the associated attribute corresponding to the tracking point element, which is an array that can represent multiple attributes, and each data bit represents an attribute; the prop_name field is used to represent the content of the associated attribute, that is, to identify which type of associated attribute it is; the pro_type field represents the attribute type of the associated attribute; the key field represents the identification of the attribute in the reported data after the tracking point is triggered (that is, the triggered flag of the tracking point element); the target field represents 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 represents the number of steps that the tracking point triggering element traces back to the parent element, and then traces back to the parent element and then locates the associated element through the new_path field; the props_binding field represents the positioning element by attribute; the binding_range field represents the specified tracking point effective range; the pages field represents the effective pages; the versions field represents the effective version of the SDK.
[0068] After parsing the current embedding information, the web page data collector 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 web page data collector parses only one element positioning method, then the page embedding element is positioned using the new_path 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.
[0069] In addition, if there are multiple element positioning methods parsed by the web page data collector, 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.
[0070] Figure 4 This is an example diagram of the implementation principle of the new_path positioning method in the implementation stage of the visualization tracking method based on JS-SDK in the embodiment of the present application. Figure 4 , the implementation principle of the new_path positioning method in the embodiment of the present invention in the web page data collector is explained.
[0071] New_path positioning locates page elements by matching topological positions, 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 new_path field contained in the tracking point information. This field indicates the preset positioning method defined as the new_path positioning method for the current tracking point.
[0072] like Figure 4 As shown, when the web page data collector searches for the page element specified by the new_path field, it starts from the root node of the page tree and matches element 1 (compares the attributes of the page element with the child element response information in the new_path array, where the attributes of the page element, for example: element type name tagName, position index / row in the parent element, etc., in the direct child elements under the parent element, if there is no identical element, it is identified as index, and if there is an identical element, it is identified as row), and continues the subsequent matching in a pre-order traversal manner. If there is an unmatched node in the middle, the match fails until the last node 5 in new_path is matched successfully. At this time, the final buried element is located (the buried element positioning result of the current new_path positioning method).
[0073] The following is an explanation of the implementation principle of the attribute positioning method in the web page data collector in the embodiment of the present invention.
[0074] Whether the page element binding method pre-defines the attribute positioning method is determined based on the props_binding field in the embedding information. This positioning method ignores the position of the element in the page structure. The specific implementation method of the props_binding field in the web page data collector is as follows:
[0075]
[0076] When locating an element, the web data collector needs to start from the root node of the page and traverse the entire page structure tree in a pre-order traversal manner. If the type (class) of the current element is panel-title, the match is successful. In the attribute positioning method, there may be multiple page elements that match successfully, so if these elements are clicked, the tracking point will be triggered. Among them, the value of the field prop_name is an enumeration type. A specific example of this field is as follows:
[0077]
[0078] The above example indicates that all elements with "OK" text content on the current page will be matched successfully, and these "OK" elements will trigger the current tracking point. At this time, these "OK" elements are the current tracking point element positioning results by attribute positioning method.
[0079] Furthermore, in one embodiment, if both new_path and attribute positioning methods are specified in the tracking point information, the web page data collector 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.
[0080] The advantage of the algorithm for positioning by new_path 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.
[0081] Figure 5 This is an example diagram of the implementation principle of the same-level element positioning method in the JS-SDK-based visual tracking method of the embodiment of the present application during the tracking effective stage. The same-level element positioning method is used to meet the tracking requirements of list elements. Figure 5It shows a typical list element, with a variable number of sub-elements. When sliding or switching lists, the page structure with the same layout but different content is used. Currently, the one-time tracking point collection collects the tracking point triggering behavior of each item in the list, as well as the personalized content (associated attributes) contained in each item. If the user wants to count the clicks of the first item in the list, or the clicks of all items (distinguished by associated name or price), the same-level positioning function needs to be used.
[0082] Reference below Figure 5 , the implementation principle of the same-level element positioning method in the embodiment of the present invention in the web page data collector 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.
[0083] In the list fixed row embedding point, refer to Figure 5 For example, if a user wants to place a tracking point on the first item (i.e., model 1), if he clicks the second item (model 2) in the list, the tracking point set for the first item will not be triggered. In this case, the row field in the new_path field in the tracking point information sent by the server is used, which indicates the row number of the binding row in the page. At this time, the web page data collector determines that the tracking point is related to the list element through the row field, and determines that the first item needs to be bound.
[0084] In the same-level tracking of the list, if the user wants to mark all items in the list as tracking and report the title of each item, the only difference between the new_path in the tracking information sent by the server and the fixed-row tracking of the list is that there is no row field. At this time, the web data collector will recognize the lack of the row field in the tracking information, and use this to determine all the positions that match the new_path field under the bound list, and use the elements corresponding to these positions 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 can be located according to the related field in the tracking information, and the title attribute can be obtained.
[0085] 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:
[0086]
[0087]
[0088] Figure 6 This is an example diagram of the implementation effect of the JS-SDK-based visualization tracking method of the embodiment of the present application to obtain the relevant attributes of the target tracking element during the tracking effective stage. Figure 6 As shown, if the tracking trigger element is the second item in the list (Model 2), the web page data collector will trace back to its parent element a according to the step field in the tracking information, and then find the tracking element "Model 2" according to the h5_path field, and then obtain the associated attribute of the tracking element through the function textContent: text.
[0089] Finally, in step S302, the web page data collector 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 web page data collector effective. At this time, wait for the effective embedding point to be activated. Specifically, the web page data collector reports the embedding point effectiveness feedback information to the server after packaging it. The embedding point effectiveness feedback information includes: web page user identification code, activation time, activated embedding point element and corresponding events and other information.
[0090] In addition, in step S302, after successfully locating the target embedding element and the associated attributes of the target embedding element, the web page data collector will not only generate corresponding embedding effectiveness feedback information, but also add an event listener to the located target embedding element.
[0091] Specifically, after successful positioning, an event listener is added to the element through the system function document.addEventListener, so that after the user clicks the target embedding element, the web page data collector can obtain the event that triggers the current embedding event.
[0092] After completing the page element binding process in the effective stage of the buried point, enter step S303 to wait for the current buried point to be triggered. In step S303, after detecting that the currently effective buried point is triggered, the web page data collector sends the buried point trigger information corresponding to the current buried point to the server side, and in step S304, the server saves the received buried point trigger information as the data collection result of the current buried point into the database, so that the data content in the database is used as the data basis for subsequent buried point analysis. In step S303, the web page data collector continuously detects whether the current buried point is triggered. More specifically, in step S303, whether the current buried point is triggered is determined by detecting whether the first type of user clicks on the page element of the effective buried point in the website. After clicking the target buried point element corresponding to the current target buried point, the current buried point is triggered; if there is no click, the current buried point is not triggered.
[0093] Therefore, the present invention completes the JS-SDK-based visualization tracking formed between the web page data collector, the website editor and the server through the above steps S201 to S210 and steps S301 to S304.
[0094] 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 web-side data collector to the H5 page embedded in the terminal's native web page.
[0095] Now more and more Internet products are embedded with H5 pages. Figure 7 It is a schematic diagram of a scenario in which an Internet product is embedded in an H5 page in a visual tracking method based on JS-SDK in an embodiment of the present application. Figure 7 It demonstrates the application scenarios of Internet products (such as IOS native interface, Android native interface) embedded in H5 pages.
[0096] Android / IOS native pages and H5 pages (using Android WebView elements as containers or 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 Android / IOS native pages with embedded H5 pages is called Hybrid tracking.
[0097] In order to meet the needs of Hybrid tracking, not only the support of Android / iOS SDK is needed, but also JS-SDK 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 Android WebView / IOSWKWebView 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 the communication between the web data collector, web editor, server and terminal SDK.
[0098] 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.
[0099] (1) Open the tracking editor, which connects the terminal SDK to the server through ws (WebSocket);
[0100] (2) Start the terminal SDK program, trigger the terminal SDK to connect to the server through WS mode, and report the device information;
[0101] (3) The server sends the device information reported by the terminal SDK to the editor;
[0102] (4) The editor displays device information. After the editor user selects the current terminal device, the selected device information is sent to the server.
[0103] (5) The server sends a command to the selected device to obtain page structure information;
[0104] (6) The terminal SDK generates the current page image and structure (hereinafter referred to as page information) and sends it to the server;
[0105] (7) The server sends the page information to the editor, and the editor displays the page information;
[0106] (8) The editor embeds the page to be embedded into the web data collector through the iframe tag according to the page information (refer to step S201);
[0107] (9) The web data collector opens the visualized tracking state of the current tracking page (see step S202);
[0108] (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);
[0109] (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 terminal SDK (refer to step S204);
[0110] (12) The terminal SDK binds the currently received embedding information to the current page element;
[0111] (13) The terminal SDK user clicks on a page element with embedded points on the page, triggering the embedding point. The terminal SDK sends the embedding point trigger information to the server.
[0112] (14) The server sends the received tracking trigger information to the editor;
[0113] (15) The editor displays the tracking trigger information and confirms that the tracking is successful;
[0114] (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 of the terminal SDK.
[0115] (17) The editor requests a list of tracking points from the server (see step S205);
[0116] (18) The editor sends the embedding list to the web page data collector via the postMessage communication method (see step S206);
[0117] (19) The web page data collector binds the embedding point information in the current embedding point list to the current page element (refer to step S207);
[0118] (20) The editor is switched to the test mode, and the web data collector selects the element bound to the tracking point in the tracking point page (see step S208);
[0119] (21) The web page data collector displays the embedding trigger information and the prompt information that the embedding is successful near the currently selected embedding element (refer to step S209);
[0120] (22) The web-side data collector sends a notification of the change of the tracking point deployment status to the server through the editor, thereby completing the tracking point editing stage of the web-side data collector (refer to step S210).
[0121] 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.
[0122] Since the implementation process of the web data collector has been explained in the previous content, it will not be repeated here.
[0123] The process of the terminal SDK taking effect in the visual tracking point is to send the deployed tracking points to the terminals in the entire network. The implementation process is as follows:
[0124] A. Cold start the program integrated with SDK on the terminal. The terminal SDK obtains the tracking point information corresponding to the deployed tracking points from the server through Http / Https.
[0125] B. The terminal SDK parses the acquired tracking information and binds the tracking information to the terminal web page, thereby intercepting the event triggering mechanism corresponding to the tracking point;
[0126] C. The terminal SDK obtains trigger information, wherein the trigger information is selected from one of the modes such as gesture action and click signal;
[0127] D. After detecting that the currently effective tracking point is triggered, the terminal SDK sends the tracking point trigger information (in the effective stage) corresponding to the currently triggered tracking point to the server;
[0128] E. The server side uses the embedding trigger information (in the effective stage) as the data collection result after the embedding is triggered, and saves it in the database for data analysis.
[0129] In actual application, the web data collector, web editor, server and terminal SDK will respectively perform the point-of-sale editing and validation operations of the web data collector and terminal SDK according to the corresponding processes of the above-mentioned point-of-sale editing stage and point-of-sale validation stage. Furthermore, in the process of editing and validating the hybrid point-of-sale based on the above-mentioned four terminals, 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-of-sale problem.
[0130] Furthermore, when the page structure information in the page information is transmitted between the above-mentioned web data collector, web editor, server and terminal SDK, the terminal SDK needs to first send the page information (including the page structure) to the server before editing the embedding point. If the current page information contains an H5 page, the H5 page information needs to be merged into the current page.
[0131] Specifically, first, the web-side data collector is connected to the server through the editor. When the terminal SDK is successfully connected to the server and the server receives the page information sent by the terminal SDK, the web-side data collector will receive the page information acquisition notification (sent by the editor). Among them, the page information acquisition notification is sent by the server through the editor after the terminal SDK sends the page information of the page to be embedded to the server. Then, the web-side data collector feeds back the page information of the page to be embedded to the terminal SDK through the server, so that the terminal SDK puts the page information 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 on the server contains the page information of the H5 page, so that the updated page information can be obtained by the web-side data collector later.
[0132] For example:
[0133] 1. The terminal SDK calls the window.AnalysysAgent.getVisualDomList() function of JS-SDK to notify JS-SDK to obtain page information (page structure). JS-SDK calls the AnalysysAgentHybrid.onVisualDomList(string) function of the terminal SDK to return the page information (page structure) of the current website.
[0134] 2. The terminal SDK puts the page information (page structure) into the h5_view attribute of the WebView element and uploads it to the server.
[0135] Furthermore, when the tracking point information is transmitted between the above-mentioned web data collector, web editor, server and terminal SDK, when the tracking point information is parsed and the page is bound, if the current tracking point includes Hybrid tracking point, or the tracking point is bound by attribute, then the terminal SDK needs to transmit these tracking point information to JS-SDK, and JS-SDK will perform the binding of H5 elements.
[0136] Specifically, the web page data collector or terminal SDK receives the point information containing hybrid points sent by the server through the editor, and binds the current page according to the current point information (involving the above steps (12), (19), B, S302). The editor identifies the point information edited by the user, and combines it with the page information obtained from the server. When it is determined that the point information contains hybrid points or the current points are only bound by attribute positioning, the current points are marked as hybrid points in the current point information, and the updated point information is sent to the terminal SDK through the server. After the terminal SDK filters out the hybrid points, the updated point information is sent to the web page data collector through the server and the editor in turn, so that the point information obtained by the web page data collector is information that marks whether the point is a hybrid point.
[0137] For example:
[0138] 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 terminal SDK by the server;
[0139] 2. After the terminal 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). The terminal SDK calls the window.AnalysysAgent.onEventList(event_list) function of JS-SDK to pass the tracking point information containing the Hybrid tracking points. In addition, after the H5 page of the terminal SDK is loaded, JS-SDK will also call the AnalysysAgentHybrid.getEventList() interface function of the terminal SDK to obtain the tracking point information containing the Hybrid tracking points.
[0140] Furthermore, when the tracking point information is transmitted between the above-mentioned web data collector, web editor, server and terminal SDK, 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.
[0141] 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 stored in the terminal SDK will be called through the server side to use the associated element attributes of the H5 page element as the associated element attributes of the current embedding point.
[0142] For example: if the current tracking point is Hybrid, the associated element attributes of the terminal SDK are associated. Among them, the child nodes of the related field will contain the location field. JS-SDK uses this field to determine the attributes associated with the terminal page element. When the event is triggered, the AnalysysAgentHybrid.getProperty(related) function of the terminal SDK will be called to obtain the associated element attributes of the current JS-SDK trigger tracking point.
[0143] 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 attribute), then after JS-SDK obtains the first notification, the embedding point information containing the attribute information of the element associated with the current embedding point is fed back to the terminal SDK through the server. Among them, when the terminal SDK detects that the current embedding point is triggered, it sends the first notification to the web page data collector through the server.
[0144] For example: if the current tracking point is non-Hybrid, it needs to be associated with the H5 page element. The h5_path field will be included in the child node of the related field. The terminal 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 the JS-SDK will be called to notify the terminal SDK that the associated element attribute of the current tracking point needs to be obtained. The JS-SDK calls the AnalysysAgentHybrid.onProperty(property) interface function of the terminal SDK to return the associated attribute value.
[0145] Furthermore, when the embedding information is transmitted between the web page data collector, web page editor, server and terminal SDK, the transmission protocol of the embedding trigger information will be improved for the above four-end communication process (involving the above steps (14), (16), (21), D, S203). Specifically, after the web page data collector detects that the current hybrid embedding is triggered, the corresponding embedding trigger information is transmitted to the server through the terminal SDK.
[0146] 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 the terminal SDK to transmit the tracking trigger information. At this time, the terminal SDK will report the tracking trigger information to the server. Since in the Hybrid mode, the terminal SDK is the main body of sending the tracking trigger information, JS-SDK will transmit the tracking trigger information to the terminal SDK, and the terminal SDK will perform additional processing again and report it to the server.
[0147] The present invention discloses a visual point-burying method and system based on JS-SDK. The method and system first use the circle selection method of the web page visual editor to bury points, solve the problem of complex point-burying operation and large amount of reported data; use the attribute positioning method to locate the page elements, 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 solve the point-burying problem of list elements, and then can 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 elements 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 can 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 point-burying method of the present invention can adapt to the buried point schemes under different business scenarios (different operating systems).
[0148] 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.
[0149] 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.
[0150] 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.
[0151] 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 tracking method based on JS-SDK, characterized in that: include: The web page data collector obtains the page structure information corresponding to the page to be embedded through the editor, and activates the visual embedding mode of the page by the web page data collector; The web page data collector is used to edit the embedding points in the page, and transmits the embedding point information to the server through the editor, so that the editor notifies the server to save the current embedding point information to the database and request the server for the current embedding point list, wherein the embedding point information includes but is not limited to: the identifier of the embedding point element, the position of the embedding point element in the page structure, 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 a combination of new_path positioning, positioning by attribute and positioning of elements at the same level, and the server is a website backend server; The web page data collector obtains a tracking point list representing a collection of all the tracking point information edited and transmitted from the server through the editor, and binds the information in the tracking point list to the current page in a non-deployed state; The web page data collector notifies the editor to switch to the test mode, and when the editor switches to the test mode, the first type of user confirms the target embedding element from the displayed embedding elements, and the web page data collector displays the embedding trigger information related to the current target embedding element to complete the creation of the page embedding, wherein the embedding trigger information includes the current embedding information and the corresponding relationship between all embedding elements that can trigger the embedding matched by the current embedding information; During the effective stage of embedding, the current page is accessed from the server using a browser, and the web page data collector obtains the embedding points created in the current page from the server; The web page data collector parses the created embedding point information involved in the current page, locates the target embedding point element according to the defined element positioning method, and obtains the associated attributes of the target embedding point element, thereby binding the created embedding point information to the current page, so that after the embedding point is triggered, the embedding point trigger information is saved on the server, wherein, When the embedding element positioning method is one, the page embedding element is positioned by using new_path positioning or by attribute positioning or by peer element positioning to obtain the positioning result of the corresponding method. The peer element positioning method is used to meet the embedding requirements of list elements. In the peer element positioning method, the embedded element positioning results located include two categories: list fixed row embedding and list peer embedding; When multiple element positioning methods are defined, if the positioning results of the embedded element 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; otherwise, it fails. Among them, in the point-tracking editing stage, the editor and the web page data collector, as well as the editor and the server communicate through the PostMessage interface, and in the point-tracking effectiveness stage, the server directly communicates with the web page data collector through Http or Https.
2. The visualization point embedding method according to claim 1, characterized in that: In the embedding step of the editing page, edit by circling the page element.
3. The visualization point embedding method according to claim 1 or 2, characterized in that: After binding the created tracking point information to the current page step, it also includes: After the target embedding element is located successfully, an event listener is added to the target embedding element.
4. The visualization point embedding method according to claim 1 or 2, characterized in that: The method further comprises: Connecting to the server through an editor, obtaining a page information acquisition notification when the terminal SDK is connected to the server, wherein the page information acquisition notification is issued by the server after the terminal SDK sends the page information of the page to be embedded to the server; The page information of the page to be embedded is fed back to the terminal SDK through the server, so that the terminal SDK puts the page information into the h5 window attribute of the terminal web page window element, thereby transmitting the new page information to the server.
5. The visualization point embedding method according to claim 4, characterized in that: The process of binding the tracking point also includes: Receive the embedding point information containing Hybrid embedding points and perform page binding, wherein the editor identifies the embedding point information, and when it contains Hybrid embedding points or the embedding points are bound only by attribute positioning, the current embedding point is marked as a Hybrid embedding point in the embedding point information, and the updated embedding point information is sent to the terminal SDK through the server, so that after the terminal SDK filters out the Hybrid embedding points, the embedded point information is sent to the web page data collector through the server.
6. The visualization point embedding 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 stored in the terminal SDK will be called through the server; If the current embedding point is a non-Hybrid embedding point, then after obtaining the first notification, the embedding point information containing the associated element attribute information of the current embedding point will be fed back to the terminal SDK through the server. When the terminal SDK detects that the current embedding point is triggered, the first notification is sent to the web page data collector through the server.
7. The visualization point embedding method according to claim 5 or 6, characterized in that: After receiving and binding the Hybrid tracking step, it also includes: After the current Hybrid tracking point is triggered, the corresponding tracking point triggering information is transmitted to the server through the terminal SDK.
8. A visual tracking system based on JS-SDK, characterized in that: The visual tracking system executes the method according to any one of claims 1 to 7, and the visual tracking system includes: A web page data collector, which is used to first obtain the page to be buried through an editor, and activate the visual burying mode of the page, and then edit the burying points in the page, and transmit the burying point information to the server through the editor, and then obtain the burying point list related to the current burying point transmitted from the server through the editor, bind the information in the burying point list to the current page in a non-deployed state, and when the editor is switched to a test mode, confirm the burying point elements to complete the creation of the page burying point, and access the current page, and obtain the burying points created in the current page from the server, and finally bind the created burying point information to the current page, so that after the burying point is triggered, the burying point triggering information is saved on the server; An editor that communicates with the web page data collector and the server via PostMessage; and The server communicates with the web page data collector via Http or Https, and is used to store and transmit page information of the website pages, information on the embedded points created in each page, and embedded point triggering information of the embedded points created in each page.
