Cookie planting method, device, system and equipment and storage medium

By sending access data and page jump addresses on the page jump node to the server, generating and executing page operation instructions, the client solves the security restrictions on traditional cross-domain cookie planting methods, and improves the flexibility of cross-domain cookie planting and Adaptability.

CN119449345APending Publication Date: 2025-02-14BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310988427.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-07
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, the security restrictions on traditional cross-domain planting cookies by the client lead to the inability to implement cross-domain planting cookies, and poor configuration flexibility and client adaptability.

Method used

Through the page jump node during the business access process, the client sends the access data and page jump address in the target page jump request to the server. The server generates cookie planting data based on the access data and the target business domain name, and uses cookie planting based on the cookie planting data. Data and page jump address generate page operation instructions and send them to the client for execution.

Benefits of technology

It solves the security restrictions on traditional cross-domain cookie planting methods by the client, improves the flexibility and adaptability of cross-domain cookies, and ensures the continuity of accessing data when cross-domain jumps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449345A_ABST
    Figure CN119449345A_ABST
Patent Text Reader

Abstract

The invention discloses a cookie planting method, device, system and equipment and a storage medium. The method comprises the following steps: in response to a detected target page jump request, obtaining access data and a page jump address in the target page jump request; sending the access data and the page jump address to a server, so that the server generates cookie planting data based on the access data and a target service domain name, and generates a page operation instruction based on the cookie planting data and the page jump address; responding to the received page operation instruction sent by the server, and based on the page operation instruction, executing cookie planting operation and page skipping operation in sequence. According to the embodiment of the invention, the problem of safety limitation of the client on a traditional cross-domain cookie planting method is solved, and the flexibility of cross-domain cookie planting and the adaptability with the client are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a cookie planting method, device, system, equipment and storage medium. Background Art

[0002] In web site applications, it is usually necessary to track the entire access data of the business in order to provide important data support for subsequent data statistics, advertising push, marketing strategies, etc.

[0003] Cookies refer to data stored on the user's local terminal in order to identify the user and conduct session control tracking. By planting cookies, the business access data can be saved when the user visits the page of the same domain name. However, during the business access process, business pages of different domain names under the same business may jump, or unexpected page jumps of different domain names under different businesses may occur, which will make the planted cookies invalid after the cross-domain occurs, resulting in the loss of access data.

[0004] In the process of implementing the present invention, it is found that there are at least the following technical problems in the prior art:

[0005] Currently, the commonly used method is to use iframe technology to achieve cross-domain cookie planting. However, iframe technology is somewhat invasive to the client and will be subject to client security restrictions, making cross-domain cookie planting impossible. It also has poor configuration flexibility and poor compatibility with the client. Summary of the invention

[0006] The embodiments of the present invention provide a cookie planting method, device, system, equipment and storage medium to solve the security restriction problem of the client on the traditional cross-domain cookie planting method, and improve the flexibility of cross-domain cookie planting and its adaptability to the client.

[0007] According to an embodiment of the present invention, a cookie planting method is provided, which is applied to a client, and the method includes:

[0008] In response to detecting a target page jump request, acquiring access data and a page jump address in the target page jump request;

[0009] Sending the access data and the page jump address to a server, so that the server generates cookie planting data based on the access data and the target business domain name, and generates a page operation instruction based on the cookie planting data and the page jump address;

[0010] In response to receiving the page operation instruction sent by the server, a cookie planting operation and a page jump operation are sequentially performed based on the page operation instruction.

[0011] According to an embodiment of the present invention, a cookie planting method is provided, which is applied to a server. The method includes:

[0012] Receiving access data and a page jump address sent by a client; wherein the access data and the page jump address are obtained by the client from the target page jump request in response to detecting the target page jump request;

[0013] Generate cookie planting data based on the access data and the target business domain name, and generate page operation instructions based on the cookie planting data and the page jump address;

[0014] The page operation instruction is sent to the client, so that the client performs the cookie planting operation and the page jump operation in sequence based on the page operation instruction.

[0015] According to another embodiment of the present invention, a cookie planting device is provided, which is configured on a client, and includes:

[0016] An access data acquisition module, configured to acquire access data and a page jump address in the target page jump request in response to detecting the target page jump request;

[0017] An access data sending module, used to send the access data and the page jump address to the server, so that the server generates cookie planting data based on the access data and the target business domain name, and generates a page operation instruction based on the cookie planting data and the page jump address;

[0018] The cookie planting operation execution module is used to respond to receiving a page operation instruction sent by the server and execute the cookie planting operation and the page jump operation in sequence based on the page operation instruction.

[0019] According to another embodiment of the present invention, a cookie planting device is provided, which is configured on a server, and the device includes:

[0020] An access data receiving module, used for receiving access data and a page jump address sent by a client; wherein the access data and the page jump address are obtained by the client from the target page jump request in response to detecting the target page jump request;

