Promotion channel matching methods, devices, equipment and storage media

CN116051176BActive Publication Date: 2026-08-14XIAN MITEZHEN DIGITAL TECHNOLOGY CO LTD +2
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-03
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

但是,由于不同的推广人员可以向同一个注册用户进行推广,此时需要确定第一个推广人员

Benefits of technology

[0036]本发明实施例提供的推广渠道匹配的方法、装置、设备及存储介质,用户在首次访问平台时,平台域名对应的cookie中不会存有渠道码,此时将相应的渠道码存储至cookie中;利用cookie具有有效期的特点,若在cookie的有效期内该用户提交了注册请求,则关联该用户与cookie中的渠道码,可在一段时间(即有效期)内保证将该用户与首次访问时的渠道码进行关联,能够比较准确地确定第一个推荐该用户的推广渠道;此外,在该cookie的有效期内,即使该用户又以其他的新渠道码访问该平台,由于cookie中已经存有渠道码,该新渠道码也不会被存至cookie中,仍然可以准确确定该用户首次访问平台时所使用的渠道码。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116051176B_ABST
    Figure CN116051176B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, device, and storage medium for matching promotional channels. The method includes: obtaining an access request from a user to access the current page; storing the channel code corresponding to the access request in the cookie if no channel code exists in the cookie corresponding to the platform domain; obtaining a registration request submitted by the user based on a registration page; and associating the user with the channel code in the cookie if the channel code exists in the cookie and the registration time corresponding to the registration request has not exceeded the validity period of the cookie. The method, apparatus, device, and storage medium for matching promotional channels provided by this invention can ensure that the user is associated with the channel code at the time of the first access for a period of time, and can accurately determine the first promotional channel recommending the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of user promotion technology, and more specifically, to a method, apparatus, device, and storage medium for matching promotion channels. Background Technology

[0002] Service providers typically promote their systems or platforms through promoters or distributors. These promoters or distributors then promote the service provider's system or platform to users, thereby increasing the number of users.

[0003] Generally, it's necessary to determine which promoter or channel recommended a registered user. For example, it should typically be the first promoter who promoted the platform to that registered user. However, since different promoters can promote to the same registered user, it's necessary to identify the first promoter. Summary of the Invention

[0004] To address the existing technical problems, embodiments of the present invention provide a method, apparatus, device, and storage medium for matching promotion channels.

[0005] In a first aspect, embodiments of the present invention provide a method for matching promotional channels, including:

[0006] Obtain the user's access request to the current page, the access request including the URL of the current page, and the current page is a page belonging to the platform domain;

[0007] If the channel code is not present in the cookie corresponding to the platform domain, the channel code corresponding to the access request will be stored in the cookie.

[0008] Obtain the registration request submitted by the user based on the registration page, where the registration page is a page belonging to the platform's domain name;

[0009] If a channel code exists in the cookie, and the registration time corresponding to the registration request has not exceeded the validity period of the cookie, then the user and the channel code in the cookie are associated.

[0010] In one possible implementation, the method further includes:

[0011] If a channel code exists in the cookie corresponding to the platform domain, determine whether the current time has exceeded the validity period of the cookie;

[0012] If the current time exceeds the expiration date of the cookie, the channel code corresponding to the access request is used as the target channel code, and an update operation is performed.

[0013] The update operation includes:

[0014] Before rendering the current page, update all hyperlinks in the `` tags on the current page to hyperlinks with the target channel code, and then render the current page.

[0015] In one possible implementation, the method further includes:

[0016] If the current time has not exceeded the expiration date of the cookie, the channel code in the cookie is used as the target channel code, and the update operation is performed.

[0017] In one possible implementation, updating all hyperlinks in all `` tags on the current page to hyperlinks with the target channel code includes:

[0018] If the hyperlink in the tag does not have a channel code, add the target channel code to the hyperlink in the tag;

[0019] If a channel code exists in the hyperlink within the tag, the channel code in the hyperlink within the tag is replaced with the target channel code.

[0020] In one possible implementation, the update operation further includes:

[0021] In response to the event-triggered redirection, based on the pre-encapsulated page redirection function, the URL to be redirected is updated to a URL with the target channel code, and the redirection is executed.

[0022] In one possible implementation, the method further includes:

[0023] If the URL of the current page contains a channel code, extract the channel code from the URL of the current page and use the channel code from the URL of the current page as the channel code corresponding to the access request.

[0024] If the URL of the current page does not contain a channel code, determine whether the access request originates from a search engine;

[0025] When the access request originates from a search engine, the channel code corresponding to the search engine is determined, and the channel code corresponding to the search engine is used as the channel code corresponding to the access request.

[0026] In one possible implementation, after obtaining the registration request submitted by the user based on the registration page, the method further includes:

[0027] If a channel code exists in the cookie, and the registration time corresponding to the registration request exceeds the expiration date of the cookie, then the user is associated with the channel code in the URL corresponding to the registration request.

[0028] Secondly, embodiments of the present invention also provide an apparatus for matching promotion channels, comprising:

