Data processing method, device, storage medium, and electronic device

By sharing storage locations under the same domain of a third-party website and using inline framework elements and target scripts for cross-domain communication, the difficulty of pushing media files caused by browser disabling third-party cookies is solved, and the precise push of personalized media files is achieved.

CN113918865BActive Publication Date: 2025-07-25NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111370393.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2025-07-25
Estimated Expiration
2041-11-18

AI Technical Summary

Technical Problem

In the prior art, third-party cookies are disabled, media files cannot be effectively pushed, which has security problems and cannot achieve accurate personalized media file recommendations.

Method used

By sharing the target storage location on multiple pages under the same domain of a third-party website, cross-domain communication is used to obtain and load the target files associated with the target identity, avoiding relying on third-party cookies.

Benefits of technology

It realizes the precise push of personalized media files when the browser disables third-party cookies, solves the problem of not being able to effectively push media files and improves the accuracy and security of media file recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918865B_ABST
    Figure CN113918865B_ABST
Patent Text Reader

Abstract

The present invention discloses a data processing method, apparatus, storage medium, and electronic device. The method includes: on a third-party website, determining a first page accessed by a target account; if it is determined that a target identifier of the target account is stored in a target storage location of the third-party website, sending a target request to a server, where multiple pages under the same domain share the target identifier stored in the target storage location, the first page is one of the multiple pages, and the target request carries the target identifier; obtaining a target file associated with the target identifier pushed by the server in response to the target request; and loading the target file on the first page. Through the present invention, the technical effect of effectively pushing media files is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular, to a data processing method, apparatus, storage medium, and electronic device. Background Art

[0002] Currently, the tracking technology of media files can be based on third-party cookies. For example, the owner of a website embeds the tracking code of an advertising provider in its own website. When an end user browses the website, the tracking code of the advertising provider will initiate a request to the server of the advertising provider, thereby obtaining a third-party cookie. Then, the advertising script can collect the user's behavior data without the user's awareness and upload it to its own server to establish a user profile. When the user terminal accesses the website of the advertising provider itself, since the third-party cookie stored in the above process already exists in the browser at this time, the server can identify the user and push appropriate media files to the user according to the previously established user profile.

[0003] However, since the third-party cookie will be automatically sent to the server along with the Hyper Text Transfer Protocol (HTTP) request, it has certain security risks in some scenarios. In addition, major browser manufacturers have basically disabled third-party cookies, resulting in the technical problem of being unable to effectively push media files.

[0004] Aiming at the technical problem of being unable to effectively push media files in the prior art, no effective solution has been proposed yet. Summary of the Invention

[0005] The main object of the present invention is to provide a data processing method, apparatus, storage medium, and electronic device to at least solve the technical problem of being unable to effectively push media files.

[0006] To achieve the above object, according to one aspect of the present invention, a data processing method is provided. The method may include: on a third-party website, determining a first page accessed by a target account; determining that a target identifier of the target account is stored in a target storage location of the third-party website, and then sending a target request to a server, where multiple pages in the same domain share the target identifier stored in the target storage location, the first page is one of the multiple pages, and the target request carries the target identifier; obtaining a target file associated with the target identifier pushed by the server in response to the target request; and loading the target file on the first page.

[0007] Optionally, the method further includes: on a second page of a third-party website, receiving a first-type message from a third page of a first-party website; in response to the first-type message, if the target identifier is not stored in the target storage location, storing the target identifier in the target storage location.

[0008] Optionally, when the third page and the second page are in different domains, the second page is embedded in the third page through an inline frame element, and the first-type message is sent by the third page to the second page through a top-level interface.

[0009] Optionally, when the target account accesses the third page, the inline frame element is inserted into the third page, and the address of the inline frame element points to the second page, so that the second page is embedded in the third page through the inline frame element.

[0010] Optionally, the inline frame element is hidden in the third page.

[0011] Optionally, the method further includes: on a second page of a third-party website, receiving a second-type message from a third page of a first-party website, where the second-type message includes behavior data of the target account accessing the third page; in response to the second-type message, uploading at least the behavior data to a server, so that the server determines a target file according to the behavior data.

[0012] Optionally, uploading at least the behavior data to the server includes: uploading the target identifier and the behavior data to the server.

[0013] Optionally, the behavior data is obtained by a target script embedded in the third page, and the target script is provided by the third-party website.

[0014] Optionally, the second page is a hidden page in the third-party website.

[0015] Optionally, the target storage location is the local storage space of the third-party website.

[0016] To achieve the above object, according to another aspect of the present invention, a data processing device is further provided. The device may include: a first determination unit, configured to determine a first page accessed by a target account on a third-party website; a second determination unit, configured to determine that a target identifier of the target account is stored in a target storage location of the third-party website, and then send a target request to the server, where multiple pages in the same domain share the target identifier stored in the target storage location, the first page is one of the multiple pages, and the target request carries the target identifier; an acquisition unit, configured to acquire a target file associated with the target identifier pushed by the server in response to the target request; and a loading unit, configured to load the target file on the first page.

[0017] To achieve the above object, according to another aspect of the present invention, there is also provided a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is run by a processor, it controls the device where the computer-readable storage medium is located to execute the data processing method of the embodiment of the present invention.