[0021] A page operation instruction generation module, used to generate cookie planting data based on the access data and the target business domain name, and to generate a page operation instruction based on the cookie planting data and the page jump address;

[0022] The page operation instruction sending module is used to send the page operation instruction to the client, so that the client performs the cookie planting operation and the page jump operation in sequence based on the page operation instruction.

[0023] According to another embodiment of the present invention, a cookie planting system is provided, the system comprising: a client and a server;

[0024] The client is used to, in response to detecting a target page jump request, obtain access data and a page jump address in the target page jump request, and send the access data and the page jump address to the server, and in response to receiving a page operation instruction sent by the server, sequentially perform a cookie planting operation and a page jump operation based on the page operation instruction;

[0025] The server is used to generate cookie planting data based on the access data and the target business domain name, and to generate page operation instructions based on the cookie planting data and the page jump address, and to send the page operation instructions to the client.

[0026] According to another embodiment of the present invention, there is provided an electronic device, the electronic device comprising:

[0027] at least one processor; and

[0028] a memory communicatively connected to the at least one processor; wherein,

[0029] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cookie planting method described in any embodiment of the present invention.

[0030] According to another embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cookie planting method described in any embodiment of the present invention when executed.

[0031] The technical solution of the embodiment of the present invention is that, through the page jump node in the business access process, the client sends the access data and the page jump address in the target page jump request to the server, the server generates cookie planting data based on the access data and the target business domain name, and generates page operation instructions based on the cookie planting data and the page jump address, and sends the page operation instructions to the client, the client performs the cookie planting operation and the page jump operation in sequence based on the received page operation instructions, and the data transmission between the client and the server is not subject to cross-domain security restrictions, thereby solving the problem of security restrictions on the traditional cross-domain cookie planting method by the client and improving the flexibility of cross-domain cookie planting and its adaptability to the client.

[0032] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 A flowchart of a cookie planting method provided by one embodiment of the present invention;

[0035] Figure 2 A schematic diagram of a service link provided by an embodiment of the present invention;

[0036] Figure 3 A flow chart of another cookie planting method provided by one embodiment of the present invention;

[0037] Figure 4 A schematic diagram of a cookie-planted jump node provided by an embodiment of the present invention;

[0038] Figure 5 A flow chart of another cookie planting method provided by one embodiment of the present invention;

[0039] Figure 6 A schematic diagram of another cookie-planted jump node provided by an embodiment of the present invention;

[0040] Figure 7A flow chart of another cookie planting method provided by one embodiment of the present invention;

[0041] Figure 8 A schematic structural diagram of a cookie planting device provided by one embodiment of the present invention;

[0042] Fig. 9 A schematic structural diagram of a cookie planting device provided by one embodiment of the present invention;

[0043] Fig.10 A schematic diagram of the structure of a cookie planting system provided by one embodiment of the present invention;

[0044] Fig.11 The present invention is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0046] It should be noted that the terms "reference", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0047] Figure 1 This is a flowchart of a cookie planting method provided by an embodiment of the present invention. This embodiment is applicable to the case of planting cookies across domain names during business access. The method can be executed by a cookie planting device, which can be implemented in the form of hardware and / or software. The cookie planting device can be configured in the client. Figure 1 As shown, the method includes:

[0048] S110 . In response to detecting a target page jump request, obtaining access data and a page jump address in the target page jump request.

[0049] The business link represents a page jump link corresponding to at least one business page under at least one pre-set business domain name. Specifically, the target page jump request can be generated based on the access data and the page jump address in the page jump request corresponding to the pre-set business page in the business link.

[0050] Figure 2 A schematic diagram of a service link provided by an embodiment of the present invention. Specifically, Figure 2 The business link shown includes domain name a page 1, domain name a page 2, domain name a page 3, domain name b page 1, domain name b page 2, domain name b page 3, domain name c page 1 and domain name c page 2, which jump in sequence.

[0051] The target business domain name defined in the server is used to characterize the business domain name that needs to be cross-domain cookie planted in the business link. In a specific embodiment, it is the last business domain name in the business link, or the target business domain name is the next business domain name of the business domain name corresponding to the page jump address.

[0052] by Figure 2 For example, when the target service domain name is the last service domain name in the service link, the target service domain name is Figure 2 In the domain name c, when the target business domain name is the next business domain name of the business domain name corresponding to the page jump address, assuming that the page jump address is domain name a page 1, then the target business domain name is Figure 2 Domain name b in, assuming the page jump address is domain name b page 2, then the target business domain name is Figure 2 The domain name in c.

[0053] In a specific embodiment, when the target business domain name is the last business domain name in the business link, the pre-set business page is any business page corresponding to the first business domain name in the business link. The advantage of such a setting is that it can avoid the situation where the access data is lost due to jumping from the business page of the first business domain name to the business page of the second business domain name. When the link tracking record is read at the end of the business link, the access data can be obtained from the last business domain name, realizing the cross-domain tracking record of the access data.

