Methods, apparatus, equipment and storage media for transmitting channel codes

By extracting and updating the channel code in the page URL, the problem of inaccurate channel code transmission during user registration was solved, and the effective transmission of channel code under different domains and new windows was achieved, ensuring the accurate definition of user source.

CN116304400BActive Publication Date: 2026-03-13FEISHU YITU (SHANGHAI) NETWORK TECHNOLOGY CO LTD +2
View PDF 2 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-03-13

AI Technical Summary

Technical Problem

During the user registration process, it is difficult to accurately determine which promoter or channel provider recommended the user, especially when registering on their own after multiple page redirects. Existing technology cannot effectively transmit channel codes.

Method used

By obtaining the URL of the page visited by the user, the channel code in the page is extracted and updated, and used as the target channel code. Before rendering the page, all hyperlinks of the tags are updated to ensure the transmission and accurate definition of the channel code.

Smart Images

Patent Text Reader

Abstract

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 transmitting channel codes. 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] Users can register an account directly through a registration page recommended by promoters or distributors, making it easy to identify the promoter or distributor. However, in reality, many users register on their own after browsing the system or platform promoted by promoters or distributors and going through multiple steps (multiple page redirects). In this case, it is difficult to determine which promoter or distributor recommended the user. 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 transmitting channel codes.

[0005] In a first aspect, embodiments of the present invention provide a method for transmitting a channel code, comprising:

[0006] Obtain the user's access request to the current page, the access request including the URL of the current page;

[0007] If the URL of the current page contains a first channel code, extract the first channel code from the URL of the current page and use the first channel code as the target channel code;

[0008] Perform the update operation;

[0009] The update operation includes: before rendering the current page, updating all hyperlinks in all tags on the current page to hyperlinks with the target channel code, and then rendering the current page.

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

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

[0012] If the access request originates from a search engine, the second channel code corresponding to the search engine is determined, and the second channel code is used as the target channel code, and then the update operation is performed.

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

[0014] 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.

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

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

[0017] 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.

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

[0019] If the tag is generated based on the URL of the current page, remove the redundant channel codes from the tag, retain only one channel code, and the retained channel code is the target channel code.

[0020] In one possible implementation, if the current page is a registration page, an `` tag in the registration page is a registration tag; the method further includes:

[0021] In response to a registration request submitted by the user based on the registration tag, the registration request including the user's user account;

[0022] Associate the user account with the channel code in the registration tag.

[0023] Secondly, embodiments of the present invention also provide an apparatus for transmitting a channel code, comprising:

[0024] The acquisition module is used to acquire the user's access request to the current page, and the access request includes the URL of the current page;

[0025] The extraction module is used to extract the first channel code from the URL of the current page when the URL of the current page contains the first channel code, and use the first channel code as the target channel code.

[0026] An update module is used to perform update operations; wherein, the update operations include: before rendering the current page, updating all hyperlinks in the `` tags of the current page to hyperlinks with the target channel code, and then rendering the current page.

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

[0028] The judgment module is used to determine whether the access request originates from a search engine when the URL of the current page does not contain a first channel code;

[0029] The determination module is used to determine the second channel code corresponding to the search engine when the access request originates from the search engine, and use the second channel code as the target channel code. Then the update module performs the update operation.

[0030] Thirdly, embodiments of the present invention provide an apparatus for transmitting channel codes, 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 method for transmitting channel codes described in the first aspect.

[0031] 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 method for transmitting channel codes as described in the first aspect.

[0032] Fifthly, this application also provides a computer program product, including a computer program that, when executed, can implement the method for transmitting the channel code as described in the first aspect or any possible design of the first aspect.

[0033] The method, apparatus, device, and storage medium for transmitting channel codes provided in this invention, after obtaining the URL of the current page submitted by the user, if the URL of the current page contains a channel code, extracts the channel code and uses it as the target channel code; before rendering the current page, all hyperlinks of the `` tags in the current page are updated to contain the target channel code, and then the current page is rendered. When the user submits another access request based on the `` tags of the current page, the URL in the resubmitted access request still contains the target channel code, thereby realizing the transmission of the channel code and accurately determining which promoter or channel provider recommended the user.

[0034] Furthermore, the channel code to be transmitted (i.e., the target channel code) exists within the hyperlink of the `` tag. The channel code is not deleted, ensuring its validity. The target channel code in the hyperlink of the `` tag is extracted from the URL of the current page. Regardless of whether the `` tag and the current page belong to the same domain, the channel code is guaranteed to be consistent. This ensures correct transmission of the channel code when redirecting between different domains (some service providers have multiple systems, or a single system has multiple domains), without relying on a unified domain. Additionally, when redirecting to the page corresponding to the hyperlink of the `` tag in a new window, the transmission of the channel code is not interrupted; that is, the channel code can also be transmitted to the user's newly opened window. Attached Figure Description