[0018] To achieve the above object, according to another aspect of the present invention, there is provided an electronic device. The electronic device includes a memory and a processor. It is characterized in that a computer program is stored in the memory, and the processor is configured to run the computer program to execute the data processing method of the embodiment of the present invention.

[0019] In the data processing method of this embodiment, on a third-party website, determine the first page accessed by the target account; if it is determined that the target identifier of the target account is stored in the target storage location of the third-party website, then send a target request to the server, where multiple pages under the same domain share the target identifier stored in the target storage location, the first page is one of the multiple pages, and the target request carries the target identifier; obtain the target file associated with the target identifier pushed by the server in response to the target request; load the target file on the first page. That is to say, in this application, since the target storage location of the third-party website is shared by all pages under the same domain and the target identifier is stored in the target storage location, the first page of the third-party website can also read the target identifier, so the target identifier can be carried to request the server to push the target file for the target account identified by the target identifier, achieving the purpose of accurately pushing personalized media files to the target account, avoiding relying on third-party cookies to push media files, thus solving the technical problem of being unable to effectively push media files and achieving the technical effect of effectively pushing media files. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0021] Figure 1 is a hardware structure block diagram of a mobile terminal of a data processing method according to an embodiment of the present invention;

[0022] Figure 2 is a flowchart of a data processing method according to an embodiment of the present invention;

[0023] Figure 3 is a schematic diagram of a user tracking and advertising delivery solution that does not rely on third-party cookies according to an embodiment of the present invention;

[0024] Figure 4Schematic diagram of a data processing device according to an embodiment of the present invention. Detailed implementation manners

[0025] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments may be combined with each other. The present invention will be described in detail below with reference to the drawings and in conjunction with the embodiments.