[0054] In another embodiment, when the target business domain name is the next business domain name of the business domain name corresponding to the page jump address, the pre-set business page is any business page corresponding to each business domain name in the business link. Specifically, cookie planting is triggered once in the domain name link of each business domain name. The advantage of this setting is that it can avoid the loss of access data caused by jumping from the business page of the current business domain name to the business page of the next business domain name, and realize the cross-domain tracking record of the full link of access data.

[0055] Specifically, the access data is used to characterize the business data that needs to be tracked and recorded throughout the entire link. Exemplarily, the access data includes an access parameter name and an access parameter value.

[0056] For example, in a product promotion scenario, it is necessary to track and record the entire link of the promotion path for visiting the product page. The access parameter name in the access data can be the promotion path, and the access parameter value includes but is not limited to the QR code of promoter A, the QR code of promoter B, the promotion link of advertiser A, the promotion link of advertiser B, or the user search keyword, etc. In the drug purchase scenario, it is necessary to track and record the entire link of the prescription doctor corresponding to the drug. The access parameter name in the access data can be the name of the prescription doctor, and the access parameter value includes but is not limited to doctor A, doctor B, and doctor C, etc. In the system login scenario, it is necessary to track and record the user's login information throughout the entire link. The access parameter name in the access data can include but is not limited to the login account and login password, etc. The access data is exemplarily described here and is not limited to it. The access data can be customized by business personnel.

[0057] Specifically, the page jump address is used to represent the jump address of the next business page corresponding to the current business page rendered and displayed in the client, wherein the next business page is the business page to be rendered and displayed in the client.

[0058] S120. Send the access data and the page jump address to the server, so that the server generates cookie planting data based on the access data and the target business domain name, and generates page operation instructions based on the cookie planting data and the page jump address.

[0059] Specifically, the cookie planting data can be used to represent the logical data of planting the cookies generated based on the access data into the target business domain name.

[0060] Specifically, the page operation instruction includes a cookie planting instruction generated based on cookie planting data and a page jump instruction generated based on a page jump address. Exemplarily, the instruction type of the page operation instruction can be a header instruction or a JS script instruction, and the instruction type of the page operation instruction is not limited here.

[0061] S130. In response to receiving a page operation instruction sent by the server, based on the page operation instruction, sequentially execute a cookie planting operation and a page jump operation.

[0062] Specifically, based on the cookie planting instruction in the page operation instruction, the cookie planting operation is performed, and based on the page jump instruction in the page operation instruction, the page jump operation is performed.

[0063] Based on the above embodiment, specifically, based on the page jump instruction in the page operation instruction, a page jump operation is performed, including: adding access data to the page jump address, and performing the page jump operation based on the added page jump address.

[0064] The technical solution of this embodiment is that, through the page jump node in the business access process, the client sends the access data and page jump address in the target page jump request to the server, the server generates cookie planting data based on the access data and the target business domain name, and generates page operation instructions based on the cookie planting data and the page jump address, and sends the page operation instructions to the client, the client executes the cookie planting operation and the page jump operation in sequence based on the received page operation instructions, and the data transmission between the client and the server is not subject to cross-domain security restrictions, thereby solving the problem of security restrictions on the client for the traditional cross-domain cookie planting method and improving the flexibility of cross-domain cookie planting and its adaptability to the client.

[0065] Figure 3 This is a flowchart of another cookie planting method provided by an embodiment of the present invention. In this embodiment, the target business domain name is the last business domain name in the business link, and the method for generating the target page jump request in the above embodiment is further refined, such as Figure 3 As shown, the method includes:

[0066] S210 . In response to detecting a page jump request corresponding to a preset business page in a business link, generating a target page jump request based on access data and a page jump address in the page jump request.

[0067] In a specific embodiment, the pre-service page includes the first service page in the first service domain name in the service link.

[0068] Figure 4 A schematic diagram of a cookie-planted jump node provided by an embodiment of the present invention. Figure 4 As shown, in this embodiment, the preset business page is "Domain a Page 1", and the jump node corresponding to the target page jump request is Figure 4 The jump node corresponding to "start" and "domain a page 1" in Figure 4 The jump node pointed to by the first dotted hexagon from top to bottom, the "c" in the first dotted hexagon indicates that the target business domain name corresponding to the jump node is domain name c.

[0069] Among them, exemplarily, the page jump request corresponding to the first business page in the first business domain name can be generated after the user inputs a search operation, or it can be generated when the user clicks the jump control, or it can be generated when the user scans the link QR code. There is no limitation on the generation timing of the page jump request here.

[0070] In another specific embodiment, the pre-service page includes a target service page in the first service domain name in the service link, and the target service page represents the service page where the unexpected jump occurs.