[0029] The first acquisition module is used to acquire the user's access request to the current page, wherein the access request includes the URL of the current page, and the current page is a page belonging to the platform domain.

[0030] The storage module is used to store the channel code corresponding to the access request in the cookie if the channel code does not exist in the cookie corresponding to the platform domain name;

[0031] The second acquisition module is used to acquire the registration request submitted by the user based on the registration page, wherein the registration page is a page belonging to the platform domain.

[0032] The association module is used to associate the user with the channel code in the cookie when the channel code exists in the cookie and the registration time corresponding to the registration request has not exceeded the validity period of the cookie.

[0033] Thirdly, embodiments of the present invention provide a device for matching promotion channels, including a processor and a memory, wherein the memory stores a computer program, characterized in that the processor executes the computer program stored in the memory, and the computer program, when executed by the processor, implements the promotion channel matching method described in the first aspect.

[0034] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the promotion channel matching method described in the first aspect above.

[0035] Fifthly, this application also provides a computer program product, including a computer program that, when executed, can implement the promotion channel matching method described in the first aspect or any possible design of the first aspect.

[0036] The promotion channel matching method, apparatus, device, and storage medium provided in this invention allow for the following: When a user visits the platform for the first time, the cookie corresponding to the platform domain name does not store the channel code. Instead, the corresponding channel code is stored in the cookie. Utilizing the expiration date of the cookie, if the user submits a registration request within the cookie's validity period, the user is associated with the channel code in the cookie. This ensures that the user is associated with the channel code used during the initial visit for a certain period (i.e., the validity period), allowing for a relatively accurate determination of the first promotion channel recommended to the user. Furthermore, even if the user accesses the platform again with a new channel code within the cookie's validity period, the new channel code will not be stored in the cookie since the channel code is already stored there, thus still accurately determining the channel code used by the user during their initial visit to the platform. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the background art, the accompanying drawings used in the embodiments of the present invention or the background art will be described below.

[0038] Figure 1 A flowchart of a method for matching promotion channels provided by an embodiment of the present invention is shown;

[0039] Figure 2 A flowchart of another method for matching promotion channels provided by an embodiment of the present invention is shown;

[0040] Figure 3 This diagram illustrates the structure of a promotion channel matching device provided in an embodiment of the present invention.

[0041] Figure 4 A schematic diagram of the structure of a promotion channel matching device provided in an embodiment of the present invention is shown. Detailed Implementation

[0042] The embodiments of the present invention will now be described with reference to the accompanying drawings.

[0043] Figure 1 A flowchart illustrating a method for matching promotional channels provided by an embodiment of the present invention is shown. Figure 1 As shown, the method includes:

[0044] Step 101: Obtain the user's access request for the current page. The access request includes the URL of the current page, and the current page is a page belonging to the platform's domain.

[0045] In this embodiment of the invention, the service provider's platform has its own domain name, namely the platform domain name. When a user needs to access the service provider's platform, they can access a page under that platform domain name. For ease of description, the page the user needs to access is referred to as the current page. This current page is a page provided by the service provider's platform. The current page can be a registration page or other pages, such as a page introducing product features. When accessing the current page, the user can access it based on the current page's URL (Uniform Resource Locator).

[0046] The URL of the current page can originate from a promotional channel, which may include promoters or channel partners. Each promotional channel has a unique channel code, meaning there is a one-to-one correspondence between promotional channels and channel codes. This channel code is a string. The URL of the current page provided to the user by the promoter or channel partner includes their channel code, which exists as a parameter in the URL. For example, the channel code field is represented as "recode". If the URL of the current page contains "recode=1a2b3c", then the channel code in the URL is "1a2b3c". Furthermore, the URL of the current page can be manually entered by the user or generated by a search engine; this embodiment of the invention does not limit the source of the URL of the current page.

[0047] Step 102: If the channel code does not exist in the cookie corresponding to the platform domain, store the channel code corresponding to the access request in the cookie.

[0048] In this embodiment of the invention, each domain name corresponds to a corresponding cookie, and the platform domain name also corresponds to a cookie, which can store information about when a user accesses the platform domain name. In this embodiment of the invention, the cookie can store a channel code. Specifically, after obtaining an access request, it is determined whether a channel code exists in the cookie corresponding to the platform domain name. If the channel code does not exist in the cookie, it means that the user is accessing the platform domain name for the first time. This embodiment of the invention determines the channel code corresponding to the access request and stores the channel code corresponding to the access request in the cookie. For example, if the URL of the current page contains a channel code, then that channel code can be used as the channel code corresponding to the access request. If a channel code already exists in the cookie corresponding to the platform domain name, it means that the user is not accessing the platform domain name for the first time, and other operations can be performed at this time; for example, no other channel codes are stored in the cookie.

[0049] Cookies have an expiration date, the specific value of which can be set by the user. For example, the expiration date can be 24 hours. In this embodiment of the invention, when saving the channel code to the cookie, a timestamp can be appended. This timestamp can be the time when the access request was received. Subsequently, based on this timestamp, it can be determined whether the cookie's expiration date has been reached, thereby determining whether the cookie has expired.