[0026] In order to enable those skilled in the art of the present technology to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present application.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so as to implement the embodiments of the present application described here. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily need to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0028] The method embodiments provided in the embodiments of the present application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 is a hardware structure block diagram of a mobile terminal of a data processing method according to an embodiment of the present invention. As Figure 1 shown, the mobile terminal may include one or more ( Figure 1 only one is shown in Figure 1 a processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above-mentioned mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown in Figure 1 is only schematic, and it does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may further include more or fewer components than

[0029] The memory 104 can be used to store computer programs, such as software programs and modules of application software, such as the computer program corresponding to a data processing method in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above-mentioned method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the mobile terminal through a network. Examples of the above-mentioned network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and combinations thereof.

[0030] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the mobile terminal. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 can be a radio frequency (Radio Frequency, abbreviated as RF) module, which is used to communicate with the Internet wirelessly.

[0031] In this embodiment, a data processing method running on the above-mentioned mobile terminal is provided. Figure 2 It is a flowchart of a data processing method according to an embodiment of the present invention. As Figure 2 shown, the method may include the following steps:

[0032] Step S202, on a third-party website, determine the first page accessed by the target account.

[0033] In the technical solution provided in step S202 of the present invention, the third-party website can be the website of the target file provider. For example, if the target file is an advertisement, the third-party website can be the website of the advertisement provider, which can be represented by website C. Among them, the above-mentioned third-party website may include a first page, which is the page of the third-party website accessed through the target account. For example, it is the page of website C.

[0034] In this embodiment, on the first page of a third-party website, the first page accessed by the target account is determined. Optionally, in this embodiment, a request of the target account can be obtained. The target account is an account used to log in to the third-party website to access the first page of the third-party website. The request can be used to cause the target account to request access to the first page from the server, thereby achieving the purpose of the user accessing the first page of the third-party website through the target account.

[0035] Step S204: If it is determined that the target identifier of the target account is stored in the target storage location of the third-party website, then a target request is sent to the server.

[0036] In the technical solution provided in step S204 of the present invention above, after determining the first page accessed by the target account, if it is determined that the target identifier of the target account is stored in the target storage location of the third-party website, then a target request is sent to the server. Among them, multiple pages under the same domain share the target identifier stored in the target storage location. The first page is one of the multiple pages, and the target request carries the target identifier. Herein, the same domain can refer to the same domain name, that is, the domain names of the URLs of multiple pages are the same. For example, for the URLs of a page a.html and another page b.html, the domain names of both are "mail.163.com", only the specific html pages are different. Then it can be said that page a.html and page b.html are pages under the same domain and share the target identifier stored in the target storage location. Therefore, the multiple pages in this embodiment can refer to multiple different pages under the same domain, such as page a.html and page b.html, and the above-mentioned first page can be any one of the multiple pages under the same domain.

[0037] In this embodiment, the third-party website has a target storage location, which is a storage space provided by the client. All pages under the same domain of the third-party website can share the data stored in the target storage location. Therefore, in this embodiment, the data stored in the target storage location can be read on the above-mentioned first page. For example, the data is the target identifier of the above-mentioned target account. Optionally, the target storage location in this embodiment can be dimensioned by domain. The target script can freely read and write the target storage location under its own domain, and the content stored in the target storage location can be retained for a long time. Thus, even if the client and the terminal on which the client is installed are closed, it will not expire, and the available storage space is much larger than that of a Cookie. Among them, the client can be a browser, and the target script can be a Javascript script.

[0038] In this embodiment, the first page of the third-party website can be initialized first. Since the first page shares the target identifier stored in the target storage location with other pages under the same domain, it is possible to check whether the target identifier of the target account is stored in the above-mentioned target storage location. If it is detected that the target identifier of the target account has been stored in the target storage location, a target request can be sent to the server. Among them, the target identifier can be used to uniquely identify the target account, that is, the user identifier. The target request is used to request the server to push the target file and carries the target identifier of the target account. That is, the third-party website can bring the target identifier to request services from the server. Among them, the server can be the server of the third-party website itself. For example, it is the server of website C.

[0039] Step S206: Obtain the target file associated with the target identifier pushed by the server in response to the target request.

[0040] In the technical solution provided in step S206 of the present invention, after determining that the target storage location of the third-party website stores the target identifier of the target account and sending a target request to the server, obtain the target file associated with the target identifier pushed by the server in response to the target request. Optionally, the degree of association between the target file and the target identifier in this embodiment is greater than the target threshold.

[0041] In this embodiment, after the server receives the target request sent by the third-party website, it can respond to the target request and obtain the target file according to the target identifier in the target request. It can be to obtain the corresponding media file according to the user portrait data corresponding to the target identifier. The degree of association between the target file and the target identifier is greater than the target threshold. Since the target identifier uniquely identifies the target account, that is, the degree of association between the target file and the target account is greater than the target threshold. Therefore, the target file can be a personalized media file specifically for the target account, that is, the target file can be a media file that the user corresponding to the target account is interested in.

[0042] Step S208: Load the target file on the first page.

[0043] In the technical solution provided in step S208 of the present invention, after obtaining the target file associated with the target identifier pushed by the server in response to the target request, the target file can be loaded on the first page, so that when the user accesses the first page through the target account, the content of the target file can be browsed. For example, personalized advertising information or product information can be browsed, and the target file is a media file that the user is interested in, thus achieving the purpose of effectively recommending to the target account corresponding to the user.

[0044] It should be noted that the above-mentioned target file in the embodiment of the present invention may be a media file. For example, it may be a video file, an audio file, a picture file, a text file, etc., or any combination of these files. For example, a combination of a text file and a picture file, a combination of a video file and a text file. The specific product form may be, for example, a video advertisement, a native advertisement, a search advertisement, etc.

[0045] It should be noted that in this embodiment, without clearing the data of the client, the target identifier in the target storage location will not change and will always exist. When the target account accesses the third-party website next time, the target file can be obtained from the server through the target identifier in the target storage location.

[0046] In this embodiment, when the target account subsequently accesses other pages of the third-party website except the above-mentioned first page, the target file can also be recommended to it.

[0047] Through the above steps S202 to S206 of the present application, on the third-party website, determine the first page accessed by the target account; determine that the target storage location of the third-party website stores the target identifier of the target account, and then send a target request to the server. Among them, multiple pages under the same domain share the target identifier stored in the target storage location, the first page is one of the multiple pages, and the target request carries the target identifier; obtain the target file associated with the target identifier pushed by the server in response to the target request; load the target file on the first page. That is to say, in this embodiment, since the target storage location of the third-party website is shared by all pages under the same domain and the target identifier is stored in the target storage location, the first page of the third-party website can also read the target identifier, and then the target identifier can be carried to request the server to push the target file for the target account identified by the target identifier, achieving the purpose of accurately pushing personalized media files to the target account, avoiding relying on third-party cookies to push target files, thus solving the technical problem of being unable to effectively push media files and achieving the technical effect of effectively pushing media files.

[0048] The above method of this embodiment will be further introduced below.

[0049] As an optional implementation manner, the method further includes: on the second page of the third-party website, receive a first-type message from the third page of the first-party website; in response to the first-type message, if the target identifier is not stored in the target storage location, store the target identifier in the target storage location.

[0050] In this embodiment, the third-party website may include a second page, which may be a special page prepared in advance by the third-party website and can be passed through P CIt is represented by [description here], which can use a target script to listen for global message events. Here, the target script can be a JavaScript script. The second page of this embodiment has read and write permissions for the target storage location under a third-party website. When the second page is embedded in the page of another first-party website, the second page can receive messages sent from the page of the first-party website and perform some operations according to the message type. Of course, these operations also have read and write permissions for the target storage location of the third-party website, enabling the first-party website to indirectly have the ability to read and write the target storage location of the third-party website. Here, the first-party website is the website that the current user is accessing and can be the host website.

[0051] In this embodiment, the first-party website has a third page, which is also the host page. It is a page that can be normally browsed and can be represented by [description here]. It embeds the second page, so that the third page has the ability to send messages to the second page. Optionally, the third page of the first-party website in this embodiment can send a first-type message to the second page of the third-party website. The second page of the third-party website receives the first-type message from the third page of the first-party website. Here, the first-type message can be a message instruction for making the second page record the identification information of the target account. A It is represented by [description here], which embeds the second page. In this way, the third page has the ability to send messages to the second page. Optionally, the third page of the first-party website in this embodiment can send a first-type message to the second page of the third-party website. The second page of the third-party website receives the first-type message from the third page of the first-party website. Here, the first-type message can be a message instruction for making the second page record the identification information of the target account.

[0052] Optionally, after the first-party website performs a page initialization operation, the first-party website can construct a message body to obtain a first-type message, and then trigger a message event for the second page of the third-party website, so that on the second page of the third-party website, it receives the first-type message from the third page of the first-party website. Furthermore, the second page of the third-party website responds to the first-type message. It can determine that the first-type message is of the type of creating a target identification, check whether there is a target identification in the target storage location of the third-party website. If it is checked that there is a target identification in the target storage location, it can be skipped. If it is checked that there is no target identification in the target storage location, a new target identification can be created and written into the target storage location.

[0053] It should be noted that the above-mentioned third page of the first-party website sending a first-type message to the second page of the third-party website is actually communication between local windows of the client, and no network request is generated. Instead, it is more like inter-process communication (IPC), so it is very fast and transparent to the user.

[0054] Optionally, in order to avoid the problem of duplicate target identifications of the target account between different devices in this embodiment, a distributed ID algorithm can be used to judge the target identification of the target account to avoid storing duplicate target identifications in the target storage location.

[0055] As an alternative implementation, when the third page and the second page are in different domains, the second page is embedded in the third page through an inline frame element, and the first type of message is sent from the third page to the second page through a top-level interface.

[0056] In this embodiment, the third page of the first-party website and the second page of the third-party website can come from different domains. The second page can be embedded in the third page through an inline frame element (Iframe). That is, an Iframe linking to the third-party website is created in the first-party website, and the second page is embedded in the third page in the form of an Iframe. Here, the Iframe is an inline frame element of Hyper Text Markup Language (HTML for short), which is used to represent a nested browser context and can embed another HTML page into the current page. At the same time, the size and style of the frame element can be freely adjusted. However, under normal circumstances, the script of the first-party website cannot directly operate on the content inside the Iframe web page. This embodiment can use the top-level interface (postMessage) of the target script to trigger a message event for the second page of the third-party website, so as to achieve the purpose of sending the first type of message to the second page.

[0057] In this embodiment, the above-mentioned postMessage is a top-level API provided by the client. This method can safely implement cross-origin communication. Generally, for scripts of two different pages, they can communicate with each other only when they are in the same domain (the protocol, port, and host name are all the same). And the above-mentioned postMessage method of this embodiment provides a controlled mechanism to circumvent the limitation that scripts of two different pages can communicate with each other only when they are in the same domain. As long as it is used correctly, the above method is very safe and can achieve cross-domain script communication. That is, if the second page is embedded in the third page in the form of an Iframe and the first type of message is sent from the third page to the second page through postMessage, then postMessage can be used to send a message to the Iframe, and the Iframe can listen for the corresponding message event and then process the message.

[0058] As an alternative implementation, when the target account accesses the third page, the inline frame element is inserted into the third page, and the address of the inline frame element points to the second page, so that the second page is embedded in the third page through the inline frame element.

[0059] In this embodiment, when accessing the third page through the target account, that is, when the user accesses the third page through the target account, an inline frame element can be created and inserted into the third page of the first-party website. The address of this inline frame element points to the second page, so that the second page is embedded in the third page through the inline frame element, achieving the purpose that the third page uses the inline frame element to connect to the second page of the third-party website. Furthermore, it achieves the purpose that the third page, in cooperation with the inline frame element, indirectly has the ability to read and write the target storage location of the third-party website.

[0060] As an alternative implementation, the inline frame element is hidden in the third page.

[0061] In this embodiment, the style of the inline frame element in the third page is set to be hidden, that is, the embedded frame element is invisible in the third page, so that no extra elements will appear on the third page, making the user unaware of the inline frame element and avoiding affecting the user's normal web browsing.

[0062] As an alternative implementation, the method further includes: on the second page of the third-party website, receiving a second type of message from the third page of the first-party website, where the second type of message includes the behavior data of the target account accessing the third page; in response to the second type of message, uploading at least the behavior data to the server, so that the server determines the target file according to the behavior data.

[0063] In this embodiment, after the user accesses the third page of the first-party website through the target account for a period of time, the user may perform many operations, such as searching for a certain keyword, browsing a certain product information and other behavior data (user behavior information). These behavior data are very valuable for the target file recommendation system, and the third page of the first-party website can collect valuable behavior data.

[0064] In this embodiment, the third page of the first-party website sends a second type of message to the second page in the Iframe. The second page of the third-party website can receive the second type of message from the third page of the first-party website. This second type of message can be used to represent the collection of behavior information and includes the behavior data of the target account accessing the third page.

[0065] It should be noted that the above-mentioned communication from the third page of the first-party website to the second page of the third-party website in this embodiment is actually carried out between the local windows of the client, without generating network requests, and is more like inter-process communication. Therefore, it is very fast and transparent to the user.

[0066] In this embodiment, the second page of the third-party website can monitor the second type of message, process the behavior data included in the second type of information, and send it to the server to establish user portrait data, so that the server can determine, based on the user portrait data, a target file whose association degree with the target account is greater than the target threshold. Optionally, the second page of the third-party website can monitor a message event, which is used to indicate that the second type of message has been received. In response to the second type of message, it can be determined whether the second type of message is for collecting behavior information. If it is determined that the second type of message is for collecting behavior information, then some behaviors of the user corresponding to the target account on the third page of the first-party website can be determined. At this time, in cooperation with the target identifier previously created in the target storage location, it is possible to distinguish which user has performed which behaviors. Optionally, in order to protect user privacy, this embodiment can perform desensitization processing on the above-mentioned behavior data. For example, if a user accesses a page through the target account and there is his ID card and bank card information on the page, and the information collection program obtains this sensitive information of his, for security reasons, a regular expression can be used to match the pattern of this data and delete it from the behavior data. After the desensitization processing of the behavior data of the second type of information, the processed behavior data can be uploaded to the server of the third-party website. In this server, these data can be further used for in-depth analysis, and user portrait data can be established by using machine learning, statistics, etc., to prepare for subsequent recommendation of target files.

[0067] As an optional implementation manner, uploading at least the behavior data to the server includes: uploading the target identifier and the behavior data to the server.

[0068] In this embodiment, after the behavior data of the target account is collected on the third page of the first-party website, it is necessary to identify which user these behavior data belong to. Therefore, the target identifier and the behavior data need to be uploaded to the server. Otherwise, all the behavior data will be anonymous and lose the meaning of analysis. Thus, the second page of the third-party website in this embodiment can monitor the second type of message, perform desensitization processing on the behavior data included in the second type of information, and send the processed behavior data together with the target identifier to the server to establish user portrait data.

[0069] Optionally, for this embodiment to access the target storage location, it can first obtain the string of the target identifier. After obtaining the behavior data, a new object can be constructed, which contains the behavior data and the above-mentioned target identifier, and then the above new object can be sent to the server for processing, so that the server can determine, based on the behavior data and the target identifier, a target file whose association degree with the target account is greater than the target threshold.

[0070] As an alternative embodiment, the behavior data is obtained by a target script embedded in the third page, and the target script is provided by a third-party website.

[0071] In this embodiment, a target script provided by a third-party website can be embedded in the third page of the first-party website. For example, the target script is a Javascript script, which is used to collect user information and is responsible for communicating with the third-party website. For example, it is used to receive the first type of message and / or the second type of message from the third page of the first-party website on the second page of the third-party website. The target script embedded in the third page in this embodiment is imperceptible to the user. The main reason for requiring the third-party website to provide the target script is that the third page is just a host page, which only cares about its own business logic, while the target file (advertisement) tracking belongs to the business logic of the third-party website. Therefore, the third-party website needs to provide its own target script to complete its own business. In this embodiment, the target script can be cross-domain (from different domain names). Therefore, the target script provided by the third-party website can be placed on its own server, and then a link can be provided to the third page of the first-party website.

[0072] Optionally, the target script provided by the third-party website embedded in the third page of this embodiment can record the above-mentioned behavior data, so that the above-mentioned behavior data can be obtained from the target script.

[0073] As an alternative embodiment, the second page is a hidden page in the third-party website.

[0074] In this embodiment, the second page of the third-party website can be a special hidden page in the third-party website, which is invisible to the user. For example, the hidden page of website C is used to listen for the first type of message and / or the second type of message from the third page of the first-party website, and create and store the target identifier, as well as upload the collected behavior data and the target identifier.

[0075] As an alternative embodiment, the target storage location is the local storage space of the third-party website.

[0076] In this embodiment, the above-mentioned target storage location can be the third-party local storage (localStorage), which provides a storage space for the client. Taking the domain as the dimension, the Javascript script can freely read and write the storage space under its own domain, and the content stored therein can be maintained for a long time. Even if the client and the terminal on which the client is installed are closed, it will not expire, and the available storage space is much larger than that of Cookies.

[0077] In this embodiment, although the client disables third-party cookies, it does not disable third-party local storage (localStorage). That is to say, this embodiment can use third-party local storage to replace cookies and store the target identifier.

[0078] It should be noted that the above-mentioned client in this embodiment can be a browser. For example, third-party local storage is not disabled in Chrome, Firefox, IE, and Edge browsers. Safari browser is disabled by default, but users can enable it through settings.

[0079] This embodiment implements a user tracking technology that does not rely on third-party cookies. It utilizes the cross-domain characteristics of inline frame elements, creates an inline frame element in the first-party website that links to the third-party website, and uses the top-level interface of the target script for cross-domain communication to send a first type of message and a second type of message to the cross-domain inline frame element, thereby sending the collected behavioral data and the target identifier stored in the target storage location to the third-party server. The above process realizes cross-site user tracking. When the user visits the third-party website next time, the target identifier set in the target storage location can be used to request recommended advertisements for the target file from the server, including pushing advertisement information and / or goods. This avoids the difficulty of realizing cross-site user tracking and personalized media file recommendation in the context where current browser manufacturers disable third-party cookies, solves the technical problem of being unable to effectively push media files, and achieves the technical effect of effectively pushing media files.

[0080] The following further exemplifies the technical solution of the embodiment of the present invention in combination with the preferred implementation manner, specifically taking the target file as an advertisement for illustration.

[0081] Advertising is one of the important revenue sources for many Internet companies. In order to accurately deliver advertisements to end users, it is necessary to identify users and record their behaviors. For example, record which web pages the user has visited and which pages the user has stayed on for a relatively long time, etc., so as to judge what aspects the user may be interested in, so that advertisers can accurately deliver the advertisements they are interested in to each user.

[0082] However, the HTTP protocol is a stateless protocol. How to identify users without their awareness has become a key technical point in advertising delivery.

[0083] In related technologies, cookies can solve the problem that the HTTP protocol is stateless and unable to track users. Among them, a cookie is a small piece of data stored locally in the web browser of an end user. It can identify a unique user and is an identity identifier (ID) of the user. Cookies were initially only used to solve the problem of website login status. When a user first visits a website and successfully logs in by entering their password, the server will set a cookie in the request response header for the browser to indicate that the current user is logged in. In the short term, all requests from the user to this website will carry the cookie information, and the server can know which user is accessing the website without the need to enter the username and password again, improving the user experience.

[0084] The above-mentioned cookies are called first-party cookies because they are set by the website that the user is currently visiting. In fact, on a first-party website, requests can also be initiated to third-party websites (with different domain names from the current website). The servers of these third-party websites can also set cookies for the user's browser. Such cookies are called third-party cookies. In this way, third-party websites can identify the current user and can obtain the website (first-party website) that the current user is visiting, thus providing the possibility for describing user portraits. This is also the main technical means for current Internet service providers to track users and place advertisements.

[0085] The owner of the website (first-party website) embeds the JavaScript tracking code of the advertising provider (third-party website) within its own website. When the end user browses this website, the script code (tracking code) of the advertising provider will initiate a request to the server of the advertising provider. After obtaining the third-party cookie, the advertising script can collect the user's behavior information without the user's awareness and upload it to its own server to build a user portrait. When the user visits the website of the advertising provider itself, since the browser already has the cookies stored in the above process, the server can identify the user and recommend appropriate advertisements to the user based on the previously built user portrait.

[0086] However, currently, major mainstream browser manufacturers have successively announced the disabling of third-party cookies. That is to say, currently, advertising providers can no longer use third-party cookies to track users and need to find new technical solutions. In addition, since cookies are automatically sent to the server along with HTTP requests, in some scenarios, they have certain security issues. There is a problem that it is difficult to achieve cross-site user tracking and personalized advertisement recommendation in the context of current browser manufacturers disabling third-party cookies.

[0087] However, this embodiment can implement a user tracking technology that does not rely on third-party cookies, which can solve the above problems. The above method of this embodiment will be further introduced below.

[0088] Assume that the first-party website is A and the third-party website is C. Figure 3 It is a schematic diagram of a user tracking and advertising delivery solution that does not rely on third-party cookies according to an embodiment of the present invention. As Figure 3 shown, the method involves the following steps:

[0089] Step S301, the user accesses the page P of website A A .

[0090] S1, embed a Javascript script provided by the third-party website C in the page P of website A A (page P of the first-party website A A ) to collect user information and be responsible for communicating with the third-party website C.

[0091] In this embodiment, the page P A is a page that can be normally browsed, and embedding the script provided by the third-party website C in it is imperceptible to the user. The reason for requiring the third-party website C to provide the script is mainly that the page P A is just a host page, which only cares about its own business logic, while advertising tracking belongs to the business logic of the third-party website C. Therefore, it is necessary for the third-party website C to provide its own script to complete its own business. In addition, the HTML standard stipulates that Javascript scripts can be cross-domain (from different domain names). Therefore, the script provided by the third-party website C can be placed on its own server and then provide a link to the page P A .

[0092] Step S302, the page P of website A A communicates with the page P of website C C through Iframe.

[0093] S2, the third-party website C prepares a special page in advance, the page P of website C C , in which a Javascript script is used to listen for global message events.

[0094] In this embodiment, the special page P C is a special hidden page that is invisible to the user. It is used to listen for messages and create, store user identifiers, and upload the collected information. The special page P C has read and write permissions for the local storage under the third-party website C. When the special page P CWhen embedded in an Iframe on another page, it can receive messages sent from the other page and perform some operations based on the message type. Of course, these operations also have the permission to read and write the local storage of the third-party website C. Therefore, in combination with the Iframe, this embodiment enables the host website A to indirectly have the ability to read and write the storage space of the third-party website C.

[0095] S3. When the user accesses page P A create an Iframe and insert it into page P A where the Iframe address points to the special page P C and set the style of the Iframe to invisible.

[0096] In this embodiment, the purpose of setting the Iframe to be invisible is mainly to avoid having extra elements on the page, making the user unaware and not affecting the user's normal web browsing. And the purpose of using the Iframe to connect to P C is mainly to achieve the ability mentioned in S2, enabling the host website A to indirectly have the ability to read and write the storage space of the third-party website C.

[0097] S4. Page P A uses postMessage to send a message instruction to the special page P in the Iframe C to let it record the user identifier.

[0098] In this embodiment, since the special page P C is embedded in page P in the form of an Iframe A page P A has the ability to send messages to the special page P C After the page is initialized, page P A constructs the message body, specifies the message type as creating a user identifier, and then uses postMessage to trigger a message event to the special page P C

[0099] Step S303. The C website page writes the user identifier to the localStorage of the C website.

[0100] S5. The special page P C monitors the message, checks whether there is a user identifier in the third-party local storage localStorage. If not, it creates a user identifier.

[0101] In this embodiment, the special page P C monitors the message from page P A ​For the message, after determining that the message type is to create a user identifier, it is possible to first check whether there is a user identifier in the local storage space of the third-party website C. If there is, it can be skipped. If not, a new user identifier is created and written to the third-party local storage. At the same time, in order to avoid duplicate user identifiers across devices, a distributed ID algorithm can be used in this embodiment.

[0102] S6, page P A After collecting valuable user behavior information, postMessage is used again to send the information to the special page P in the Iframe. C Send the collected information.

[0103] In this embodiment, the user browses page P. A After a period of time, the user may perform many operations, such as searching for a certain keyword and browsing a certain product information. These information are very valuable for the advertising recommendation system. The third-party website C script embedded in page P records and collects these behaviors of the user (of course, data desensitization needs to be performed). At this time, similar to S4, a message can be sent again to the special page P in the Iframe. A C Send a message, but the message type becomes collecting behavior information, and send the collected information to the special page P together. C C .

[0104] It should be noted that the above message sending is actually communication between local browser windows, which will not generate network requests, but is more like inter-process communication (IPC), so it is very fast and transparent to users.

[0105] Step S304, the C website hidden page uploads the user identifier and the collected behavior information to the C website server.

[0106] S7, special page P C Upon receiving the message, process the behavior information, and send it to the server together with the user identifier in localStorage to create a user profile.

[0107] In this embodiment, when a user accesses localStorage, the user identification string can be obtained through the localStorage.get('userId') method; after collecting the user behavior information, a new object is constructed, which contains the behavior information and the user identification. This user identification is the one obtained from localStorage in the previous step; the above-constructed object can be sent to the server to build a user profile. Among them, after collecting the behavior information, it is necessary to identify which user these behaviors belong to, so the user identification needs to be sent to the server together, otherwise all data will be anonymous and lose the meaning of analysis. In addition, without clearing the browser data, the user identification in localStorage will not change and will always exist. When accessing the third-party website C next time, the advertisement data can be obtained from the server through this user identification in localStorage.

[0108] Optionally, in this embodiment, on the special page P C When a message event is monitored and it is determined that the message type is to collect behavior information, it is known that the user has some behaviors on page P A At this time, in cooperation with the user identification created in the previous S5, it is possible to distinguish which user has made which behavior information. To protect user privacy, the user's behavior information can be desensitized. For example, when a user visits a page with his ID card and bank card information on it, and the information collection program obtains this sensitive information of his, for security reasons, before uploading it to the server, the patterns of these data can be matched with regular expressions and deleted from the behavior information, and then the processed behavior information is uploaded to the server.

[0109] In the server, the behavior information and the user identification can be further used for in-depth analysis, and a user profile can be established by using machine learning, statistics, etc., to prepare for subsequent advertisement recommendation.

[0110] Step S305, the user accesses the C website page.

[0111] Step S306, the C website page reads the user identification from the localStorage of the C website.

[0112] Step S307, the C website page requests advertisement or product recommendation from the server using the user identification.

[0113] S8, when the user subsequently accesses other pages of the third-party website C, advertisements are recommended to him.

[0114] In this embodiment, since localStorage is shared among all pages under the same domain, the user identifier was created and stored in localStorage in step S5 above, and can also be read on other pages of the third-party website C. After the page is initialized, it will first check if there is such a user identifier in localStorage. If there is, it will carry this identifier to request server services and pull personalized advertisement information to be pushed to the user, thus achieving the purpose of accurately recommending advertisements to the user.

[0115] Through the above method, this embodiment can achieve the following scenario: The end user browses content about digital products on the first website page; the end user sees an advertisement for digital products on the second website page; the end user obtains product recommendation information for digital products on the third website page.

[0116] In this embodiment, although the browser disables third-party cookies, it does not disable third-party local storage (localStorage). That is to say, this embodiment can use third-party local storage to replace cookies and store user identifiers. In addition, this embodiment utilizes the cross-domain feature of Iframe, creates an Iframe linking to the third-party website in the first-party website, and uses the postMessage API of Javascript for cross-domain communication to send messages to the cross-domain Iframe, so as to send the collected user information with the user identifier pre-set in localStorage to the server of the third-party website (third-party server). The above process realizes cross-site user tracking. When the user visits this third-party website next time, the user identifier set in the local storage before can be used to request advertisement push or product recommendation from the server.

[0117] This embodiment gets rid of the dependence on third-party cookies, uses localStorage to store user identifiers, and uses Iframe and postMessage to achieve cross-domain communication. The combination of the three realizes cross-site user tracking, thus realizing user tracking and advertisement placement on browsers that disable third-party cookies. Before a more modern and reliable advertisement tracking solution comes out, it can be used as a transitional solution to avoid the loss of benefits caused by the large-scale disabling of third-party cookies by browsers, solve the problem of difficult cross-site user tracking and personalized advertisement recommendation under the background that current browser manufacturers disable third-party cookies, and achieve the technical effect of effectively pushing media files.

[0118] The embodiment of the present invention also provides a data processing device. It should be noted that the data processing device in this embodiment can be used to execute the data processing method Figure 2 shown in the embodiment of the present invention.

[0119] Figure 4 It is a schematic diagram of a data processing device according to an embodiment of the present invention. As Figure 4 shown, the data processing device 40 includes: a first determination unit 41, a second determination unit 42, an acquisition unit 43, and a loading unit 44.

[0120] The first determination unit 41 is configured to determine a first page accessed by a target account on a third-party website.

[0121] The second determination unit 42 is configured to, if it determines that a target identifier of the target account is stored in a target storage location of the third-party website, send a target request to the server, wherein a plurality of pages under the same domain share the target identifier stored in the target storage location, the first page is one of the plurality of pages, and the target request carries the target identifier.

[0122] The acquisition unit 43 is configured to acquire a target file associated with the target identifier pushed by the server in response to the target request.

[0123] The loading unit 44 is configured to load the target file on the first page.

[0124] Optionally, the device further includes: a first receiving unit, configured to receive a first-type message of a third page from a first-party website on a second page of the third-party website; a determination unit, configured to, in response to the first-type message, store the target identifier in the target storage location when the target identifier is not stored in the target storage location.

[0125] Optionally, in the case where the third page and the second page are in different domains, the second page is embedded in the third page through an inline frame element, and the first-type message is sent by the third page to the second page through a top-level interface.

[0126] Optionally, when the target account accesses the third page, the inline frame element is inserted into the third page, and the address of the inline frame element points to the second page, so that the second page is embedded in the third page through the inline frame element.

[0127] Optionally, the inline frame element is hidden in the third page.

[0128] Optionally, the device further includes: a second receiving unit, configured to receive a second-type message of a third page from a first-party website on a second page of the third-party website, wherein the second-type message includes behavior data of the target account accessing the third page; an uploading unit, configured to, in response to the second-type message, upload at least the behavior data to the server, so that the server determines the target file according to the behavior data.

[0129] Optionally, the uploading unit includes: an uploading module configured to upload the target identifier and behavior data to the server.

[0130] Optionally, the behavior data is obtained by a target script embedded in the third page, and the target script is provided by a third-party website.

[0131] Optionally, the second page is a hidden page in the third-party website.

[0132] Optionally, the target storage location is the local storage space of the third-party website.

[0133] In the data processing device of this embodiment, since the target storage location of the third-party website is shared by all pages in the same domain, the target identifier is stored in the target storage location. Therefore, the first page of the third-party website can also read the target identifier, and then the target identifier can be carried to request the server to push the target file for the target account identified by the target identifier, achieving the purpose of accurately pushing personalized media files to the target account, avoiding relying on third-party Cookies for media file pushing, thus solving the technical problem of ineffective media file pushing and achieving the technical effect of effective media file pushing.

[0134] An embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is run by a processor, it controls the device where the computer-readable storage medium is located to execute the data processing method of the embodiment of the present invention.

[0135] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (ROM), random access memories (RAM), mobile hard disks, magnetic disks, or optical discs and other various media that can store computer programs.

[0136] An embodiment of the present invention also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0137] Optionally, the above-mentioned electronic device may further include a transmission device and input / output devices. Among them, the transmission device is connected to the above-mentioned processor, and the input / output devices are connected to the above-mentioned processor.