[0071] Among them, exemplarily, the unexpected jump may be caused by the user clicking on the push advertisement link of the current business page, or by the user inputting a search operation, or by the user clicking on the jump control in the current business page. The cause of the unexpected jump is not limited here.

[0072] In a specific embodiment, the target business page may be preset by a developer, or may be determined based on historical accidental jump data corresponding to each business page in the first business domain name and / or the number of jump controls included in each business page.

[0073] In one embodiment, specifically, the number of unexpected jumps corresponding to each business page in the first business domain name is determined based on the historical unexpected jump data corresponding to each business page, and the first business page in the business link whose number of unexpected jumps is greater than a preset number threshold is used as the target business page.

[0074] Exemplarily, the preset number of times threshold may be 20 times, and the preset number of times threshold is not limited here. Figure 4 For example, assuming that the number of unexpected jumps corresponding to page 2 of domain name a is 30 times, and the number of unexpected jumps corresponding to page 3 of domain name a is 40 times, then page 2 of domain name a is taken as the target business page.

[0075] In another embodiment, specifically, the number of jump controls corresponding to each business page in the first business domain name is obtained, and the first business page in the business link whose number of jump controls is greater than a preset number threshold is used as the target business page.

[0076] Exemplarily, the preset number threshold may be 5, and the preset number threshold is not limited here. Figure 4 For example, assuming that the number of jump controls corresponding to page 2 of domain name a is 6, and the number of jump controls corresponding to page 3 of domain name a is 20, then page 2 of domain name a is taken as the target business page.

[0077] In another embodiment, specifically, based on the historical unexpected jump data corresponding to each business page in the first business domain name, the number of unexpected jumps corresponding to each business page is determined, and the number of jump controls corresponding to each business page in the first business domain name is obtained, and the first business page in the business link whose number of unexpected jumps is greater than a preset number threshold and whose number of jump controls is greater than a preset number threshold is taken as the target business page.

[0078] like Figure 4 As shown, in this embodiment, the pre-service page is "Domain a Page 3", and the jump node corresponding to the target page jump request is Figure 4 The jump nodes corresponding to "Domain name a page 2" and "Domain name a page 3" in the Figure 4 The jump node pointed to by the second virtual hexagon from top to bottom, the "c" in the second dotted hexagon indicates that the target business domain name corresponding to the jump node is domain name c.

[0079] S220: Obtain access data and page jump address in the target page jump request.

[0080] S230. Send the access data and the page jump address to the server, so that the server generates cookie planting data based on the access data and the last business domain name in the business link, and generates page operation instructions based on the cookie planting data and the page jump address.

[0081] S240. In response to receiving the page operation instruction sent by the server, based on the page operation instruction, execute the cookie planting operation and the page jump operation in sequence.

[0082] Since each business page in the entire business chain may have an unexpected cross-domain jump, there is a risk of access data loss. The technical solution of this embodiment, for the case where the target business domain name is the last business domain name in the business chain, generates a target page jump request based on the access data and the page jump address in the page jump request in response to detecting a page jump request corresponding to a preset business page in the business chain, wherein the preset business page includes the first business page in the first business domain name in the business chain or the target business page in the first business domain name in the business chain, and the target business page represents the business page where the unexpected jump occurs. The cookie planting is triggered at the earliest possible jump node of the business chain or before the business page jump where the business chain may have an unexpected jump. Even if an unexpected cross-domain jump occurs during the business chain process, the access data can be obtained from the last business domain name when the link tracking record is read at the end of the business chain, thereby reducing the risk of access data loss and improving the stability of cross-domain cookie planting.

[0083] It should be noted that the embodiment of the present invention only provides an illustrative description of a landmark jump node. It can be understood that when the target business page does not exist in the first business domain name, it means that each business page in the first business domain name is not prone to accidental jumps. Therefore, a target page jump request can be generated in response to a page jump request corresponding to any business page in the first business domain name.

[0084] Figure 5 A flowchart of another cookie planting method provided by an embodiment of the present invention. This embodiment further refines the method for generating the target page jump request in the above embodiment for the target business domain name being the next business domain name corresponding to the business domain name of the page jump address, such as Figure 5 As shown, the method includes:

[0085] S310: In response to detecting a page jump request corresponding to a preset business page in a business link, a target page jump request is generated based on access data and a page jump address in the page jump request.

[0086] In a specific embodiment, the preset service page includes the first service page in the first service domain name in the service link or the target service page in the first service domain name in the service link, and the target service page represents the service page where the unexpected jump occurs.

[0087] For a detailed explanation of this embodiment, reference may be made to the above embodiment provided for the target service domain name being the last service domain name in the service link, which will not be described in detail here.

[0088] In a specific embodiment, the preset business page also includes the first business page in the intermediate business domain name in the business link or the target business page in the intermediate business domain name in the business link, and the intermediate business domain name includes the business domain names in the business link except the first business domain name and the last business domain name.