[0050] Step 103: Obtain the registration request submitted by the user based on the registration page, which is a page belonging to the platform's domain.

[0051] In this embodiment of the invention, when a user needs to register on a service provider's platform, they need to submit a registration request based on the platform's registration page. This registration page and the current page belong to the same domain, i.e., the same platform domain. As mentioned above, the current page can be the registration page, meaning the user visits the registration page (current page), fills in registration information (e.g., username, password), and then submits the registration request; alternatively, the registration page can be another page after the user visits the current page, meaning the user first visits the current page and then visits the registration page (in this case, the registration page is equivalent to a new current page) and submits the registration request.

[0052] Step 104: If the channel code exists in the cookie and the registration time corresponding to the registration request has not exceeded the validity period of the cookie, associate the user with the channel code in the cookie.

[0053] In this embodiment of the invention, after obtaining a user's registration request, it is determined whether a channel code exists in the platform domain's cookie, and if a channel code exists, whether the cookie is valid, i.e., whether the registration time corresponding to the registration request has exceeded the cookie's validity period. If a channel code exists in the cookie, and the cookie is still valid, it indicates that the user is a first-time user of the platform, and the cookie's validity period has not yet expired from the time the user started accessing the platform until the current moment. In this embodiment of the invention, the user who initiated the registration request is associated with the channel code in the cookie, indicating that the user was recommended by the promotion channel corresponding to the channel code in the cookie, and the promotion channel corresponding to the channel code in the cookie is the first promotion channel to recommend the platform to the user. Wherein, if the channel code corresponding to the access request is stored in the cookie in step 102, then in step 104, the channel code stored in the cookie is the channel code corresponding to the access request.

[0054] The promotion channel matching method provided in this invention does not store channel codes in the cookie corresponding to the platform domain name when a user visits the platform for the first time. Instead, the corresponding channel code is stored in the cookie. Utilizing the expiration date of the cookie, if the user submits a registration request within the cookie's validity period, the user is associated with the channel code in the cookie, ensuring that the user is associated with the channel code used during the first visit for a period of time (i.e., the validity period). Furthermore, even if the user accesses the platform again with a different new channel code within the cookie's validity period, the new channel code will not be stored in the cookie because the channel code is already stored there, thus accurately determining the channel code used by the user during their first visit to the platform.

[0055] Optionally, the method further includes the steps A1-A2.

[0056] Step A1: If the channel code exists in the cookie corresponding to the platform domain, determine whether the current time has exceeded the cookie's expiration date.

[0057] Step A2: If the current time exceeds the cookie's expiration date, use the channel code corresponding to the access request as the target channel code and perform an update operation.

[0058] The "update operation" in step A2 above includes:

[0059] Step A21: Before rendering the current page, update all hyperlinks in the `` tags on the current page to hyperlinks with the target channel code, and then render the current page.

[0060] In this embodiment of the invention, after determining whether a channel code exists in the cookie corresponding to the platform domain, if the determination result is that a channel code exists in the cookie corresponding to the platform domain, it indicates that the user has previously visited the platform, or in other words, the access request submitted by the user this time is not the first request initiated by the user. In this case, this embodiment of the invention continues to determine whether the current time has exceeded the validity period of the cookie; wherein, the current time is the time at which the validity of the cookie is determined, for example, the current time can be the time when the access request was received.