[0035] 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.

[0036] Figure 1 A flowchart of a method for transmitting channel codes provided by an embodiment of the present invention is shown;

[0037] Figure 2 A flowchart of another method for transmitting channel codes provided by an embodiment of the present invention is shown;

[0038] Figure 3 A schematic diagram of the structure of a device for transmitting channel codes provided in an embodiment of the present invention is shown;

[0039] Figure 4 A schematic diagram of the structure of a device for transmitting channel codes provided in an embodiment of the present invention is shown. Detailed Implementation

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

[0041] Figure 1 A flowchart illustrating a method for transmitting channel codes according to an embodiment of the present invention is shown. Figure 1 As shown, the method includes:

[0042] Step 101: Obtain the user's access request for the current page, which includes the URL of the current page.

[0043] In this embodiment of the invention, the current page is a page provided by the service provider's system or platform. This page can be a registration page or other pages, such as a page introducing product functions. When a user accesses the current page, they can do so based on the URL (Uniform Resource Locator) of the current page.

[0044] The URL of the current page can be provided to the user by a promoter or distributor. Each promoter or distributor has a unique channel code, which is a string. The URL of the current page provided to the user by the promoter or distributor contains this channel code. For ease of description, this channel code is referred to as the "first channel code" in this embodiment of the invention. This first channel code exists as a parameter in the URL of the current page. For example, the channel code field is represented as `recode`. If the URL of the current page contains "recode=1a2b3c", then the first channel code in that URL is "1a2b3c".

[0045] Step 102: If the URL of the current page contains the first channel code, extract the first channel code from the URL of the current page and use the first channel code as the target channel code.

[0046] 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, that is, whether the URL of the current page contains a first 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, that is, the first channel code exists.

[0047] If the URL of the current page contains a first channel code, then the channel code in the URL of the current page can be extracted, that is, the first channel code can be extracted, and the current page can be processed accordingly based on the first channel code. In this embodiment of the invention, for the sake of consistency in subsequent descriptions, the channel code required to process the current page is referred to as the "target channel code"; if the URL of the current page contains a first channel code, then the first channel code can be used as the target channel code.

[0048] Step 103: Perform the update operation. The update operation in Step 103 includes: before rendering the current page, updating all hyperlinks within all `` tags on the current page to hyperlinks with the target channel code, and then rendering the current page.

[0049] 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.

[0050] The rendered current page is the page presented to the user, who can navigate to other pages based on it. 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. Furthermore, the URL of the current page can also 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.

[0051] In this embodiment of the invention, updating the hyperlinks of all `` tags on a page using the 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. The method provided in this embodiment can be executed by the service provider's system. After receiving a user's access request to page A, the system updates all `` tags on page A to include the channel code 1 and renders page A. 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, which is referred to as page B in this embodiment. Since the hyperlinks of the `` tags contain channel code 1, the URL of page B in the user's access request also contains channel code 1. Similar to the user accessing page A, the system also updates the hyperlinks of all `` tags on page B to include channel code 1, and so on, so that the URL of the page accessed by the user always contains channel code 1, thereby achieving the transmission of channel code 1.

[0052] The method for transmitting channel codes provided in this invention, after obtaining the URL of the current page submitted by the user, extracts the channel code if the URL contains a channel code and uses it as the target channel code. Before rendering the current page, all hyperlinks in the `` tags on the current page are updated to contain the target channel code, and then the current page is rendered. When the user submits another access request based on the `` tags of the current page, the URL in the resubmitted access request still contains the target channel code, thereby achieving the transmission of the channel code and accurately determining which promoter or channel provider recommended the user.

[0053] Furthermore, the channel code to be transmitted (i.e., the target channel code) exists within the hyperlink of the `` tag. This channel code is not deleted, ensuring its validity. The target channel code within the hyperlink of the `` tag is extracted from the URL of the current page. Regardless of whether the `` tag and the current page belong to the same domain, the channel code is guaranteed to be consistent. This ensures correct transmission of the channel code when redirecting between different domains (some service providers have multiple systems, or a single system has multiple domains), independent of a unified domain. Moreover, the transmission of the channel code is not interrupted when redirecting to the page corresponding to the hyperlink of the `` tag in a new window; 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 using cookies or sessions.

[0054] Optionally, the method further includes steps A1 to A2.

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

[0056] Step A2: If the access request originates from a search engine, determine the secondary channel code corresponding to the search engine, use the secondary channel code as the target channel code, and then perform the update operation.