[0089] In this embodiment, the preset service page includes the first service page or the target service page in other service domain names other than the last service domain name in the service link.

[0090] Specifically, the preset business pages corresponding to the other business domain names except the last business domain name in the business link can all be the first business page, or can all be the target business page. Of course, the preset business pages corresponding to some business domain names can all be the first business page, and the preset business pages corresponding to another part of the business domain names can all be the target business page. When the target business page does not exist in a certain business domain name, the preset business page can also be any business page under the business domain name.

[0091] Figure 6 A schematic diagram of another cookie-planted jump node provided by an embodiment of the present invention. Specifically, Figure 6 For example, all preset business pages are target business pages. Figure 6 As shown, the preset business page corresponding to domain name a is "Domain name a page 3", and the jump node of the target page jump request is Figure 6 The jump nodes corresponding to "Domain name a page 2" and "Domain name a page 3" in the Figure 6 The jump node pointed to by the first dotted hexagon from top to bottom in the figure. The "b" in the first dotted hexagon indicates that the target business domain name corresponding to the jump node is domain name b. The preset business page corresponding to domain name b is "domain name b page 2", and the jump node of the target page jump request is Figure 6 The jump nodes corresponding to "Domain name b page 1" and "Domain name b page 2" in Figure 6 The jump node pointed to by the second dotted hexagon from top to bottom, the "c" in the second dotted hexagon indicates that the target business domain name corresponding to the jump node is domain name c.

[0092] S320: Obtain access data and page jump address in the target page jump request.

[0093] S330. Send the access data and the page jump address to the server so that the server obtains the next business domain name of the business domain name corresponding to the page jump address, and generates cookie planting data based on the access data and the next business domain name, and generates page operation instructions based on the cookie planting data and the page jump address.

[0094] S340. In response to receiving the page operation instruction sent by the server, based on the page operation instruction, execute the cookie planting operation and the page jump operation in sequence.

[0095] Since each business page in the entire business chain may have an unexpected cross-domain jump, there is a risk of access data loss. The technical solution of this embodiment, for the case where the target business domain name is the next business domain name of the business domain name corresponding to the page jump address, generates a target page jump request based on the access data and the page jump address in the page jump request in response to detecting a page jump request corresponding to a preset business page in the business chain, wherein the preset business page includes the first business page or target business page in other business domain names except the last business domain name in the business chain, and the target business page represents the business page where the unexpected jump occurs. The cookie planting is triggered before the jump node as early as possible in the business chain or the business page where the business chain may have an unexpected jump. Even if an unexpected jump occurs in the domain name link corresponding to a certain business domain name in the business chain and the access data is lost, the access data can be obtained from the next business domain name after jumping to the next business domain name, which not only reduces the risk of access data loss, but also ensures the continuity of access data during cross-domain jumps, and further improves the stability of cross-domain planting cookies.

[0096] It should be noted that the embodiment of the present invention only provides an illustrative description of a landmark jump node. It can be understood that when the target business page does not exist in other business domain names except the last business domain name, it means that each business page in the business domain name is not prone to accidental jumps. Therefore, a target page jump request can be generated in response to a page jump request corresponding to any business page in the business domain name.

[0097] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.

[0098] Figure 7 This is a flowchart of another cookie planting method provided by an embodiment of the present invention. This embodiment is applicable to the case of planting cookies across domain names during business access. The method can be executed by a cookie planting device, which can be implemented in the form of hardware and / or software. The cookie planting device can be configured in a server. Figure 7 As shown, the method includes:

[0099] S410: Receive access data and page jump address sent by the client.

[0100] In this embodiment, the access data and the page jump address are obtained from the target page jump request by the client in response to detecting the target page jump request.

[0101] The business link represents a page jump link corresponding to at least one business page under at least one pre-set business domain name. Specifically, the target page jump request can be generated based on the access data and the page jump address in the page jump request corresponding to the pre-set business page in the business link.

[0102] Specifically, the access data is used to characterize the business data that needs to be tracked and recorded throughout the entire link. Exemplarily, the access data includes an access parameter name and an access parameter value.

[0103] For example, in a product promotion scenario, it is necessary to track and record the entire link of the promotion path for visiting the product page. The access parameter name in the access data can be the promotion path, and the access parameter value includes but is not limited to the QR code of promoter A, the QR code of promoter B, the promotion link of advertiser A, the promotion link of advertiser B, or the user search keyword, etc. In the drug purchase scenario, it is necessary to track and record the entire link of the prescription doctor corresponding to the drug. The access parameter name in the access data can be the name of the prescription doctor, and the access parameter value includes but is not limited to doctor A, doctor B, and doctor C, etc. In the system login scenario, it is necessary to track and record the user's login information throughout the entire link. The access parameter name in the access data can include but is not limited to the login account and login password, etc. The access data is exemplarily described here and is not limited to it. The access data can be customized by business personnel.