[0061] If the cookie is still valid (i.e., the current time has not exceeded the cookie's expiration date), no additional operations are required; the user's access request can be responded to normally, such as displaying the current page to the user. Conversely, if the cookie is invalid (i.e., the current time has exceeded the cookie's expiration date), this embodiment of the invention will use the channel code corresponding to the access request as the target channel code. Before rendering the current page, all hyperlinks in the `` tags on the current page will be updated to hyperlinks with the target channel code, and then the current page will be rendered.

[0062] In this embodiment of the invention, the current page contains one or more `` tags; the `` tag is an HTML language tag with an `href` attribute, where a hyperlink is defined. The `` tag itself is an existing, mature technology, and this embodiment of the invention will not elaborate on it. In this embodiment of the invention, before rendering the current page, all hyperlinks of the `` tags on the current page are processed to include the target channel code, and then the current page is rendered, ensuring that all hyperlinks of the `` tags on the current page have the target channel code.

[0063] The rendered current page is the page presented to the user, who can navigate to other pages based on this page. That is, the user can submit further access requests based on this current page, and these requests also contain the corresponding URL. Since the hyperlinks in the `` tags of this current page contain the target channel code, the URL in the access request submitted by the user based on the `` tags of this current page is the hyperlink of that `` tag, and this URL contains the target channel code. In other words, the URL of the current page in step 101 above can be provided by promoters or channel partners, or it can be a hyperlink in the `` tags of other pages (the user triggers an access request and navigates to other pages by clicking on the `` tags of other pages).

[0064] In this embodiment of the invention, updating the hyperlinks of all `` tags on a page using a target channel code enables the transmission of the channel code. For example, a promoter or channel provider provides a user with the URL of page A, which contains channel code 1. The user can access page A by submitting the URL of page A. After receiving the user's access request for page A, if the platform domain's cookie contains a channel code that has expired, then channel code 1 can be used as the target channel code. All `` tags on page A are updated to contain channel code 1, and page A is rendered. Afterwards, the user can continue to submit access requests by clicking on the `` tags on page A. The page accessed at this time is the page corresponding to the hyperlink of the `` tag; in this embodiment, this is referred to as page B. Since the hyperlink of the `` tag contains channel code 1, the URL of page B in the user's access request also contains channel code 1. Since the platform domain's cookie already contains the channel code, and the access to page B occurs after the access to page A, the cookie remains invalid. Similar to the user's access to page A, the system also updates all hyperlinks in the tags on page B to contain the channel code 1. This process is repeated so that the URLs of the pages accessed by the user all contain the channel code 1, thereby achieving the transmission of the channel code 1.

[0065] Alternatively, if the cookie is still valid, you can follow step A3.

[0066] Step A3: If the current time has not exceeded the cookie's expiration date, use the channel code in the cookie as the target channel code and perform an update operation.

[0067] In this embodiment of the invention, if the current cookie is still valid, an update operation can be performed similarly to step A2 above, that is, all hyperlinks in the `` tags on the current page can be updated to hyperlinks with the target channel code; the difference is that the channel code in the cookie is used as the target channel code. Since this update operation can transmit the channel code, after a user's first access to the platform, regardless of how many times the accessed page is navigated or whether the cookie is valid, it can be guaranteed that the channel code corresponding to the user's first access to the platform is the channel code used for the first time; unless the user accesses the platform again with a different channel code after the cookie expires. Optionally, in step 102 above, if the cookie corresponding to the platform domain does not contain a channel code, the channel code corresponding to the access request can also be used as the target channel code, and an update operation can be performed; this will not be detailed here.

[0068] In this embodiment of the invention, the channel code to be transmitted (i.e., the target channel code) exists in the hyperlink of the `` tag. The channel code is not cleared, ensuring its validity. After the cookie expires, the target channel code in the hyperlink of the `` tag is the channel code corresponding to the access request. For example, the target channel code is extracted from the URL of the current page. Regardless of whether the `` tag and the current page belong to the same domain, it can be guaranteed that their channel codes are consistent. This enables correct transmission of the channel code when redirecting to different domains (some service providers have multiple platforms, or a platform has multiple top-level domains), without relying on a unified domain. Furthermore, when redirecting to the page corresponding to the hyperlink of the `` tag in a new window, the transmission of the channel code will not be interrupted; that is, the channel code can also be transmitted to the user's newly opened window. This is something that cannot be achieved by storing channel codes based on cookies or sessions. In this embodiment of the invention, for users accessing the platform for the first time, the channel code corresponding to the user can be locked using the validity period of the cookie, increasing the weight of the channel code used when the user first accesses the platform. After the cookie expires, the channel code is transmitted using an update operation. At this time, the channel code can be accurately transmitted without being restricted by cookies, and cross-domain transmission can be achieved.

[0069] Optionally, step A21 above, "update all hyperlinks in all tags on the current page to hyperlinks with the target channel code," specifically includes:

[0070] Step A211: If the hyperlink in the a tag does not have a channel code, add the target channel code to the hyperlink in the a tag.

[0071] Step A212: If a hyperlink in an tag contains a channel code, replace the channel code in the hyperlink with the target channel code.

[0072] In this embodiment of the invention, some `` tags on certain pages inherently contain channel codes. For example, different product pages in the system have their own channel codes; if a user manually enters a URL (without a channel code), and then clicks on the `` tag of that product, the channel code of that product will be added to the `` tags of other pages, allowing the system to determine which product the user is most interested in during registration.

[0073] If the target channel code has been determined (e.g., the channel code corresponding to the access request, or the channel code in the cookie), and the hyperlink in the tag does not have a channel code, the target channel code can be directly added to the hyperlink of the tag; or, if the hyperlink in the tag has a channel code, the original channel code in the hyperlink of the tag can be replaced with the target channel code, so that the channel code of the updated hyperlink is the target channel code.

[0074] Alternatively, the update operation may also include: if the a tag is generated based on the URL of the current page, removing redundant channel codes from the a tag and keeping only one channel code, and the retained channel code is the target channel code.

[0075] In this embodiment of the invention, some `` tags on a page may be generated based on the current link; for example, in a list with filters, the selected filters are displayed in the URL, and subsequent filters selected by the user are concatenated based on the filters already selected in the current URL. This situation could potentially lead to multiple concatenations of the channel code. In this case, this embodiment of the invention removes redundant channel codes from the `` tags, retaining only one channel code, and this retained channel code is the target channel code. This ensures that the concatenated hyperlink retains only one channel code, which is the furthest attribution channel code, i.e., the target channel code.

[0076] Optionally, the update operation in step A2 above further includes: in response to the event-triggered jump, updating the URL to be jumped to with a URL having the target channel code based on a pre-encapsulated page jump function, and performing the jump.

[0077] In this embodiment of the invention, when users use a service provider's platform, in addition to using the `` tag to achieve page navigation, they can also achieve page navigation by triggering events (e.g., click events, API request completion navigation events, hover events, etc.). For example, after triggering an event, some logical processing is required before page navigation can occur. To ensure that channel code transmission can also be achieved when page navigation is triggered by an event, this embodiment of the invention pre-encapsulates a unified page navigation function. This page navigation function is used to add the target channel code to the URL to be navigated to. Specifically, when a URL needs to be navigated to by triggering an event, the page navigation function updates the URL to be navigated to with the target channel code, thereby navigating to the page corresponding to the URL with the target channel code.

[0078] Similar to steps A211 and A212 above, if the URL to be redirected does not contain a channel code, the target channel code can be added to the URL by concatenation; if the URL to be redirected contains a channel code, the channel code in the URL needs to be replaced with the target channel code to ensure that the target channel code is transmitted correctly.

[0079] Optionally, since users can access the platform in multiple ways, the URL in the user's access request may or may not contain a channel code. Specifically, after step 101 "obtaining the user's access request to the current page", the method further includes a process of determining the channel code corresponding to the access request, and this process includes steps B1-B3.

[0080] Step B1: If the current page's URL contains a channel code, extract the channel code from the current page's URL and use it as the channel code corresponding to the access request.

[0081] Step B2: If the URL of the current page does not contain a channel code, determine whether the access request originated from a search engine.

[0082] Step B3: If the access request originates from a search engine, determine the channel code corresponding to the search engine and use the channel code corresponding to the search engine as the channel code corresponding to the access request.

[0083] In this embodiment of the invention, after obtaining the URL of the current page submitted by the user, it can be first determined whether the URL of the current page itself contains a channel code. If the URL of the current page is manually entered by the user, it generally does not contain a channel code; if the URL of the current page is provided to the user by a promoter or channel provider, then the URL of the current page generally contains a channel code.

[0084] If the URL of the current page contains a channel code, then the channel code in the URL of the current page can be extracted and used as the channel code corresponding to the access request.

[0085] Furthermore, since service providers' platforms are also crawled by search engines, users can find these platforms through search engines and then submit access requests. The URL of the page accessed (i.e., the current page) in a user's search engine request does not contain a channel code. In this embodiment of the invention, a corresponding channel code is pre-set for each search engine. If the user's access request originates from a search engine, the channel code corresponding to that search engine is used as the channel code for the access request. Specifically, the referrer field in the header of the user's access request can be used to determine whether the access request originates from a search engine, and which search engine it originates from, thereby determining the corresponding channel code.

[0086] Optionally, after step 103 "obtaining the registration request submitted by the user based on the registration page" above, the method further includes step C1:

[0087] Step C1: If the channel code exists in the cookie and the registration time corresponding to the registration request exceeds the cookie's expiration date, associate the user with the channel code in the URL corresponding to the registration request.

[0088] In this embodiment of the invention, as shown in step 104 above, if the cookie is still valid when the user registers, the user is associated with the channel code in the cookie. Furthermore, if the cookie has expired when the user registers, the channel code in the cookie is no longer used; instead, the channel code in the URL is used, that is, the user is associated with the channel code in the URL corresponding to the registration request.

[0089] The following example details a workflow of this promotion channel matching method. Figure 2 As shown, the method includes steps 201-213.

[0090] Step 201: Obtain the user's access request for the current page.

[0091] The access request includes the URL of the current page, and the current page is a page belonging to the platform's domain.

[0092] Step 202: Determine whether the URL of the current page contains a channel code. If it does, continue to step 203; otherwise, continue to step 204.

[0093] Step 203: Extract the channel code from the URL of the current page and use this channel code as the channel code corresponding to the access request, then continue to step 205.

[0094] Step 204: If the access request originates from a search engine, use the channel code corresponding to that search engine as the channel code corresponding to the access request.

[0095] If the access request does not originate from a search engine, for example, if the URL of the current page is manually entered by the user, then there is no channel code corresponding to the access request. In this case, the subsequent process of storing the channel code in a cookie can be skipped.

[0096] Step 205: Determine if a channel code exists in the cookie corresponding to the platform domain. If yes, proceed to step 206; otherwise, proceed to step 209.

[0097] Step 206: Determine if the cookie is invalid. If it is invalid, continue to step 207; otherwise, continue to step 208.

[0098] Step 207: Use the channel code corresponding to the access request as the target channel code and perform the update operation, then proceed to step 210.

[0099] Step 208: Use the channel code in the cookie as the target channel code and perform the update operation, then proceed to step 210.

[0100] For details of the update operation, please refer to the relevant description of step A21 above, which will not be repeated here.

[0101] Step 209: Store the channel code corresponding to the access request in a cookie.

[0102] Step 210: Obtain the registration request submitted by the user based on the registration page.

[0103] Step 211: Determine if the cookie is expired. If it is expired, continue to step 212; otherwise, continue to step 213.

[0104] Step 212: Associate the channel code in the URL corresponding to the user and registration request.

[0105] Step 213: Associate the user with the channel code in the cookie.

[0106] The above describes in detail the method for matching promotion channels provided by the embodiments of the present invention. This method can also be implemented by a corresponding device. The following describes in detail the device for matching promotion channels provided by the embodiments of the present invention.

[0107] Figure 3 A schematic diagram of a promotion channel matching device provided in an embodiment of the present invention is shown. Figure 3 As shown, the device matched with this promotion channel includes:

[0108] The first acquisition module 31 is used to acquire the user's access request to access the current page, wherein the access request includes the URL of the current page, and the current page is a page belonging to the platform domain.

[0109] Storage module 32 is used to store the channel code corresponding to the access request in the cookie if the channel code does not exist in the cookie corresponding to the platform domain name;

[0110] The second acquisition module 33 is used to acquire the registration request submitted by the user based on the registration page, wherein the registration page is a page belonging to the platform domain name;

[0111] The association module 34 is used to associate the user with the channel code in the cookie when the channel code exists in the cookie and the registration time corresponding to the registration request has not exceeded the validity period of the cookie.

[0112] In one possible implementation, the device further includes:

[0113] The judgment module is used to determine whether the current time has exceeded the validity period of the cookie if a channel code exists in the cookie corresponding to the platform domain name;

[0114] The update module is used to, when the current time exceeds the expiration date of the cookie, use the channel code corresponding to the access request as the target channel code and perform an update operation;

[0115] The update operation includes:

[0116] Before rendering the current page, update all hyperlinks in the `` tags on the current page to hyperlinks with the target channel code, and then render the current page.

[0117] In one possible implementation, the update module is further configured to:

[0118] If the current time has not exceeded the expiration date of the cookie, the channel code in the cookie is used as the target channel code, and the update operation is performed.

[0119] In one possible implementation, the update module updates all hyperlinks in the `` tags on the current page to hyperlinks with the target channel code, including:

[0120] If the hyperlink in the tag does not have a channel code, add the target channel code to the hyperlink in the tag;

[0121] If a channel code exists in the hyperlink within the tag, the channel code in the hyperlink within the tag is replaced with the target channel code.

[0122] In one possible implementation, the update operation performed by the update module further includes:

[0123] In response to the event-triggered redirection, based on the pre-encapsulated page redirection function, the URL to be redirected is updated to a URL with the target channel code, and the redirection is executed.

[0124] In one possible implementation, the device further includes a channel code determination module; the channel code determination module is used for:

[0125] If the URL of the current page contains a channel code, extract the channel code from the URL of the current page and use the channel code from the URL of the current page as the channel code corresponding to the access request.

[0126] If the URL of the current page does not contain a channel code, determine whether the access request originates from a search engine;

[0127] When the access request originates from a search engine, the channel code corresponding to the search engine is determined, and the channel code corresponding to the search engine is used as the channel code corresponding to the access request.

[0128] In one possible implementation, after obtaining the registration request submitted by the user based on the registration page, the association module 34 is further configured to:

[0129] If a channel code exists in the cookie, and the registration time corresponding to the registration request exceeds the expiration date of the cookie, then the user is associated with the channel code in the URL corresponding to the registration request.

[0130] It should be noted that the above embodiments of the promotion channel matching device are only illustrated by the division of the above functional modules when implementing the corresponding functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the promotion channel matching device and the promotion channel matching method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0131] According to one aspect of this application, embodiments of the present invention also provide a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication component. When the computer program is executed by a processor, the promotional channel matching method provided in embodiments of this application is performed.

[0132] Furthermore, embodiments of the present invention also provide a device for matching promotion channels. The device includes a processor and a memory. The memory stores a computer program, and the processor is capable of executing the computer program stored in the memory. When the computer program is executed by the processor, it can implement the promotion channel matching method provided in any of the above embodiments.

[0133] For example, Figure 4 An embodiment of the present invention provides a promotion channel matching device, which includes a bus 1110, a processor 1120, a transceiver 1130, a bus interface 1140, a memory 1150, and a user interface 1160.

[0134] In this embodiment of the invention, the device further includes a computer program stored in a memory 1150 and executable on a processor 1120, which, when executed by the processor 1120, implements the various processes of the above-described method embodiment for matching promotional channels.

[0135] Transceiver 1130 is used to receive and send data under the control of processor 1120.

[0136] In this embodiment of the invention, a bus architecture (represented by bus 1110) is used. Bus 1110 may include any number of interconnected buses and bridges. Bus 1110 connects various circuits, including one or more processors represented by processor 1120 and memory represented by memory 1150.

[0137] Bus 1110 represents one or more of several types of bus architectures, including memory buses and memory controllers, peripheral buses, Accelerated Graphics Port (AGP), processors, or local buses using any bus architecture from various bus architectures. As an example and not a limitation, such architectures include: Industry Standard Architecture (ISA) buses, Micro Channel Architecture (MCA) buses, Enhanced ISA (EISA) buses, Video Electronics Standards Association (VESA) buses, and Peripheral Component Interconnect (PCI) buses.

[0138] The processor 1120 can be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The processors mentioned above include: general-purpose processors, central processing units (CPUs), network processors (NPs), digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), complex programmable logic devices (CPLDs), programmable logic arrays (PLAs), microcontroller units (MCUs) or other programmable logic devices, discrete gates, transistor logic devices, and discrete hardware components. They can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. For example, the processor can be a single-core processor or a multi-core processor, and the processor can be integrated on a single chip or located on multiple different chips.