[0138] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module for implementation. In this way, the present invention is not limited to any specific combination of hardware and software.

[0139] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A data processing method, characterized in that, The method includes: On a third-party website, determine the first page accessed by the target account; If it is determined that the target identifier of the target account is stored in the target storage location of the third-party website, send a target request to the server, where multiple pages under the same domain share the target identifier stored in the target storage location, the first page is one of the multiple pages, and the target request carries the target identifier; Obtain the target file associated with the target identifier pushed by the server in response to the target request; Load the target file on the first page; Wherein, the target file is determined according to the behavior data of the target account on the third page of the first-party website, the behavior data is transmitted from the third page to the second page of the third-party website, and the second page is embedded in the third page through an inline frame element.

2. The method according to claim 1, characterized in that, The method further includes: On the second page of the third-party website, receive a first type of message from the third page of the first-party website; In response to the first type of message, if the target identifier is not stored in the target storage location, store the target identifier in the target storage location.

3. The method according to claim 2, wherein In the case where the third page and the second page are in different domains, the first type of message is sent from the third page to the second page through a top-level interface.

4. The method according to claim 3, characterized in that, When the target account accesses the third page, the inline frame element is inserted into the third page, and the address of the inline frame element points to the second page, so that the second page is embedded in the third page through the inline frame element.