[0104] Specifically, the page jump address is used to represent the jump address of the next business page corresponding to the current business page rendered and displayed in the client, wherein the next business page is the business page to be rendered and displayed in the client.

[0105] S420. Generate cookie planting data based on the access data and the target business domain name, and generate page operation instructions based on the cookie planting data and the page jump address.

[0106] Specifically, the target business domain name is used to represent the business domain name that needs to be planted across domains in the business link.

[0107] In a specific embodiment, the method further includes: using the last business domain name in the business link as the target business domain name; or using the next business domain name of the business domain name corresponding to the page jump address as the target business domain name.

[0108] by Figure 2 For example, when the target service domain name is the last service domain name in the service link, the target service domain name is Figure 2 In the domain name c, when the target business domain name is the next business domain name of the business domain name corresponding to the page jump address, assuming that the page jump address is domain name a page 1, then the target business domain name is Figure 2 Domain name b in, assuming the page jump address is domain name b page 2, then the target business domain name is Figure 2 The domain name in c.

[0109] Specifically, the cookie planting data can be used to represent the logical data of planting the cookies generated based on the access data into the target business domain name.

[0110] Exemplarily, the instruction type of the page operation instruction may be a header jump instruction or a JS script jump instruction, and the instruction type of the page operation instruction is not limited here.

[0111] S430, sending the page operation instruction to the client, so that the client performs the cookie planting operation and the page jump operation in sequence based on the page operation instruction.

[0112] The technical solution of this embodiment is that, through the page jump node in the business access process, the client sends the access data and page jump address in the target page jump request to the server, the server generates cookie planting data based on the access data and the target business domain name, and generates page operation instructions based on the cookie planting data and the page jump address, and sends the page operation instructions to the client, the client executes the cookie planting operation and the page jump operation in sequence based on the received page operation instructions, and the data transmission between the client and the server is not subject to cross-domain security restrictions, thereby solving the problem of security restrictions on the client for the traditional cross-domain cookie planting method and improving the flexibility of cross-domain cookie planting and its adaptability to the client.

[0113] The following is an embodiment of a cookie planting device provided by an embodiment of the present invention, which is configured in a client. The device and the cookie planting method of the above embodiment belong to the same inventive concept. For details not described in detail in the embodiment of the cookie planting device, reference can be made to the contents of the cookie planting method in the above embodiment.

[0114] Figure 8This is a schematic diagram of the structure of a cookie planting device provided by one embodiment of the present invention. Figure 8 As shown, the device includes: an access data acquisition module 510, an access data sending module 520 and a cookie planting operation execution module 530.

[0115] The access data acquisition module 510 is used to acquire the access data and the page jump address in the target page jump request in response to detecting the target page jump request;

[0116] The access data sending module 520 is used to send the access data and the page jump address to the server, so that the server generates cookie planting data based on the access data and the target business domain name, and generates a page operation instruction based on the cookie planting data and the page jump address;

[0117] The cookie planting operation execution module 530 is used to respond to receiving a page operation instruction sent by the server and execute the cookie planting operation and the page jump operation in sequence based on the page operation instruction.

[0118] The technical solution of this embodiment is that, through the page jump node in the business access process, the client sends the access data and page jump address in the target page jump request to the server, the server generates cookie planting data based on the access data and the target business domain name, and generates page operation instructions based on the cookie planting data and the page jump address, and sends the page operation instructions to the client, the client executes the cookie planting operation and the page jump operation in sequence based on the received page operation instructions, and the data transmission between the client and the server is not subject to cross-domain security restrictions, thereby solving the problem of security restrictions on the client for the traditional cross-domain cookie planting method and improving the flexibility of cross-domain cookie planting and its adaptability to the client.

[0119] On the basis of the above embodiment, specifically, the target business domain name is the last business domain name in the business link, or the target business domain name is the next business domain name of the business domain name corresponding to the page jump address.

[0120] Based on the above embodiment, specifically, the device further includes:

[0121] A target page jump request generation module, configured to generate a target page jump request based on the access data and the page jump address in the page jump request in response to detecting a page jump request corresponding to a preset business page in the business link;

[0122] The preset business page includes the first business page in the first business domain name in the business link or the target business page in the first business domain name in the business link, and the target business page represents the business page where the unexpected jump occurs.

[0123] Based on the above embodiments, specifically, when the target business domain name is the next business domain name of the business domain name corresponding to the page jump address, the preset business page also includes the first business page in the intermediate business domain name in the business link or the target business page in the intermediate business domain name in the business link, and the intermediate business domain name includes the business domain names in the business link except the first business domain name and the last business domain name.

[0124] Specifically, the cookie planting device provided in the embodiment of the present invention can be deployed in the client as an independent tool device, thereby achieving the reusability of the cookie planting device.