[0139] Processor 1120 can be a microprocessor or any conventional processor. The method steps disclosed in the embodiments of the present invention can be directly executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in readable storage media known in the art, such as Random Access Memory (RAM), Flash Memory, Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), registers, etc. The readable storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.

[0140] Bus 1110 can also connect various other circuits, such as peripheral devices, voltage regulators, or power management circuits. Bus interface 1140 provides an interface between bus 1110 and transceiver 1130, all of which are well known in the art. Therefore, embodiments of the present invention will not be described further.

[0141] Transceiver 1130 can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. For example, transceiver 1130 receives external data from other devices, and transceiver 1130 is used to send data processed by processor 1120 to other devices. Depending on the nature of the computer system, a user interface 1160 may also be provided, such as a touchscreen, physical keyboard, monitor, mouse, speaker, microphone, trackball, joystick, or stylus.

[0142] It should be understood that, in embodiments of the present invention, memory 1150 may further include memory remotely configured relative to processor 1120, and such remotely configured memory can be connected to a server via a network. One or more portions of the aforementioned network may be an ad hoc network, intranet, extranet, virtual private network (VPN), local area network (LAN), wireless local area network (WLAN), wide area network (WAN), wireless wide area network (WWAN), metropolitan area network (MAN), Internet, public switched telephone network (PSTN), ordinary old-style telephone service (POTS), cellular telephone network, wireless network, Wi-Fi network, and combinations of two or more of the aforementioned networks. For example, cellular telephone networks and wireless networks can be Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA), WiMAX, General Packet Radio Service (GPRS), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), LTE Frequency Division Duplex (FDD), LTE Time Division Duplex (TDD), Advanced Long Term Evolution (LTE-A), Universal Mobile Telecommunications System (UMTS), Enhanced Mobile Broadband (eMBB), Massive Machine Type Communication (mMTC), Ultra Reliable Low Latency Communications (uRLLC), etc.

