Configuration file generation method, device, equipment and storage medium
By displaying the web page to be configured and the configuration plug-in display page, and generating configuration files for burying points, the problem of difficulty in writing burying points in the existing technology is solved, improving the efficiency of burying points and reducing the technical threshold.
Patent Information
- Application Number
- CN202110335780.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-29
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2041-03-29
AI Technical Summary
In the prior art, it is difficult to write buried point code, resulting in low efficiency of buried point and raising the threshold for technical personnel.
By displaying the web page to be configured and the configuration plug-in display page, responding to the user's page element selection operation and input text, and generating configuration files for burying points, avoiding manual code writing.
It improves the efficiency of burying points, lowers the technical threshold for technicians, and simplifies the configuration file generation process.
Smart Images

Figure CN112926004B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data visualization, and in particular to a configuration file generation method, apparatus, device and storage medium. Background Art
[0002] Tracking refers to the technology and implementation process of capturing, processing and sending specific user behaviors or events. Whether it is front-end or back-end development, tracking technology can generate some raw data of operational nature, and by analyzing these data, the following abstract indicators can be obtained to guide product operations or code optimization.
[0003] The existing technology usually manually writes tracking code and triggers data collection according to the written code. However, it is difficult to manually write tracking code, which leads to low tracking efficiency and increases the technical threshold of tracking personnel. Summary of the invention
[0004] The present application provides a configuration file generation method, apparatus, device and storage medium to improve the efficiency of tracking points while lowering the technical threshold for tracking point personnel.
[0005] In a first aspect, the present application provides a configuration file generation method, comprising:
[0006] Display the web page to be configured and the configuration plug-in display page;
[0007] In response to a user selecting an element in the web page to be configured, determining the selected element to be configured;
[0008] Determining configuration parameters of the element to be configured according to text input by the user on the configuration plug-in display page;
[0009] In response to the configuration file generation operation of the user on the configuration plug-in display page, a configuration file of the web page to be configured is generated according to the elements to be configured and the configuration parameters for tracking.
[0010] In a second aspect, the present application also provides a configuration file generating device, including:
[0011] Page display module, used to display the web page to be configured and the configuration plug-in display page;
[0012] A module for selecting elements to be configured, used for determining the selected elements to be configured in response to the user's operation of selecting page elements in the web page to be configured;
[0013] A configuration parameter determination module, used to determine the configuration parameters of the element to be configured according to the input text of the user on the configuration plug-in display page;
[0014] The configuration file generation module is used to generate a configuration file of the web page to be configured according to the elements to be configured and the configuration parameters in response to the configuration file generation operation of the user on the configuration plug-in display page, for burying points.
[0015] In a third aspect, the present application further provides an electronic device, including:
[0016] one or more processors;
[0017] A memory for storing one or more programs;
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement a configuration file generation method provided in the embodiment of the first aspect.
[0019] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, a configuration file generation method as provided in an embodiment of the first aspect is implemented.
[0020] This application displays the web page to be configured and the configuration plug-in display page; in response to the user's selection operation of the page element in the web page to be configured, the selected element to be configured is determined; according to the user's input text on the configuration plug-in display page, the configuration parameters of the element to be configured are determined; in response to the user's configuration file generation operation on the configuration plug-in display page, a configuration file of the web page to be configured is generated according to the elements to be configured and the configuration parameters for point tracking. The above technical solution realizes the generation of the configuration file for point tracking through the interface in the form of page interaction, without the need for technical personnel to manually write code, which reduces the technical threshold for technical personnel, while improving the efficiency of configuration file generation, thereby improving the efficiency of point tracking. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flow chart of a configuration file generation method provided in an embodiment of the present application;
[0022] Figure 2 is a flow chart of a configuration file generation method provided in an embodiment of the present application;
[0023] Figure 3A This is a flowchart of a configuration file generation method provided in an embodiment of the present application.
[0024] Figure 3B This is a schematic diagram of a display page provided in an embodiment of the present application;
[0025] Figure 4 It is a structural diagram of a configuration file generating device provided by the present application;
[0026] Figure 5 It is a structural diagram of an electronic device provided by this application. DETAILED DESCRIPTION
[0027] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
[0028] Embodiment 1
[0029] Figure 1 This is a flowchart of a configuration file generation method provided by an embodiment of the present application, which is applicable to the process of generating a configuration file required for embedding a point on a web page before embedding a point on the web page. The configuration file generation method can be executed by a configuration file generation device, which is implemented by software and / or hardware and is specifically configured in an electronic device. The electronic device can be a mobile terminal such as a tablet computer or a notebook, or a fixed terminal such as a server.
[0030] like Figure 1 A configuration file generation method is shown, comprising:
[0031] S110, displaying the web page to be configured and the configuration plug-in display page.
[0032] The web page to be configured can be understood as a web page that needs to be embedded. The web page to be configured can be accessed through URL (Uniform Resource Locator, Uniform Resource Locator) website search, web link jump or other methods, and the web page to be configured is displayed to the user.
[0033] The configuration plug-in display page can be understood as an operation interface displayed to the user after the configuration plug-in dedicated to generating the configuration file is run.
[0034] Exemplarily, the web page to be configured and the configuration plug-in display page are displayed in the same browser. The web page to be configured and the configuration plug-in display page can be displayed in different pages, or displayed in different areas of the same page, and this application does not make any limitation on this.
[0035] It should be noted that the web page to be configured and the configuration plug-in display page can be displayed at the same time, or they can be displayed one after the other. This application does not impose any limitation on the order of displaying the web page to be configured and the configuration plug-in display page.
[0036] In a specific implementation, the web page to be embedded can be opened in a browser to display the web page to be configured; the configuration plug-in is started, and the configuration plug-in display page is displayed in the browser's developer tools.
[0037] In a specific implementation, the configuration plug-in may be a chrome plug-in.
[0038] The browser may be implemented by any existing browser, and this application does not impose any limitation on the name and category of the browser.
[0039] S120: In response to the user selecting an element in the web page to be configured, determining the selected element to be configured.
[0040] Optionally, the page element may include a page link for jumping to a linked web page in the web page to be configured.
[0041] Optionally, the page element may include a page control for implementing a set function in the web page to be configured. Exemplarily, the page control may include at least one of an input box, a button, a radio button, a check box, and a text label. It should be noted that the above is only an exemplary description of the page elements and page controls, and those skilled in the art may add other element contents or control contents as needed, and this application does not make any limitation on this.
[0042] In an optional embodiment, in response to a user's selection operation on a page element in a web page to be configured, determining a selected configuration file to be configured may include: receiving a user's selection operation on a page element in a web page to be configured; and determining an element identifier of the page element corresponding to the selected position based on a relative position relationship between the selected position and the web page to be configured.
[0043] Since the browser is usually provided with a functional interface that can be called by the user, it is convenient to perform secondary development based on the browser. In order to reduce the workload of the configuration plug-in developer, in another optional embodiment, in response to the user's selection operation of the page element in the web page to be configured, determining the selected configuration file to be configured can be: in response to the user's selection operation of the page element in the web page to be configured, calling the element acquisition interface to determine the element identifier of the selected element to be configured.
[0044] It should be noted that different browsers have different element acquisition interface names or interface types, and the corresponding element acquisition interface calling methods are also different. This application does not impose any restrictions on the element acquisition interface name and type used when generating the configuration file.
[0045] S130: Determine configuration parameters of the element to be configured according to the text input by the user on the configuration plug-in display page.
[0046] Exemplarily, the configuration parameters may include the event content of the page element, which is used to characterize the event generated when the page element is triggered. Exemplarily, the configuration parameters may also include operation content, which is used to characterize the operation by the user that triggered the event corresponding to the page element.
[0047] It is understandable that, since the parameter values of the configuration parameters of different elements to be configured are different, it is necessary to determine the parameter values of different configuration parameters with the help of the user's input operation on the configuration plug-in display page.
[0048] Exemplarily, the user enters corresponding parameter values under each configuration parameter of the element to be configured, and the entered parameter values are used as parameter values of the corresponding configuration parameters to generate a configuration file.
[0049] S140. In response to the user's configuration file generation operation on the configuration plug-in display page, a configuration file of the web page to be configured is generated according to the elements to be configured and the configuration parameters for tracking.
[0050] Exemplarily, a user generates a configuration file on a configuration plug-in display page; a configuration file of a web page to be configured in a set format is generated according to the elements to be configured and the configuration parameters of the elements to be configured; the configuration file is placed in a page project, and the page elements for embedding are obtained by introducing the configuration file in the page project of the web page to be configured, and the events of the corresponding page elements are listened to or captured to generate embedding data for subsequent use.
[0051] It should be noted that the same or different browser as that used in the configuration file generation process can be used to embed points on the web page to be configured based on the generated configuration file.
[0052] The configuration file may be in JSON (JavaScript Object Notation) format. Of course, the configuration file in this application may also be in other formats applicable to page engineering, and this application does not limit the specific format of the configuration file.
[0053] This application displays the web page to be configured and the configuration plug-in display page; in response to the user's selection operation of the page element in the web page to be configured, the selected element to be configured is determined; according to the user's input text on the configuration plug-in display page, the configuration parameters of the element to be configured are determined; in response to the user's configuration file generation operation on the configuration plug-in display page, a configuration file of the web page to be configured is generated according to the elements to be configured and the configuration parameters for point tracking. The above technical solution realizes the generation of the configuration file for point tracking through the interface in the form of page interaction, without the need for technical personnel to manually write code, which reduces the technical threshold for technical personnel, while improving the efficiency of configuration file generation, thereby improving the efficiency of point tracking.
[0054] When the user performs a configuration file generation operation on the web page to be configured, the page element in the web page to be configured may be triggered, resulting in page jumps, affecting the configuration file generation process, and there may also be errors in the configuration file generation. In order to avoid the above situation, in an optional embodiment, in response to the user's page element selection operation in the web page to be configured, before determining the selected element to be configured, the events in the web page to be configured are restricted.
[0055] Exemplarily, in response to a user selecting an element in a web page to be configured and before determining the selected element to be configured, in response to a user starting configuration operation on a configuration plug-in display page, events of each element in the web page to be configured are set to be invalid.
[0056] It can be understood that by the user triggering the startup configuration control in the configuration display page, the event invalidation setting can be performed on each page element in the web page to be configured, so that when the user triggers the page element in the web page to be configured, the page element will not generate a corresponding event, thereby avoiding the jump of the web page to be configured, affecting the subsequent configuration file generation process and the accuracy of the configuration file generation result.
[0057] In order not to affect the subsequent use of the web page to be configured, the invalidation event in the web page to be configured can also be restored during the generation of the configuration file or after the configuration file is generated.
[0058] In an optional embodiment, in response to a configuration file generation operation by a user on a configuration plug-in display page, invalidation events of various elements of the web page to be configured are restored.
[0059] Since the recovery of invalidation events during the configuration file generation process is time-unpredictable, it affects the user's experience of using the web page to be configured. In order to avoid the above situation, in an optional embodiment, in response to the user's configuration file generation operation on the configuration plug-in display page, before generating the configuration file according to the elements to be configured and the configuration parameters, the following invalidation event recovery operation can be added: in response to the user's end configuration operation on the configuration plug-in display page, the invalidation events of each page element of the web page to be configured are restored.
[0060] Exemplarily, after the user completes the configuration of the configuration element, the user can trigger the end configuration control in the configuration plug-in display page to lead the recovery of the invalidation event of the configuration web page. Thus, after the completion of each element to be configured, the use permission of the configuration web page can be opened without affecting the user's normal use of the configuration web page.
[0061] In order to prevent the user from forgetting to restore the failed configuration network, in an optional embodiment, the configuration file generation control corresponding to the configuration file generation operation can be disabled in advance. When the user triggers the end of the configuration control, the configuration file generation control is unlocked so that the configuration web page can be restored in time.
[0062] Embodiment 2
[0063] On the basis of the above technical solutions, further, after generating the configuration file, it is also possible to add "in response to the user's file import operation on the configuration plug-in display page, import the historical configuration file into the configuration plug-in display page; display the configured elements and configuration parameters of the configured elements in the historical configuration file on the configuration plug-in display page" to improve the processing mechanism for the historical configuration file. It should be noted that for the parts not described in detail in the embodiments of the present application, please refer to the relevant description of the aforementioned embodiments.
[0064] See also Figure 2 A configuration file generation method is shown, comprising:
[0065] S210: Display the web page to be configured and the configuration plug-in display page.
[0066] S220: In response to the user selecting an element in the web page to be configured, determining the selected element to be configured.
[0067] S230: Determine configuration parameters of the element to be configured according to the text input by the user on the configuration plug-in display page.
[0068] S240: In response to the user's configuration file generation operation on the configuration plug-in display page, a configuration file of the web page to be configured is generated according to the elements to be configured and the configuration parameters for tracking.
[0069] S250: In response to a file import operation by a user on a configuration plug-in display page, a historical configuration file is imported into the configuration plug-in display page.
[0070] It should be noted that, in order to facilitate users to grasp the data in the configured historical configuration files, the data in the historical configuration files can also be displayed by configuring the plug-in display page.
[0071] Among them, the historical configuration file can be a file generated by the configuration file generation method in the present application, or a configuration file generated by other methods in the prior art, and the embodiments of the present application do not impose any limitation on this.
[0072] For example, when a user needs to display a historical configuration file, the historical configuration file can be imported into the configuration plug-in display page by triggering the import control in the configuration plug-in display page. The import control can be presented in the form of a label or a button, etc., and the present application does not limit the specific form of the import control. The triggering of the import control can be at least one of a click, a drag, or other operations.
[0073] S260. Display the configured elements and configuration parameters of the configured elements in the historical configuration file on the configuration plug-in display page.
[0074] Exemplarily, the configuration plug-in parses the configuration file to obtain the configured elements and configuration parameters of the configured elements in the configuration file; and displays the parsed configured elements and configuration parameters of the configured elements on the configuration plug-in display page.
[0075] The number of configured elements may be at least one, and different configured elements may be distinguished by element identifiers. The element identifier may be an identifier in the web page corresponding to the configured file, or a user-defined identifier, which is used to uniquely represent the page element in the web page corresponding to the configured file.
[0076] The number of configuration parameters of the configured element may be at least one, and different configuration parameters represent different meanings. Exemplarily, the configuration parameter includes at least one of time content and operation content.
[0077] It should be noted that, in order to facilitate the user to intuitively know the data in the configured file, the configured elements and configuration parameters may be displayed in a list form.
[0078] In an optional embodiment, at least one configured file may be displayed in a configuration plug-in display page. Exemplarily, when the number of configured files is at least two, data in different configured files may be displayed separately or combined. When data in different configuration files are displayed separately, they may be displayed separately by text color and / or background color, or by column division or the like.
[0079] In another optional embodiment, when there is at least one configured file, corresponding configuration plug-in display pages may be created for different configured files, and the configured files may be displayed in each configuration plug-in display page.
[0080] The embodiment of the present application imports the historical configuration file into the configuration plug-in display page by adding a response to the user's file import operation on the configuration plug-in display page; and displays the configured elements and configuration parameters of the configured elements in the historical configuration file on the accessory plug-in display page. The above technical solution can realize the display of the data contained in the configuration file, enrich the display function of the configuration plug-in, and provide a feasible solution for users to intuitively grasp the content in the configuration file.
[0081] On the basis of the above technical solutions, a new configuration file can be generated based on the historical configuration file to achieve the reuse of the historical configuration file. In an optional embodiment, the configured elements and / or the configuration parameters of the configured elements can be updated in response to the user's editing operation on the configuration plug-in display page; the historical configuration file can be updated according to the updated configured elements and the updated configuration parameters of the configured elements in response to the user's configuration file generation operation on the configuration plug-in display page.
[0082] Exemplarily, when the configuration plug-in display page displays the configured elements of the historical configuration file, the user can perform editing operations such as adding or deleting the configured elements through interface operations, thereby realizing secondary editing of the configured elements contained in the historical configuration file, and then updating the historical configuration file according to the edited configured elements.
[0083] Exemplarily, when the configuration plug-in display page displays the configuration parameters of the configured elements of the historical configuration file, the user can perform editing operations such as adding, deleting or modifying the configuration parameters of the configured elements through interface operations, thereby realizing secondary editing of the configuration parameters of the configured elements in the historical configuration file, and then updating the historical configuration file according to the edited configured elements.
[0084] It is understandable that by editing the configuration elements and / or configuration parameters of configured elements in the historical configuration file displayed in the configuration plug-in display page, the historical configuration file can be reused, thereby improving the efficiency of configuration file generation.
[0085] It should be noted that the present application does not impose any limitation on the number of editable configured elements in the historical configuration file, and the number of configuration parameters of the editable configured elements, and those skilled in the art may limit the number according to actual needs.
[0086] In order to improve the tolerance of the editing process of the historical configuration file, the latest modified configured element and / or the configuration parameters of the configured element can also be returned to the state before the modification in response to the user's return operation.
[0087] Embodiment 3
[0088] On the basis of the above technical solutions, the present application also provides a preferred embodiment of a configuration file generating method.
[0089] See also Figure 3A A configuration file generation method is shown, comprising:
[0090] S310, opening the web page to be configured in the setting browser, and configuring the plug-in.
[0091] The configuration plug-in is displayed in the developer tools of the setting browser.
[0092] See also Figure 3B A schematic diagram of a display page is shown. In the display page, a web page to be configured 10 and a configuration plug-in interface 20 are included. The web page to be configured 10 includes page elements such as a registration control 11, a login control 12, a barrage sending control 13, a play control 14, and a barrage input control 15. The configuration plug-in interface 20 includes a start configuration control 21, an end configuration control 22, a configuration file generation control 23, and a configuration parameter display area 24.
[0093] S320: When the user triggers the start configuration of the control in the configuration plug-in interface, the original control trigger event in the web page to be configured is set to be invalid.
[0094] S330: When the user selects a page element in the web page to be configured, the element acquisition interface in the browser is called to determine the element identifier of the selected element to be configured.
[0095] Continue to see Figure 3B When the user triggers the playback control 14 in the web page to be configured, the element identifier is determined to be "open-vedio"; when the user triggers the registration control 11 in the web page to be configured, the element identifier is determined to be "button-register"; when the user triggers the barrage input control 15 in the web page to be configured, the element identifier is determined to be "input-barrage",
[0096] S340: Obtain parameter values of configuration parameters of configuration elements in the configuration plug-in, where the configuration parameters include event content and operation content.
[0097] Continue to see Figure 3B, in the configuration parameter display area of the plug-in, the user sets the event content and operation content for the element identifiers of different elements to be configured. For example, for the playback control corresponding to "open-vedio", set the event content to "play video" and the operation content to "play". For the registration control corresponding to "button-register", set the event content to "user registration" and the operation content to "click". For the barrage input control corresponding to "input-barrage", set the event content to "input barrage" and the operation content to "input".
[0098] It should be noted that the user can also delete the corresponding element identification and the event content and operation content corresponding to the element identification by using the deletion control corresponding to each element identification in the configuration parameter display area 24 as needed.
[0099] S350: When the user triggers the end configuration control, the invalidation event of the web page to be configured is restored.
[0100] S360. When the user triggers the configuration file generation control, a configuration file is generated according to each element to be configured and the configuration parameters of the element to be configured for tracking.
[0101] Exemplarily, the configuration file is in JSON format.
[0102] The embodiment of the present application performs visual tracking based on the plug-in of the existing browser, with low development cost and small amount of code, which reduces the technical threshold for developers. In addition, since the configuration file is a self-generated file, the configuration file is applied to the page project for tracking, and the data obtained by tracking can be directly managed or used, no longer relying on the support of a third party, and more flexible.
[0103] Embodiment 4
[0104] Figure 4 This is a structural diagram of a configuration file generation device provided by the present application, which is suitable for generating a configuration file required for embedding a point on a web page before embedding a point on the web page. The device can be implemented in software and / or hardware and specifically configured in an electronic device. The electronic device can be a mobile terminal such as a tablet or a notebook, or a fixed terminal such as a server.
[0105] like Figure 4 The configuration file generation device shown in the figure includes: a page display module 410, a to-be-configured element selection module 420, a configuration parameter determination module 430 and a configuration file generation module 440.
[0106] The page display module 410 is used to display the web page to be configured and the configuration plug-in display page;
[0107] The to-be-configured element selection module 420 is used to determine the selected to-be-configured element in response to the user's selection operation on the page element in the to-be-configured webpage;
[0108] A configuration parameter determination module 430, configured to determine the configuration parameters of the element to be configured according to the text input by the user on the configuration plug-in display page;
[0109] The configuration file generation module 440 is used to generate a configuration file of the web page to be configured according to the elements to be configured and the configuration parameters in response to the configuration file generation operation of the user on the configuration plug-in display page for tracking.
[0110] This application uses a page display module to display the web page to be configured and a configuration plug-in display page; uses a module for selecting elements to be configured to respond to the user's selection operation of page elements in the web page to be configured, and determines the selected elements to be configured; uses a configuration parameter determination module to determine the configuration parameters of the elements to be configured based on the user's input text on the configuration plug-in display page; uses a configuration file generation module to respond to the user's configuration file generation operation on the configuration plug-in display page, and generates a configuration file for the web page to be configured based on the elements to be configured and the configuration parameters for point tracking. The above technical solution uses a page interaction method to realize the generation of configuration files for point tracking through an interface, without the need for technical personnel to manually write code, which reduces the technical threshold for technical personnel, while improving the efficiency of configuration file generation, thereby improving the efficiency of point tracking.
[0111] In an optional embodiment, the device further comprises:
[0112] An event invalidation setting module is used to set the event invalidation of each page element in the web page to be configured in response to the user's start configuration operation on the configuration plug-in display page before determining the selected element to be configured in response to the user's selection operation on the page element in the web page to be configured.
[0113] In an optional embodiment, the device further comprises:
[0114] The invalidation event recovery module is used to restore the invalidation events of each of the page elements of the web page to be configured in response to the configuration file generation operation of the user on the configuration plug-in display page.
[0115] In an optional embodiment, the device further comprises:
[0116] An invalidation event recovery module is used to restore invalidation events of each page element of the web page to be configured in response to the user's configuration end operation on the configuration plug-in display page before generating a configuration file of the web page to be configured according to the elements to be configured and the configuration parameters.
[0117] In an optional embodiment, the device further comprises:
[0118] A historical configuration file importing module, configured to import a historical configuration file into the configuration plug-in display page in response to the user's file importing operation on the configuration plug-in display page;
[0119] The configuration file display module is used to display the configured elements and configuration parameters of the configured elements in the historical configuration file on the configuration plug-in display page.
[0120] In an optional embodiment, the device further comprises:
[0121] A configuration update module, configured to update the configured element and / or the configuration parameters of the configured element in response to the user's editing operation on the configuration plug-in display page;
[0122] The historical configuration file updating module is used to update the historical configuration file according to the updated configured elements and the configuration parameters of the updated configured elements in response to the configuration file generation operation of the user on the configuration plug-in display page.
[0123] In an optional embodiment, the editing operation includes at least one of the following: deleting a configured element, adding a new element to be configured, and modifying a configuration parameter of the configured element.
[0124] In an optional embodiment, the to-be-configured element selection module 420 includes:
[0125] The element identification determination unit is used to call the element acquisition interface in response to the user's selection operation on the page element in the web page to be configured, and determine the element identification of the selected element to be configured.
[0126] In an optional embodiment, the configuration parameters include event content and operation content of the page element.
[0127] In an optional embodiment, the page elements include page links and / or page controls.
[0128] In an optional embodiment, the page control includes at least one of the following: an input box, a button, a radio button, a check box, and a text label.
[0129] In an optional embodiment, the configuration file is a JSON file.
[0130] The above-mentioned configuration file generation device can execute the configuration file generation method provided by any embodiment of the present application, and has the corresponding functional modules and beneficial effects of executing the configuration file generation method.
[0131] Embodiment 5
[0132] Figure 5 is a structural diagram of an electronic device in Embodiment 5 of the present application. Figure 5 The electronic device shown includes: an input device 510 , an output device 520 , a processor 530 and a storage device 540 .
[0133] The input device 510 is used to obtain the user's page element selection operation on the configuration web page; obtain the user's input text on the configuration plug-in display page; and obtain the user's configuration file generation operation on the configuration plug-in display page.
[0134] Output device 520, used to display the barbaric configuration to be configured and the configuration plug-in display page;
[0135] one or more processors 530;
[0136] The storage device 540 is used to store one or more programs.
[0137] Figure 5 Taking a processor 530 as an example, the input device 510 in the electronic device can be connected to the output device 520, the processor 530 and the storage device 540 through a bus or other means, and the processor 530 and the storage device 540 are also connected through a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0138] In this embodiment, the processor 530 in the electronic device can control the output device 520 to display the web page to be configured and the configuration plug-in display page; it can also determine the selected element to be configured in response to the user's selection operation on the page element in the web page to be configured through the input device 510; it can also determine the configuration parameters of the element to be configured based on the text input by the user on the configuration plug-in display page through the input device 510; it can also generate a configuration file for the web page to be configured based on the element to be configured and the configuration parameters in response to the user's configuration file generation operation on the configuration plug-in display page through the input device 510, for use in tracking points.
[0139] The storage device 540 in the electronic device is a computer-readable storage medium that can be used to store one or more programs, and the program can be a software program, a computer executable program, and a module, such as the program instructions / modules corresponding to the configuration file generation method in the embodiment of the present application (for example, the attached Figure 4 The page display module 410, the element selection module 420 to be configured, the configuration parameter determination module 430 and the configuration file generation module 440 are shown. The processor 530 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the storage device 540, that is, the configuration file generation method in the above method embodiment is implemented.
[0140] The storage device 540 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data, etc. (such as the elements to be configured, configuration parameters, and configuration files in the above-mentioned embodiments). In addition, the storage device 540 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 540 may further include a memory remotely arranged relative to the processor 530, and these remote memories may be connected to the server via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0141] Embodiment 6
[0142] Embodiment 6 of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a configuration file generating device, the configuration file generating method provided by the embodiment of the present application is implemented, and the method includes: displaying a web page to be configured and a configuration plug-in display page; in response to a user's selection operation of a page element in the web page to be configured, determining the selected element to be configured; determining the configuration parameters of the element to be configured according to the input text of the user on the configuration plug-in display page; in response to the user's configuration file generating operation on the configuration plug-in display page, generating a configuration file for the web page to be configured according to the element to be configured and the configuration parameters for point tracking.
[0143] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0144] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A configuration file generation method, characterized in that: include: Display the web page to be configured and the configuration plug-in display page; The configuration plug-in display page is an operation interface displayed to the user after the configuration plug-in dedicated to generating the configuration file is run; In response to a user's selection operation on a page element in the web page to be configured, determining the selected element to be configured includes: receiving the user's selection operation on the page element in the web page to be configured; determining an element identifier of the page element corresponding to the selected position according to a relative position relationship between the selected position and the web page to be configured; the page element includes a page link and / or a page control; Determining the configuration parameters of the element to be configured according to the input text of the user on the configuration plug-in display page, including: the user inputs corresponding parameter values under each configuration parameter of the element to be configured, and uses the input parameter values as parameter values of the corresponding configuration parameters to generate a configuration file; the configuration parameters include event content and operation content of the page element, the event content is used to represent the event generated when the page element is triggered; the operation content is used to represent what operation of the user triggers the corresponding event of the page element; In response to the configuration file generation operation of the user on the configuration plug-in display page, a configuration file of the web page to be configured is generated according to the elements to be configured and the configuration parameters for tracking.
2. The method according to claim 1, characterized in that Before determining the selected element to be configured in response to the user's selection operation on the page element in the webpage to be configured, the method further includes: In response to the user starting a configuration operation on the configuration plug-in display page, setting an event invalidation for each page element in the web page to be configured.
3. The method according to claim 2, characterized in that The method further comprises: In response to the configuration file generation operation of the user on the configuration plug-in display page, the invalidation event of each of the page elements of the web page to be configured is restored.
4. The method according to claim 2, characterized in that: Before generating the configuration file of the webpage to be configured according to the elements to be configured and the configuration parameters in response to the configuration file generation operation of the user on the configuration plug-in display page, the method further includes: In response to the user ending the configuration operation on the configuration plug-in display page, the invalidation event of each of the page elements of the web page to be configured is restored.
5. The method according to claim 1, characterized in that The method further comprises: In response to the user's file import operation on the configuration plug-in display page, importing the historical configuration file into the configuration plug-in display page; The configured elements in the historical configuration file and the configuration parameters of the configured elements are displayed in the configuration plug-in display page.
6. The method according to claim 5, characterized in that The method further comprises: In response to the user's editing operation on the configuration plug-in display page, updating the configured element and / or the configuration parameters of the configured element; In response to the configuration file generation operation performed by the user on the configuration plug-in display page, the historical configuration file is updated according to the updated configured element and the configuration parameters of the updated configured element.
7. The method according to claim 6, characterized in that The editing operation includes at least one of the following: deleting a configured element, adding a new element to be configured, and modifying a configuration parameter of the configured element.
8. The method according to claim 1, characterized in that The step of determining the selected element to be configured in response to the user selecting the page element in the web page to be configured further comprises: In response to the user's selection operation on a page element in the web page to be configured, an element acquisition interface is called to determine an element identifier of the selected element to be configured.
9. The method according to claim 1, characterized in that: The page control includes at least one of the following: an input box, a button, a radio button, a check box, and a text label.
10. The method according to any one of claims 1 to 8, characterized in that: The configuration file is a JSON file.
11. A configuration file generating device, characterized in that: include: Page display module, used to display the web page to be configured and the configuration plug-in display page; The configuration plug-in display page is an operation interface displayed to the user after the configuration plug-in dedicated to generating the configuration file is run; A module for selecting elements to be configured, used for determining the selected elements to be configured in response to the user's operation of selecting page elements in the web page to be configured; The to-be-configured element selection module is specifically used to receive a user's selection operation on a page element in the to-be-configured web page; determine an element identifier of the page element corresponding to the selected position according to a relative position relationship between the selected position and the to-be-configured web page; the page element includes a page link and / or a page control; A configuration parameter determination module, used to determine the configuration parameters of the element to be configured according to the input text of the user on the configuration plug-in display page; The configuration parameter determination module is specifically used for the user to input corresponding parameter values under each configuration parameter of the element to be configured, and use the input parameter values as parameter values of the corresponding configuration parameters to generate a configuration file; the configuration parameters include event content and operation content of the page element, and the event content is used to represent the event generated when the page element is triggered; The operation content is used to indicate the operation by the user that triggers the event corresponding to the page element; The configuration file generation module is used to generate a configuration file of the web page to be configured according to the elements to be configured and the configuration parameters in response to the configuration file generation operation of the user on the configuration plug-in display page, for burying points.
12. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement a configuration file generating method as described in any one of claims 1 to 10.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a configuration file generating method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Visual point burying method and device, equipment and storage medium
CN110795325A
Webpage burying point code adding method and device, computer equipment and storage medium
CN111241444A