5. The method according to claim 3, wherein The inline frame element is hidden in the third page.

6. The method according to claim 1, wherein The method further includes: On the second page of the third-party website, receive a second type of message from the third page of the first-party website, where the second type of message includes the behavior data of the target account accessing the third page; In response to the second type of message, upload at least the behavior data to the server, so that the server determines the target file according to the behavior data.

7. The method according to claim 6, characterized in that Uploading at least the behavior data to the server includes: Upload the target identifier and the behavior data to the server.

8. The method according to claim 6, characterized in that, The behavior data is obtained by a target script embedded in the third page, and the target script is provided by the third-party website.

9. The method according to claim 2, wherein The second page is a hidden page in the third-party website.

10. The method according to any one of claims 1 to 9, characterized in that, The target storage location is the local storage space of the third-party website.

11. A data processing device, characterized in that, The device includes: A first determination unit, configured to determine, on a third-party website, the first page accessed by the target account; A second determination unit, configured to determine that the target identifier of the target account is stored in the target storage location of the third-party website, and then send a target request to the server, where multiple pages under the same domain share the target identifier stored in the target storage location, the first page is one of the multiple pages, and the target request carries the target identifier; An acquisition unit, configured to acquire a target file associated with the target identifier pushed by the server in response to the target request; A loading unit, configured to load the target file on the first page; Wherein, the target file is determined according to the behavior data of the target account on the third page of the first-party website, the behavior data is transmitted from the third page to the second page of the third-party website, and the second page is embedded in the third page through an inline frame element.

12. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein, when the computer program is run by a processor, it controls the device where the computer-readable storage medium is located to execute the method described in any one of claims 1 to 10.

13. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to run the computer program by the processor to execute the method described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • User information sharing methods and device, electronic equipment and memory medium

    CN109302493A