[0143] It should be understood that the memory 1150 in the embodiments of the present invention may be volatile memory or non-volatile memory, or may include both volatile memory and non-volatile memory. Non-volatile memory includes: read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory.

[0144] Volatile memory includes random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1150 described in this embodiment includes, but is not limited to, the above and any other suitable types of memory.

[0145] In this embodiment of the invention, the memory 1150 stores the following elements of the operating system 1151 and the application 1152: executable modules, data structures, or subsets thereof, or extended sets thereof.

[0146] Specifically, the operating system 1151 includes various system programs, such as a framework layer, a core library layer, and a driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 1152 includes various applications, such as a media player and a browser, used to implement various application functions. Programs implementing the methods of this embodiment of the invention can be included in the application program 1152. The application program 1152 includes applets, objects, components, logic, data structures, and other computer system executable instructions that perform specific tasks or implement specific abstract data types.

[0147] Furthermore, embodiments of the present invention also provide a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the various processes of the above-described method embodiments for matching promotional channels and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0148] Computer-readable storage media include: permanent and non-permanent, removable and non-removable media, which are tangible devices capable of retaining and storing instructions for use by an instruction execution device. Computer-readable storage media include: electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, and any suitable combination thereof. Computer-readable storage media include: phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, optical disc read-only memory (CD-ROM), digital versatile optical disc (DVD) or other optical storage, magnetic tape storage, magnetic disk storage or other magnetic storage devices, memory sticks, mechanical encoding devices (e.g., punched cards or raised structures in grooves on which instructions are recorded), or any other non-transfer medium that can be used to store information accessible by a computing device. As defined in the embodiments of the present invention, computer-readable storage media do not include temporary signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses passing through fiber optic cables), or electrical signals transmitted through wires.