[0125] The cookie planting device provided in the embodiment of the present invention can execute the cookie planting method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0126] The following is an embodiment of a cookie planting device provided by an embodiment of the present invention, which is configured in a server. The device and the cookie planting method of the above embodiment belong to the same inventive concept. For details not described in detail in the embodiment of the cookie planting device, reference can be made to the contents of the cookie planting method in the above embodiment.

[0127] Fig. 9 This is a schematic diagram of the structure of a cookie planting device provided by one embodiment of the present invention. Fig. 9 As shown, the device includes: an access data receiving module 610, a page operation instruction generating module 620 and a page operation instruction sending module 630.

[0128] The access data receiving module 610 is used to receive the access data and the page jump address sent by the client; wherein the access data and the page jump address are obtained from the target page jump request by the client in response to detecting the target page jump request;

[0129] The page operation instruction generation module 620 is used to generate cookie planting data based on the access data and the target business domain name, and to generate a page operation instruction based on the cookie planting data and the page jump address;

[0130] The page operation instruction sending module 630 is used to send the page operation instruction to the client, so that the client performs the cookie planting operation and the page jump operation in sequence based on the page operation instruction.

[0131] The technical solution of this embodiment is that, through the page jump node in the business access process, the client sends the access data and page jump address in the target page jump request to the server, the server generates cookie planting data based on the access data and the target business domain name, and generates page operation instructions based on the cookie planting data and the page jump address, and sends the page operation instructions to the client, the client executes the cookie planting operation and the page jump operation in sequence based on the received page operation instructions, and the data transmission between the client and the server is not subject to cross-domain security restrictions, thereby solving the problem of security restrictions on the client for the traditional cross-domain cookie planting method and improving the flexibility of cross-domain cookie planting and its adaptability to the client.

[0132] Based on the above embodiment, specifically, the device further includes:

[0133] A target business domain name determination module is used to use the last business domain name in the business link as the target business domain name; or,

[0134] The next business domain name of the business domain name corresponding to the page jump address is used as the target business domain name.

[0135] The cookie planting device provided in the embodiment of the present invention can execute the cookie planting method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0136] Fig.10 This is a schematic diagram of the structure of a cookie planting system provided by one embodiment of the present invention. The cookie planting system in this embodiment can provide services for the cookie planting method provided by the above embodiment, and can be configured with the cookie planting device provided by the above embodiment.

[0137] like Fig.10 As shown, the cookie planting system 700 includes a client 710 and a server 720; wherein the client 710 is used to, in response to detecting a target page jump request, obtain access data and a page jump address in the target page jump request, and send the access data and the page jump address to the server 720, and in response to receiving a page operation instruction sent by the server 720, sequentially perform a cookie planting operation and a page jump operation based on the page operation instruction;

[0138] The server 720 is used to generate cookie planting data based on the access data and the target business domain name, and to generate page operation instructions based on the cookie planting data and the page jump address, and to send the page operation instructions to the client 710.

[0139] The business link represents a page jump link corresponding to at least one business page under at least one pre-set business domain name. Specifically, the target page jump request can be generated based on the access data and the page jump address in the page jump request corresponding to the pre-set business page in the business link.

[0140] Specifically, the access data is used to characterize the business data that needs to be tracked and recorded throughout the entire link. Exemplarily, the access data includes an access parameter name and an access parameter value.

[0141] For example, in a product promotion scenario, it is necessary to track and record the entire link of the promotion path for visiting the product page. The access parameter name in the access data can be the promotion path, and the access parameter value includes but is not limited to the QR code of promoter A, the QR code of promoter B, the promotion link of advertiser A, the promotion link of advertiser B, or the user search keyword, etc. In the drug purchase scenario, it is necessary to track and record the entire link of the prescription doctor corresponding to the drug. The access parameter name in the access data can be the name of the prescription doctor, and the access parameter value includes but is not limited to doctor A, doctor B, and doctor C, etc. In the system login scenario, it is necessary to track and record the user's login information throughout the entire link. The access parameter name in the access data can include but is not limited to the login account and login password, etc. The access data is exemplarily described here and is not limited to it. The access data can be customized by business personnel.

[0142] Specifically, the page jump address is used to represent the jump address of the next business page corresponding to the current business page rendered and displayed in the client 710 , wherein the next business page is the business page to be rendered and displayed in the client 710 .

[0143] Specifically, the target business domain name is used to represent the business domain name that needs to be planted across domains in the business link.

[0144] Specifically, the cookie planting data can be used to represent the logical data of planting the cookies generated based on the access data into the target business domain name.

[0145] Exemplarily, the instruction type of the page operation instruction may be a header jump instruction or a JS script jump instruction, and the instruction type of the page operation instruction is not limited here.