[0057] In this embodiment of the invention, since the service provider's system is also crawled by search engines, users can find the system through search engines and then submit access requests to the system. The URL of the page accessed by the user through the search engine (i.e., the current page) does not contain a channel code, meaning there is no first channel code. In this embodiment of the invention, a corresponding channel code is pre-set for each search engine; for ease of description, the channel code corresponding to the search engine is referred to as the "second channel code." If the user's access request originates from a search engine, the second channel code corresponding to that search engine is used as the target channel code. Then, the update operation provided in step 103 above is performed, that is, before rendering the current page, all hyperlinks in the `` tags of the current page are updated to hyperlinks with the target channel code, and then the current page is rendered. At this time, the channel code possessed by the hyperlinks in the `` tags of the current page is the second channel code.

[0058] Specifically, the referrer field in the header of the user-submitted access request can be used to determine whether the access request originates from a search engine, and which search engine it originates from, thereby identifying the corresponding second channel code. In this embodiment of the invention, when the access request originates from a search engine, all hyperlinks in the tags of the current page to be accessed are updated to have the second channel code corresponding to that search engine. Based on this second channel code, it is possible to accurately determine which search engine the user originated from.

[0059] In this embodiment of the invention, the process of "updating all hyperlinks in the current page's tags to hyperlinks with the target channel code" in the update operation specifically includes:

[0060] Step B1: 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.

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

[0062] 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.

[0063] If a target channel code has been identified (e.g., the first channel code or the second channel code), 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.

[0064] 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.

[0065] 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.

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

[0067] In this embodiment of the invention, when users are using the service provider's system, 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.

[0068] Similar to steps B1 and B2 above, if the URL to be redirected to does not contain a channel code, the target channel code can be added to the URL by concatenation; if the URL to be redirected to 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.

[0069] In this embodiment of the invention, the current page accessed by the user can be any page in the system, including a registration page. If the current page is a registration page, there is an `` tag that indicates registration is complete. After filling in the information, the user can complete the registration by clicking this tag. In this case, the method further includes steps C1 to C2.

[0070] Step C1: Respond to the registration request submitted by the user based on the registration tag, the registration request including the user's user account.

[0071] Step C2: Link the user account and the channel code in the registration tag.

[0072] In this embodiment of the invention, if the current page is a registration page and the user has filled in the corresponding registration account, password, and other information, the user can submit the corresponding registration request by clicking the registration tag. This registration request includes the user account information filled in on the registration page. Furthermore, the registration tag is an `` tag on the current page, and its hyperlink also contains a channel code, i.e., the target channel code. After the user successfully registers, the system can record the user's account and the corresponding channel code, i.e., the channel code in the registration tag. By associating the user account with the channel code in the registration tag, the source of the registered user account can be accurately determined; for example, it can be accurately determined which promoter or search engine the user account originated from.

[0073] The following example details the process of this method for transmitting channel codes.

[0074] See Figure 2 As shown, the method includes steps 201-209.

[0075] Step 201: Obtain the user's access request for the current page, which includes the URL of the current page.

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

[0077] In this embodiment of the invention, if the URL in the access request is a URL provided by a promoter, or is a hyperlink within an `` tag that has a channel code, then the URL contains the first channel code. If the access request is manually entered by the user, or is generated by a search engine, then the URL does not contain the first channel code.

[0078] Step 203: Extract the first channel code from the URL of the current page and use the first channel code as the target channel code, then continue to step 206.

[0079] Step 204: Determine if the access request originates from a search engine. If so, continue to step 205; otherwise, render the current page normally, meaning the `` tags on the current page remain unchanged.

[0080] Step 205: Determine the second channel code corresponding to the search engine and use the second channel code as the target channel code, then continue to step 206.

[0081] Step 206: 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.

[0082] Step 207: In response to the user clicking on the tag on the current page, generate an access request to access the hyperlink of the tag; or, in response to an event-triggered redirect, based on a pre-encapsulated page redirect function, update the URL to be redirected to a URL with the target channel code, and generate an access request to access the URL.

[0083] If a user needs to navigate to another page after successfully accessing the current page, step 207 above can be executed. After generating the access request, steps 202-206 above can be re-executed to transfer the channel code.

[0084] Step 208: If the current page is a registration page, respond to the registration request submitted by the user based on the registration tag, which includes the user's user account.

[0085] Step 209: Link the user account and the channel code in the registration tag.

[0086] The method for transmitting channel codes provided by the embodiments of the present invention has been described in detail above. This method can also be implemented by a corresponding device. The device for transmitting channel codes provided by the embodiments of the present invention will be described in detail below.

[0087] Figure 3 A schematic diagram of a device for transmitting channel codes according to an embodiment of the present invention is shown. Figure 3 As shown, the device for transmitting the channel code includes:

[0088] The acquisition module 31 is used to acquire the user's access request to the current page, wherein the access request includes the URL of the current page;

[0089] Extraction module 32 is used to extract the first channel code from the URL of the current page when the URL of the current page contains the first channel code, and use the first channel code as the target channel code;

[0090] Update module 33 is used to perform update operations; wherein, the update operations include: before rendering the current page, updating all hyperlinks in the a tags of the current page to hyperlinks with the target channel code, and then rendering the current page.

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

[0092] The judgment module is used to determine whether the access request originates from a search engine when the URL of the current page does not contain a first channel code;

[0093] The determination module is used to determine the second channel code corresponding to the search engine when the access request originates from the search engine, and use the second channel code as the target channel code. Then, the update module 33 performs the update operation.

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

[0095] 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.

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

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

[0098] 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.

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

[0100] If the tag is generated based on the URL of the current page, remove the redundant channel codes from the tag, retain only one channel code, and the retained channel code is the target channel code.

[0101] In one possible implementation, if the current page is a registration page, an `` tag in the registration page is a registration tag; the apparatus further includes:

[0102] The registration module is used to respond to a registration request submitted by the user based on the registration tag, the registration request including the user's user account; and to associate the user account with the channel code in the registration tag.

[0103] It should be noted that the above embodiments of the channel code transmission 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 channel code transmission device and the channel code transmission 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.

[0104] 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 method for transmitting channel codes provided in embodiments of this application is performed.

[0105] Furthermore, embodiments of the present invention also provide an apparatus for transmitting channel codes, the apparatus including a processor and a memory, the memory storing a computer program, the processor being able to execute the computer program stored in the memory, and when the computer program is executed by the processor, it can implement the method for transmitting channel codes provided in any of the above embodiments.

[0106] For example, Figure 4An embodiment of the present invention provides a device for transmitting channel codes, the device including a bus 1110, a processor 1120, a transceiver 1130, a bus interface 1140, a memory 1150, and a user interface 1160.

[0107] 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 transmitting the channel code.

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

[0109] 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.

[0110] 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.

[0111] 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.

[0112] 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.

[0113] 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.

[0114] 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.

[0115] 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.

[0116] 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.

[0117] 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.

[0118] 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.

[0119] 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.

[0120] 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 transmitting channel codes and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0121] 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.

[0122] 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.

[0123] 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.

[0124] 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.

[0125] 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.

[0126] 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.

[0127] 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.

[0128] 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.

[0129] 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).

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

[0131] 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.

[0132] 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.

[0133] 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.

[0134] 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 transmitting a channel code, characterized in that, include: Obtain the user's access request to the current page, the access request including the URL of the current page; If the URL of the current page contains a first channel code, extract the first channel code from the URL of the current page and use the first channel code as the target channel code; Perform the update operation; The update operation includes: before rendering the current page, updating all hyperlinks in all tags on the current page to hyperlinks with the target channel code, and then rendering the current page; A corresponding channel code is pre-set for each search engine. If the first channel code does not exist in the URL of the current page, it is determined whether the access request originates from a search engine. If the access request originates from a search engine, the second channel code corresponding to the search engine is determined and used as the target channel code. Then, the update operation is performed.

2. The method according to claim 1, 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.

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 claim 1, characterized in that, The update operation also includes: If the tag is generated based on the URL of the current page, remove the redundant channel codes from the tag, retain only one channel code, and the retained channel code is the target channel code.

5. The method according to any one of claims 1-4, characterized in that, If the current page is a registration page, then an tag on the registration page is a registration tag; The method further includes: In response to a registration request submitted by the user based on the registration tag, the registration request including the user's user account; Associate the user account with the channel code in the registration tag.

6. A device for transmitting a channel code, characterized in that, include: The acquisition module is used to acquire the user's access request to the current page, and the access request includes the URL of the current page; The extraction module is used to extract the first channel code from the URL of the current page when the URL of the current page contains the first channel code, and use the first channel code as the target channel code. An update module is used to perform update operations; wherein, the update operations include: before rendering the current page, updating all hyperlinks in the a tags of the current page to hyperlinks with the target channel code, and then rendering the current page; The judgment module is used to pre-set a corresponding channel code for each search engine, and to determine whether the access request originates from a search engine if the URL of the current page does not contain a first channel code. The determination module is used to determine the second channel code corresponding to the search engine when the access request originates from the search engine, and use the second channel code as the target channel code. Then the update module performs the update operation.

7. A device for transmitting channel codes, 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 method for transmitting the channel code as described in any one of claims 1 to 5.

8. 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 transmitting the channel code as described in any one of claims 1 to 5.

Citation Information

Patent Citations

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

    CN111782988A

  • Marketing cloud system integrating online and offline activity management

    CN114119073A