[0149] In the several embodiments provided in this application, it should be understood that the disclosed apparatus, devices, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, or it may be an electrical, mechanical, or other form of connection.

[0150] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to solve the problems addressed by the embodiments of the present invention, depending on actual needs.

[0151] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0152] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (including: a personal computer, a server, a data center, or other network device) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media listed above that can store program code.

[0153] In the description of the embodiments of the present invention, those skilled in the art should understand that the embodiments of the present invention can be implemented as methods, apparatuses, devices, and storage media. Therefore, the embodiments of the present invention can be specifically implemented in the following forms: entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software. Furthermore, in some embodiments, the embodiments of the present invention can also be implemented as a computer program product in one or more computer-readable storage media, the computer-readable storage media containing computer program code.

[0154] The aforementioned computer-readable storage medium may be any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, optical disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any combination thereof. In embodiments of the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0155] The computer program code contained in the aforementioned computer-readable storage medium may be transmitted using any suitable medium, including wireless, wire, optical fiber, radio frequency (RF), or any suitable combination thereof.

[0156] Computer program code for performing the operations of the embodiments of the present invention can be written in assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, integrated circuit configuration data, or in one or more programming languages ​​or combinations thereof. The programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The computer program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer or an external computer via any type of network, including a local area network (LAN) or a wide area network (WAN).