[0146] The technical solution of this embodiment is that, through the page jump node in the business access process, the client sends the access data and page jump address in the target page jump request to the server, the server generates cookie planting data based on the access data and the target business domain name, and generates page operation instructions based on the cookie planting data and the page jump address, and sends the page operation instructions to the client, the client executes the cookie planting operation and the page jump operation in sequence based on the received page operation instructions, and the data transmission between the client and the server is not subject to cross-domain security restrictions, thereby solving the problem of security restrictions on the client for the traditional cross-domain cookie planting method and improving the flexibility of cross-domain cookie planting and its adaptability to the client.

[0147] Fig.11 A schematic diagram of the structure of an electronic device provided for one embodiment of the present invention. The electronic device 10 is intended to represent various forms of clients, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The electronic device 10 can also represent various forms of servers, such as workstations, personal digital assistants, blade servers, mainframe computers, and other suitable servers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0148] like Fig.11 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0149] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0150] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the cookie planting method provided in the above embodiments.

[0151] In some embodiments, the cookie planting method provided in the above embodiments may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps in the cookie planting method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the cookie planting method in any other appropriate manner (e.g., by means of firmware).

[0152] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0153] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0154] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0155] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0156] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0157] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0158] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0159] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A cookie planting method, characterized in that: Applied to the client, including: In response to detecting a target page jump request, acquiring access data and a page jump address in the target page jump request; Sending the access data and the page jump address to a server, so that the server generates cookie planting data based on the access data and the target business domain name, and generates a page operation instruction based on the cookie planting data and the page jump address; In response to receiving the page operation instruction sent by the server, based on the page operation instruction, a cookie planting operation and a page jump operation are performed in sequence.

2. The method according to claim 1, characterized in that: The target business domain name is the last business domain name in the business link, or the target business domain name is the next business domain name of the business domain name corresponding to the page jump address.

3. The method according to claim 2, characterized in that The method further comprises: In response to detecting a page jump request corresponding to a preset business page in the business link, generating a target page jump request based on access data and a page jump address in the page jump request; The preset service page includes the first service page in the first service domain name in the service link or the target service page in the first service domain name in the service link, and the target service page represents the service page to which the unexpected jump occurs.

4. The method according to claim 3, characterized in that When the target business domain name is the next business domain name of the business domain name corresponding to the page jump address, the preset business page also includes the first business page in the intermediate business domain name in the business link or the target business page in the intermediate business domain name in the business link, and the intermediate business domain name includes the business domain names in the business link except the first business domain name and the last business domain name.

5. A cookie planting method, characterized in that: Applicable to servers, including: Receiving access data and a page jump address sent by a client; wherein the access data and the page jump address are obtained by the client from the target page jump request in response to detecting the target page jump request; Generate cookie planting data based on the access data and the target business domain name, and generate page operation instructions based on the cookie planting data and the page jump address; The page operation instruction is sent to the client, so that the client performs the cookie planting operation and the page jump operation in sequence based on the page operation instruction.

6. The method according to claim 5, characterized in that The method further comprises: The last service domain name in the service link is used as the target service domain name; or, The next business domain name of the business domain name corresponding to the page jump address is used as the target business domain name.

7. A cookie planting device, characterized in that: Configured on the client, including: An access data acquisition module, configured to acquire access data and a page jump address in the target page jump request in response to detecting the target page jump request; An access data sending module, used to send the access data and the page jump address to the server, so that the server generates cookie planting data based on the access data and the target business domain name, and generates a page operation instruction based on the cookie planting data and the page jump address; The cookie planting operation execution module is used to respond to receiving a page operation instruction sent by the server and execute the cookie planting operation and the page jump operation in sequence based on the page operation instruction.

8. A cookie planting device, characterized in that: Configured on the server, including: An access data receiving module, used for receiving access data and a page jump address sent by a client; wherein the access data and the page jump address are obtained by the client from the target page jump request in response to detecting the target page jump request; A page operation instruction generation module, used to generate cookie planting data based on the access data and the target business domain name, and to generate a page operation instruction based on the cookie planting data and the page jump address; The page operation instruction sending module is used to send the page operation instruction to the client, so that the client performs the cookie planting operation and the page jump operation in sequence based on the page operation instruction.

9. A cookie planting system, characterized in that: The system comprises: a client and a server; The client is used to, in response to detecting a target page jump request, obtain access data and a page jump address in the target page jump request, and send the access data and the page jump address to the server, and in response to receiving a page operation instruction sent by the server, sequentially perform a cookie planting operation and a page jump operation based on the page operation instruction; The server is used to generate cookie planting data based on the access data and the target business domain name, and to generate page operation instructions based on the cookie planting data and the page jump address, and to send the page operation instructions to the client.

10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cookie planting method described in any one of claims 1 to 4 or the cookie planting method described in any one of claims 5 to 6.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cookie planting method described in any one of claims 1-4 or the cookie planting method described in any one of claims 5-6 when executed.