[0157] The embodiments of the present invention describe the provided methods, apparatus, and devices through flowcharts and / or block diagrams.

[0158] It should be understood that each block of a flowchart and / or block diagram, as well as combinations of blocks in a flowchart and / or block diagram, can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine that, when executed by a computer or other programmable data processing apparatus, creates means for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.

[0159] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to function in a particular manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction apparatus product that includes the functions / operations specified in the blocks of a flowchart and / or block diagram.

[0160] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus or other device to produce a computer-implemented process, such that the instructions that execute on the computer or other programmable data processing apparatus provide a process for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.

[0161] The above description is merely a specific implementation of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of the present invention should be included within the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention should be determined by the protection scope of the claims.

Claims

1. A method for matching promotional channels, characterized in that, include: Obtain the user's access request to the current page, the access request including the URL of the current page, and the current page is a page belonging to the platform domain; If the channel code is not present in the cookie corresponding to the platform domain, it indicates that the user is accessing the platform domain for the first time, and the channel code corresponding to the access request is stored in the cookie. Obtain the registration request submitted by the user based on the registration page, where the registration page is a page belonging to the platform's domain name; If the cookie contains a channel code and the registration time corresponding to the registration request has not exceeded the validity period of the cookie, then associate the user with the channel code in the cookie. The method further includes: if a channel code exists in the cookie corresponding to the platform domain, determining whether the current time has exceeded the validity period of the cookie; if the current time has exceeded the validity period of the cookie, using the channel code corresponding to the access request as the target channel code and performing an update operation; wherein, the update operation includes: before rendering the current page, updating all hyperlinks in all a tags on the current page to hyperlinks with the target channel code, and then rendering the current page.

2. The method according to claim 1, characterized in that, Also includes: If the current time has not exceeded the expiration date of the cookie, the channel code in the cookie is used as the target channel code, and the update operation is performed.

3. The method according to claim 1, characterized in that, The step of updating all hyperlinks in all `` tags on the current page to hyperlinks with the target channel code includes: If the hyperlink in the tag does not have a channel code, add the target channel code to the hyperlink in the tag; If a channel code exists in the hyperlink within the tag, the channel code in the hyperlink within the tag is replaced with the target channel code.

4. The method according to any one of claims 1-3, characterized in that, The update operation also includes: In response to the event-triggered redirection, based on the pre-encapsulated page redirection function, the URL to be redirected is updated to a URL with the target channel code, and the redirection is executed.

5. The method according to claim 1, characterized in that, Also includes: If the URL of the current page contains a channel code, extract the channel code from the URL of the current page and use the channel code from the URL of the current page as the channel code corresponding to the access request. If the URL of the current page does not contain a channel code, determine whether the access request originates from a search engine; When the access request originates from a search engine, the channel code corresponding to the search engine is determined, and the channel code corresponding to the search engine is used as the channel code corresponding to the access request.

6. The method according to claim 1, characterized in that, After obtaining the registration request submitted by the user based on the registration page, the method further includes: If a channel code exists in the cookie, and the registration time corresponding to the registration request exceeds the validity period of the cookie, then associate the user with the channel code in the URL corresponding to the registration request.

7. A device for matching promotion channels, characterized in that, include: The first acquisition module is used to acquire the user's access request to the current page, wherein the access request includes the URL of the current page, and the current page is a page belonging to the platform domain. The storage module is configured to store the channel code corresponding to the access request in the cookie if the channel code is not present in the cookie corresponding to the platform domain name, indicating that the user is accessing the platform domain name for the first time; The second acquisition module is used to acquire the registration request submitted by the user based on the registration page, wherein the registration page is a page belonging to the platform domain. The association module is used to associate the user with the channel code in the cookie when the channel code exists in the cookie and the registration time corresponding to the registration request has not exceeded the validity period of the cookie. The device further includes: a judgment module, used to determine whether the current time has exceeded the validity period of the cookie if a channel code exists in the cookie corresponding to the platform domain name; The update module is used to, when the current time exceeds the expiration date of the cookie, use the channel code corresponding to the access request as the target channel code and perform an update operation; The update operation includes: Before rendering the current page, update all hyperlinks in the `` tags on the current page to hyperlinks with the target channel code, and then render the current page.

8. A device for matching promotional channels, comprising a processor and a memory, the memory storing a computer program, characterized in that, The processor executes a computer program stored in the memory to implement the promotion channel matching method as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method for matching promotional channels as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • User behavior tracking method and device, server, and storage medium

    CN109544238A

  • Method and device for determining source of application program, computer system and storage medium

    CN111782988A

  • Channel information display method and device, computer system and storage medium

    CN113781137A