Short link address generation method and device, electronic equipment and storage medium
By generating unique short link addresses for different users and establishing mapping relationships, the problem of the inability to effectively track marketing campaign participation in existing technologies has been solved, enabling accurate tracking of user clicks and optimization of operational strategies.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-28
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, when merchants conduct marketing by sending a unified link address via SMS, they cannot effectively track activity participation and lack data support for operational strategies.
Target users are filtered based on user group characteristics, a unique short link address is generated for each user, and sent to their terminal through user information to establish a mapping relationship for easy click statistics.
It enables effective statistics on short link clicks by different users, providing more accurate data support for operational strategies and improving the targeting and efficiency of marketing campaigns.
Smart Images

Figure CN114090874B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a method, apparatus, electronic device, and storage medium for generating short link addresses. Background Technology
[0002] Currently, most businesses market to users by sending SMS messages with attached links. To save on marketing costs, these links are usually standardized links to event pages. However, after the event, operators cannot effectively track participation and cannot provide more effective data support for operational strategies. Summary of the Invention
[0003] This application discloses a method, apparatus, electronic device, and storage medium for generating short link addresses, which can generate different short link addresses for different users in the same user group, so as to statistically analyze the click behavior of short link addresses of different users in the user group.
[0004] A first aspect of this application provides a method for generating short link addresses, the method comprising:
[0005] Multiple target users are selected from a user information database based on one or more selected group characteristics, and user information of the multiple target users is obtained from the user information database, wherein the multiple target users constitute a target user group;
[0006] Based on the long link address of the activity page of the target activity and the user information of the multiple target users, generate multiple short link addresses corresponding to the long link address, and the multiple short link addresses correspond one-to-one with the multiple target users;
[0007] Based on the user information of each target user, each short link address is sent to the user terminal of the corresponding target user.
[0008] As an optional implementation, in the first aspect of this embodiment, the user information includes a user identifier; the step of generating multiple short link addresses corresponding to the long link address based on the long link address of the activity page of the target activity and the user information of the multiple target users, wherein the multiple short link addresses correspond one-to-one with the multiple target users, includes:
[0009] Obtain the long URL of the target activity's event page;
[0010] A unique short link address is assigned to each target user from the short link address queue, and each short link address is concatenated with a preset short domain name to obtain the short link address corresponding to each target user.
[0011] Establish a mapping relationship between the target activity, the long link address, the short link address corresponding to each target user, and the user identifier of each target user, and store the mapping relationship.
[0012] As an optional implementation, in the first aspect of this embodiment, before generating multiple short link addresses corresponding to the long link address based on the long link address of the activity page of the target activity and the user information of the multiple target users, the method further includes:
[0013] Generate an activity token corresponding to the target activity;
[0014] The process of obtaining the long link address of the target activity's activity page includes:
[0015] If the activity token is valid, the long link address corresponding to the target activity is obtained based on the activity token.
[0016] As an optional implementation, in the first aspect of this embodiment, establishing and storing the mapping relationship between the target activity, the long link address, the short link address corresponding to each target user, and the user identifier of each target user includes:
[0017] Create a first mapping relationship between the short link address and the user information and activity token, and store the first mapping relationship in the database;
[0018] A second mapping relationship is created between each of the short link addresses and the long link addresses, and the second mapping relationship is stored in the cache.
[0019] As an optional implementation, in the first aspect of this embodiment, the method further includes:
[0020] Receive a first click request sent by a first user terminal, wherein the first click request includes a first short link address triggered by the first user terminal;
[0021] Find the long link address corresponding to the first short link address;
[0022] The long link address is transmitted to the first user terminal so that the first user terminal can jump to and access the activity page according to the long link address.
[0023] As an optional implementation, in a first aspect of this embodiment, after receiving the first click request sent by the first user terminal, the method further includes:
[0024] Store the activity data corresponding to the first user terminal in the activity statistics table;
[0025] The activity data corresponding to the first user terminal includes at least one of the following: the sending time of the first click request, the first short link address, and the long link address.
[0026] As an optional implementation, in the first aspect of this embodiment, the method further includes:
[0027] The group characteristics are divided into multiple subgroup characteristics;
[0028] Based on the characteristics of the multiple subgroups, the target user group is divided into multiple target user groups, and the multiple target user groups correspond one-to-one with the characteristics of the multiple subgroups;
[0029] Find the activity data corresponding to each target user in each target user group from the activity statistics table, and calculate the group activity data of each target user group based on the activity data corresponding to each target user in each target user group.
[0030] The group activity data includes at least one of the following: click-through rate of each target user group, click change curve, and the proportion of click-through rate of each target user group to the total click-through rate.
[0031] As an optional implementation, in the first aspect of this embodiment, after sending each of the short link addresses to the user terminals of the corresponding target users based on the user information of each target user, the method further includes:
[0032] If a sensitive word is detected in the activity page of the target activity, then multiple short link addresses corresponding to the long link address of the activity page of the target activity are searched.
[0033] The mapping relationship between the multiple short link addresses and the long link addresses is deleted.
[0034] As an optional implementation, in the first aspect of this embodiment, after deleting the mapping relationship between the plurality of short link addresses and the long link addresses, the method further includes:
[0035] Receive a second click request sent by a second user terminal, the second click request including a second short link address triggered by the second user terminal;
[0036] Find the long link address that corresponds to the second short link address;
[0037] If no long link address corresponding to the second short link address is found, the initial address corresponding to the default page is transmitted to the second user terminal so that the second user terminal can jump to and access the default page according to the initial address.
[0038] A second aspect of this application provides a short link address generation apparatus, the apparatus comprising:
[0039] The user filtering module is used to filter multiple target users from a user information database based on one or more selected group characteristics, and to obtain user information of the multiple target users from the user information database, wherein the multiple target users constitute a target user group.
[0040] The short link address generation module is used to generate multiple short link addresses corresponding to the long link address based on the long link address of the activity page of the target activity and the user information of the multiple target users. The multiple short link addresses correspond one-to-one with the multiple target users.
[0041] The short link address sending module is used to send each short link address to the user terminal of the corresponding target user based on the user information of each target user.
[0042] A third aspect of this application provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor enables the processor to implement any of the short link address generation methods disclosed in the embodiments of this application.
[0043] A fourth aspect of this application provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements any of the short link address generation methods disclosed in the embodiments of this application.
[0044] Compared with related technologies, the embodiments of this application have the following beneficial effects:
[0045] Based on group characteristics, multiple target users are selected from the user information database to form a target user group. User information for these target users is then obtained. Based on this user information and the long link address of the activity page corresponding to the target user group, multiple short link addresses are generated, each with a one-to-one correspondence with a target user. Finally, based on the user information of each target user within the target user group, the generated short link addresses are sent to the user's terminal corresponding to that short link address. This method generates unique short link addresses that correspond one-to-one with each selected target user, facilitating effective statistical analysis of clicks on these short link addresses by operations personnel. This provides more effective data support for operational strategies. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a schematic diagram illustrating an application scenario of a short link address generation method disclosed in an embodiment of this application;
[0048] Figure 2 This is a flowchart illustrating a method for generating a short link address as disclosed in an embodiment of this application;
[0049] Figure 3 This is a schematic diagram of the process for generating short link addresses disclosed in one embodiment;
[0050] Figure 4 This is a schematic diagram of the process for accessing an activity page as disclosed in one embodiment;
[0051] Figure 5 This is a flowchart illustrating the process of statistically analyzing group activity data for various target user groups, as disclosed in one embodiment.
[0052] Figure 6 This is a schematic diagram illustrating the process of removing short link addresses disclosed in one embodiment;
[0053] Figure 7 This is a schematic diagram illustrating the page redirection process after a short link address is removed, as disclosed in one embodiment.
[0054] Figure 8 This is a schematic diagram of the structure of a short link address generation device disclosed in an embodiment of this application;
[0055] Figure 9 This is a schematic diagram of another short link address generation device disclosed in an embodiment of this application;
[0056] Figure 10 This is a schematic diagram of the structure of another short link address generation device disclosed in the embodiments of this application;
[0057] Figure 11 This is a schematic diagram of the structure of an electronic device disclosed in one embodiment. Detailed Implementation
[0058] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0059] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0060] This application discloses a method, apparatus, electronic device, and storage medium for generating short link addresses, capable of generating short link addresses that correspond one-to-one with each target user, and enabling the statistical analysis of clicks on short link addresses from different target users. These will be described in detail below.
[0061] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of a short link address generation method disclosed in an embodiment of this application. For example... Figure 1 As shown, the device may include an electronic device 10 and at least one user terminal 20, with the electronic device 10 communicatively connected to each user terminal 20. The electronic device 10 may include, but is not limited to, a server or a server cluster.
[0062] Please see Figure 2 , Figure 2 This is a flowchart illustrating a method for generating short link addresses disclosed in an embodiment of this application. This method can be applied to the aforementioned electronic device 10. For example... Figure 2 As shown, the method may include the following steps:
[0063] 210. Select multiple target users from the user information database based on one or more selected group characteristics, and obtain user information of multiple target users from the user information database, wherein the multiple target users constitute a target user group.
[0064] In this embodiment, the electronic device filters multiple target users from a user information database based on selected group characteristics. These group characteristics can be selected by operators or electronic device users, and can be one or more. For example, three group characteristics are selected: Characteristic 1: Permanent residence in Guangdong Province; Characteristic 2: Over 18 years old; Characteristic 3: APP registered user. The electronic device filters target users who simultaneously meet all three group characteristics from the user information database. After filtering multiple target users who simultaneously meet all three group characteristics, the electronic device continues to retrieve user information for these multiple target users from the user information database. The user information database is a database storing user information and all characteristics of different users. The user information database can be located within the electronic device itself or stored in other electronic devices or on a server.
[0065] User information includes at least user identifiers, user names, and addresses. The user identifier can be, but is not limited to, any of the following: ID card number, registered account, or user mobile phone number. There is a one-to-one correspondence between user identifiers and users; different users can be associated with different user identifiers. Optionally, after an electronic device obtains user information from multiple target users, a target user group table can be created to store the obtained user information.
[0066] 220. Based on the long link address of the activity page of the target activity and the user information of multiple target users, generate multiple short link addresses corresponding to the long link address, with each short link address corresponding to one of the multiple target users.
[0067] In this embodiment, the operator can first organize and plan a target activity, and then the electronic device can set up an activity page for the target activity. Specifically, the operator can edit the activity page for the target activity on the electronic device itself, or send a request to other electronic devices or servers where the activity management system is located, so that the other electronic devices or servers where the activity management system is located can allocate an activity page for the target activity to the electronic device according to the request. After obtaining the activity page for the target activity, the electronic device can extract the long link address of the activity page for the target activity. The long link address is the unique access address of the activity page for the target activity on the network, i.e., URL (Uniform Resource Locator).
[0068] The electronic device, upon obtaining a long link address, generates multiple short link addresses based on the long link address and user information of multiple target users. Each short link address corresponds to its corresponding long link address. The number of generated short link addresses equals the number of target users selected, and each short link address corresponds one-to-one with each target user. Furthermore, the number of characters in each generated short link address is less than the number of characters in its corresponding long link address.
[0069] 230. Based on the user information of each target user, send each short link address to the corresponding target user's user terminal.
[0070] In this embodiment, after generating multiple shortened link addresses, the electronic device sends each shortened link address to the user terminal of the target user corresponding to that short link address, based on the user information of that target user. For example, the electronic device can send each shortened link address to the user terminal of the target user via SMS, based on the mobile phone number in the user information of the target user corresponding to each short link address. After receiving the short link address, the user can access the activity page of the target activity by clicking the short link address.
[0071] In this embodiment, multiple target users are selected from the user information database based on group characteristics to form a target user group. User information for these multiple target users is obtained. Based on the obtained user information and the long link address of the activity page corresponding to the target activity of the target user group, multiple short link addresses corresponding to the long link address are generated. Each short link address has a one-to-one correspondence with a target user. Finally, based on the user information of each target user in the target user group, each generated short link address is sent to the user terminal of the target user corresponding to that short link address. This method generates short link addresses that correspond one-to-one with each selected target user, and each short link address is unique. This allows operators to effectively track the click activity of each target user's short link address within the target user group, thereby providing more effective data support for operational strategies.
[0072] In one embodiment, see Figure 3 , Figure 3 This is a schematic diagram of a process for generating short link addresses, as disclosed in one embodiment. The user information includes a user identifier.
[0073] In step 220, the electronic device generates multiple short link addresses corresponding to the long link address based on the long link address of the target activity's activity page and the user information of multiple target users. The process of assigning one-to-one correspondence between the multiple short link addresses and multiple target users may include:
[0074] 310. Obtain the long URL of the target activity's activity page;
[0075] 320. Assign a unique short link address to each target user from the short link address queue, and concatenate each short link address with a preset short domain name to obtain the short link address corresponding to each target user.
[0076] 330. Establish and store the mapping relationship between target activities, long link addresses, short link addresses corresponding to each target user, and user identifiers of each target user.
[0077] In this embodiment, during the generation of multiple short link addresses, the electronic device can first obtain the long link address of the activity page of the target active user from the target activity corresponding to the target user group. Then, the electronic device can obtain multiple short link addresses from the short link address queue and assign them to each target user in the target user group. The short link address can be a single number used as a unique identifier for each target user. The number of short link addresses obtained by the electronic device from the short link address queue is equal to the number of target users in the target user group, and each short link address corresponds one-to-one with a target user.
[0078] After assigning a unique short link address to each target user, the electronic device concatenates the short link address with a preset short domain name. The concatenated string serves as the corresponding short link address for each target user. The short domain name is the address of the activity page that accesses the target activity, and its character count is less than that of the long link address. The short domain name can be set by the administrator. For example, if the activity page is the page for the P7 car model on a certain official website, and the long link address is "https: / / www.xxxxx.com / p7.html", the preset short domain name could be "P-7.co". If one target user's corresponding short link address is 9560537677, then the concatenated short link address could be P-7.co / 9560537677.
[0079] In this embodiment, the electronic device can establish and store a mapping relationship between the target activity, the long link address, the short link address of each target user, and the user identifier of each target user after obtaining the short link address corresponding to each target user, or after obtaining the short link addresses corresponding to all target users in the target user group. Specifically, the mapping relationship is established between the target activity corresponding to the target user group, the long link address of the activity page of the target activity, the short link addresses corresponding to the long link address, and the user identifier of each target user in the target user group. That is, based on the target activity or the long link address, the short link address corresponding to each target user and the user identifier of each target user can be found, and vice versa. Among them, the target activity is the activity corresponding to the target user group determined based on the group characteristics, which can be represented by an activity name or a specific identifier. The user identifier is one of the contents contained in the user information of the target user, used to uniquely identify the corresponding target user.
[0080] By assigning short link addresses to each target user and concatenating these short link addresses with preset short domain names, the process of generating short link addresses becomes streamlined. Furthermore, each generated short link address corresponds one-to-one with a target user. After generation, a mapping relationship is established between the target activity, the obtained long link address, each short link address, and the user identifier of each target user. This allows for quick searching of other content based on portions of the mapping relationship.
[0081] In some embodiments, a unique short link address is assigned to each target user from the short link address queue, and each short link address is concatenated with a preset short domain name to obtain the short link address corresponding to each target user. This may include:
[0082] Each target user is assigned a unique short link address from the short link address queue. Each short link address is then converted from high to low base. The converted short link addresses are then concatenated with a preset short domain name to obtain the short link address corresponding to each target user.
[0083] In this embodiment, the electronic device converts the short link address, represented by a number, to its high-base form, and then concatenates the high-base short link address with a preset short domain name to obtain the short link address corresponding to each target user. For example, the preset short domain name can be "P-7.co", and the short link address corresponding to one target user is 9560537677. This identifier is in decimal; after converting the short link address to base-62, it is represented as ar12AB. Therefore, the concatenated short link address can be P-7.co / ar12AB. This further reduces the length of the generated short link address, saving on marketing costs.
[0084] In one embodiment, before the electronic device generates multiple short link addresses corresponding to the long link address based on the long link address of the activity page of the target activity and the user information of multiple target users in step 220, the method further includes:
[0085] Generate an activity token corresponding to the target activity.
[0086] During the process of obtaining the long link address of the activity page of the target activity in step 310, the electronic device may include:
[0087] If the activity token is valid, the long link address corresponding to the target activity will be obtained based on the activity token.
[0088] In this embodiment, before generating multiple short link addresses, the electronic device can generate an activity token corresponding to the target activity. The activity token serves as a link label between the target activity and the subsequently generated multiple short link addresses. That is, the electronic device allocating the target activity can use the activity token corresponding to the target activity to find the generated multiple short link addresses, or use the short link addresses to find the target activity assigned to the target user group. Furthermore, the generated activity token can have an expiration date, meaning the validity period of the activity token can be set.
[0089] In this embodiment, when the electronic device obtains the long link address of the activity page of the target activity, it can first check the validity of the activity token, that is, check whether the activity token is currently valid. If the activity token is detected to be valid, the electronic device will search for the target activity based on the activity token and then obtain the long link address from the activity page of the target activity.
[0090] By generating activity tokens, multiple short link addresses corresponding to a target activity can be effectively identified even when the electronic device allocating the target activity and the electronic device generating the short link address are not the same. By detecting the validity period of the activity token and obtaining the long link address while the activity token is still valid, it is possible to avoid generating and sending multiple short link addresses when the target activity expires, thus preventing the waste of marketing costs.
[0091] In one embodiment, during the process of establishing and storing the mapping relationship between the target activity, long link address, short link address corresponding to each target user, and user identifier of each target user in step 330, the electronic device may include:
[0092] Create an initial mapping relationship between the shortened link address, user information, and activity token, and store the initial mapping relationship in the database;
[0093] Create a second mapping relationship between each short link address and a long link address, and store the second mapping relationship in the cache.
[0094] In the embodiments of this application, the mapping relationship established by the electronic device for the target activity, long link address, short link address corresponding to each target user, and user identifier of each target user can specifically include two mapping relationships. The first mapping relationship includes a first mapping relationship between each short link address and user information and activity token, meaning that the corresponding user information and activity token corresponding to the target activity can be found based on the short link address. The number of first mapping relationships is equal to the number of generated short link addresses. The second mapping relationship includes a second mapping relationship between each short link address and long link address, meaning that the long link address can be found based on the short link address. The number of second mapping relationships is equal to the number of generated short link addresses.
[0095] The electronic device stores each first mapping relationship in a database and each second mapping relationship in a cache. The database can be a MySQL database, and the cache can be a Redis cache.
[0096] By creating two different mapping relationships, it is possible to manage short link addresses based on user information and activity tokens, while also facilitating changes to the mapping relationship between short and long link addresses. This is useful in situations where long link addresses need to be urgently removed from the platform. Furthermore, storing the second mapping relationship in the cache makes it easy to delete.
[0097] In one embodiment, see Figure 4 , Figure 4 This is a schematic diagram illustrating the process of accessing an active page as disclosed in one embodiment. After executing step 230, the electronic device may also execute the following steps:
[0098] 410. Receive a first click request sent by a first user terminal, wherein the first click request includes a first short link address triggered by the first user terminal;
[0099] 420. Find the long link address corresponding to the first short link address;
[0100] 430. Transmit the long link address to the first user terminal so that the first user terminal can jump to and access the activity page according to the long link address.
[0101] In this embodiment, after sending each short link address to the corresponding user terminal of each target user, the electronic device can perform real-time detection on each target user's user terminal to detect whether the target user's user terminal has sent a click request. The first user terminal is the user terminal that sends the first click request. The first click request is a request generated by the target user triggering the first short link address on the first user terminal. The first short link address is a short link address triggered by the target user on the user terminal that has a mapping relationship with the long link address of the activity page. The electronic device searches for the corresponding long link address based on the first short link address and transmits the found long link address to the first user terminal. For example, one or more target users trigger the received first short link address sent by the electronic device through their corresponding first user terminals. The triggering method can be clicking the first short link address. After the target user triggers the first short link address, the first user terminal can generate a first click request and send the first click request to the electronic device. The first click request contains the triggered first short link address. After receiving the first click request sent by one or more target users' first user terminals, the electronic device searches for the long link address corresponding to the first short link address based on the first short link address contained in the first click request. The electronic device can retrieve the long link address corresponding to each first short link address from the second mapping relationship stored in the cache. After finding the long link address, the electronic device transmits the long link address to each first user terminal. Upon receiving the long link address, each first user terminal jumps from the first short link address to the long link address, thereby accessing the activity page of the target activity.
[0102] By finding the corresponding long link address based on the short link address contained in the received click request, and then replying the long link address to the user terminal that sent the click request, the user terminal can access the activity page through the unique short link address.
[0103] In one embodiment, after the electronic device performs step 410 of receiving the first click request sent by the first user terminal, the method further includes:
[0104] Store the activity data corresponding to the first user terminal in the activity statistics table;
[0105] The activity data corresponding to the first user terminal includes at least one of the following: the sending time of the first click request, the first short link address, and the long link address.
[0106] In this embodiment, after receiving a click request from one or more first user terminals, the electronic device stores the activity data corresponding to each first user terminal that sent the first click request in an activity statistics table. The activity data for each first user terminal includes at least one of the following: the sending time of the first click request, the first short link address contained in the first click request, and the long link address corresponding to the first short link address in the click request. The activity statistics table can be stored in the electronic device or a server.
[0107] In one embodiment, see Figure 5 , Figure 5 This is a schematic diagram illustrating the process of statistically analyzing group activity data for various target user groups, as disclosed in one embodiment. After storing the activity data corresponding to the first user terminal in the activity statistics table, the electronic device may further perform the following steps:
[0108] 510. Divide the group characteristics into multiple subgroup characteristics;
[0109] 520. Based on the characteristics of multiple subgroups, the target user group is divided into multiple target user groups, and the multiple target user groups correspond one-to-one with the characteristics of multiple subgroups;
[0110] 530. Find the activity data corresponding to each target user in each target user group from the activity statistics table, and statistically analyze the group activity data of each target user group based on the activity data corresponding to each target user in each target user group.
[0111] The group activity data includes at least one of the following: click-through rate for each target user group, click change curve, and the percentage of click-through rate for each target user group to the total click-through rate.
[0112] In this embodiment, the electronic device splits selected group characteristics into multiple sub-group characteristics. This splitting can occur on one group characteristic while leaving other group characteristics unchanged, or it can split multiple group characteristics. For example, the selected group characteristics are three: Characteristic 1: Permanent residence in Guangdong Province; Characteristic 2: 18 years of age or older; and Characteristic 3: Registered user of the XPeng Motors APP. The electronic device can split Characteristic 2 into three sub-group characteristics: Characteristic 21 (18 to 30 years old), Characteristic 22 (31 to 40 years old), and Characteristic 23 (41 years and older). Characteristic 1 and Characteristic 3 remain unchanged.
[0113] Based on the obtained subgroup characteristics, the electronic device divides multiple target users selected from the user information database into multiple target user groups. Each target user group corresponds one-to-one with one of the subgroup characteristics obtained, meaning the number of target user groups is equal to the number of subgroup characteristics. For example, after splitting characteristic 2 into three subgroup characteristics, the electronic device divides the multiple target users in the target user group into three target user groups: Target User Group 1 (corresponding to characteristic 21, 18 to 30 years old), Target User Group 2 (corresponding to characteristic 22, 31 to 40 years old), and Target User Group 3 (corresponding to characteristic 23, 41 years and older).
[0114] After identifying each target user group and the target users within each target user group, the electronic device retrieves the activity data corresponding to each target user within each target user group from the activity statistics table. Following the search, the electronic device then separately compiles group activity data for each target user group based on the activity data corresponding to each target user within each target user group. For example, the electronic device retrieves the activity data corresponding to each target user in target user group 1, target user group 2, and target user group 3 from the activity statistics table. After the search, based on the target users within each target user group, the retrieved activity data is separately compiled into group activity data for each target user group, namely, group activity data for target user group 1, group activity data for target user group 2, and group activity data for target user group 3. The group activity data may include the activity data of each target user within the corresponding target user group, such as at least one of the following: the sending time of the first click request, the first short link address, and the long link address; it may also include at least one of the following: click-through rate of each target user group, click change curve, and the proportion of the click-through rate of each target user group to the total click-through rate.
[0115] In this embodiment, after finding the activity data corresponding to each target user in each target user group, the electronic device can determine the group activity data of the target user group based on the activity data corresponding to each target user. Specifically, for the click-through rate (CTR) of each target user group, the electronic device counts the number of target users in each target user group who triggered the first short link address in the activity statistics table, and then determines the CTR of the corresponding target user group. For example, the CTR of the target user group is: CTR = number of short links clicked by target users in T+1 days / total number of short links issued by the target activity. At this time, the CTR of target user group 1 is: CTR_1 = number of short links clicked by target users aged 18 to 30 in T+1 days / total number of short links clicked in T+1 days. For the click change curve of each target user group, the electronic device can count the daily CTR of each target user group, and then generate the click change curve of each target user group. For the proportion of the CTR of each target user group to the total CTR, the electronic device can count the CTR of each target user group, such as CTR_1, and the CTR of the target user group to determine the proportion of the CTR of each target user group to the total CTR.
[0116] By breaking down the characteristics of multiple subgroups to divide different target user groups, and then statistically analyzing the group activity data of each target user group, the level of interest of target users in each target user group in this activity can be determined. This allows for adjustments to operational strategies, resulting in more targeted marketing campaigns. This improves the targeting, accuracy, and timeliness of operational campaigns, saves on operational costs, and increases the return on investment of operational activities.
[0117] In one embodiment, see Figure 6 , Figure 6 This is a schematic diagram of the process for removing shortened link addresses disclosed in one embodiment. After the electronic device executes step 230, which involves sending each shortened link address to the corresponding target user's user terminal based on the user information of each target user, the method further includes:
[0118] 610. If sensitive words are detected in the activity page of the target activity, find multiple short link addresses that correspond to the long link address of the activity page of the target activity.
[0119] 620. Delete the mapping relationship between multiple short link addresses and long link addresses.
[0120] In this embodiment, the electronic device can perform real-time detection of the content of the activity page of the target activity. If a sensitive word is detected in the activity page, the electronic device searches for multiple short link addresses corresponding to the long link address of the activity page. Specifically, it searches for multiple short link addresses associated with the target activity from the aforementioned database. Then, the electronic device deletes the mapping relationship between the multiple short link addresses and the long link addresses stored in the cache, i.e., the second mapping relationship. This allows the multiple short link addresses corresponding to the target activity to be removed when a sensitive word appears on the activity page of the target activity, making it impossible to access the activity page of the target activity based on the short link address.
[0121] In one embodiment, see Figure 7 , Figure 7 This is a schematic diagram illustrating the page redirection process after a shortened link address is removed, as disclosed in one embodiment. After the electronic device deletes the mapping relationship between multiple shortened link addresses and long link addresses in step 610, the method further includes:
[0122] 710. Receive a second click request sent by the second user terminal, wherein the second click request includes a second short link address triggered by the second user terminal;
[0123] 720. Find the long link address corresponding to the second short link address;
[0124] 730. If no long link address corresponding to the second short link address is found, the initial address corresponding to the default page is transmitted to the second user terminal so that the second user terminal can jump to and access the default page according to the initial address.
[0125] In this embodiment, after deleting the mapping relationship between the long link address and multiple short link addresses of the activity page containing sensitive words, the electronic device still performs real-time detection on the user terminals of each target user to detect whether the user terminal of the target user has sent a click request. The second user terminal is the user terminal that sends the second click request. The second click request is a request generated by the target user triggering the second short link address on the second user terminal. The second short link address is a short link address triggered by the target user on the second user terminal whose mapping relationship with the long link address has been deleted. The electronic device searches for the corresponding long link address based on the second short link address. If the long link address is not found, the initial address of the default page is transmitted to the second user terminal. For example, one or more target users trigger the received second short link address sent by the electronic device through their corresponding second user terminals. The triggering method can be clicking the second short link address. After the target user triggers the second short link address, the second user terminal can generate a second click request and send the second click request to the electronic device. The second click request contains the triggered second short link address. After receiving a second click request from one or more target users' second user terminals, the electronic device searches for the long link address corresponding to the second short link address contained in the second click request. If the electronic device cannot find the long link address, it transmits the initial address of the default page to each second user terminal. Upon receiving the initial address, each second user terminal jumps from the second short link address to the initial address and then accesses the default page.
[0126] If the corresponding long link address cannot be found based on the short link address contained in the received click request, the address of the default page is sent back to the user terminal that sent the click request, thus preventing the target user from accessing the activity page containing sensitive words.
[0127] Please see Figure 8 , Figure 8 This is a schematic diagram of a short link address generation device disclosed in an embodiment of this application. This short link address generation device can be applied to electronic devices. Figure 8 As shown, the short link address generation device 800 may include:
[0128] User screening module 810 is used to screen multiple target users from the user information database based on one or more selected group characteristics, and to obtain user information of multiple target users from the user information database, wherein the multiple target users constitute a target user group.
[0129] The short link address generation module 820 is used to generate multiple short link addresses corresponding to the long link address based on the long link address of the activity page of the target activity and the user information of multiple target users. The multiple short link addresses correspond one-to-one with the multiple target users.
[0130] The short link address sending module 830 is used to send each short link address to the user terminal of the corresponding target user based on the user information of each target user.
[0131] In one embodiment, user information includes a user identifier;
[0132] The shortened link generation module 820 is also used for:
[0133] Obtain the long URL of the target activity's event page;
[0134] A unique short link address is assigned to each target user from the short link address queue, and each short link address is concatenated with a preset short domain name to obtain the short link address corresponding to each target user.
[0135] Establish and store the mapping relationship between target activities, long link addresses, short link addresses corresponding to each target user, and user identifiers of each target user.
[0136] In one embodiment, the short link address generation module 820 is further configured to:
[0137] Before generating multiple short link addresses corresponding to the long link address based on the long link address of the target activity's activity page and the user information of multiple target users, generate an activity token corresponding to the target activity.
[0138] If the activity token is valid, the long link address corresponding to the target activity is obtained based on the activity token.
[0139] In one embodiment, the short link address generation module 820 is further configured to:
[0140] Create an initial mapping relationship between the shortened link address, user information, and activity token, and store the initial mapping relationship in the database;
[0141] Create a second mapping relationship between each short link address and a long link address, and store the second mapping relationship in the cache.
[0142] In one embodiment, the short link address generation module 820 is further configured to:
[0143] After sending each short link address to the corresponding user terminal based on the user information of each target user, if a sensitive word is detected in the activity page of the target activity, multiple short link addresses corresponding to the long link address of the activity page of the target activity are found; and the mapping relationship between multiple short link addresses and long link addresses is deleted.
[0144] In one embodiment, the short link address generation module 820 is further configured to:
[0145] After deleting the mapping relationship between multiple short link addresses and long link addresses, a second click request is received from the second user terminal. The second click request includes the second short link address triggered by the second user terminal. The long link address corresponding to the second short link address is searched. If no long link address corresponding to the second short link address is found, the initial address corresponding to the default page is transmitted to the second user terminal so that the second user terminal can jump to and access the default page according to the initial address.
[0146] Please refer to the following: Figure 9 , Figure 9 This is a schematic diagram of another short link address generation device disclosed in an embodiment of this application. Figure 9 The short link address generation device shown is composed of Figure 8 The short link address generation device shown is optimized. Figure 8 Compared to the short link address generation device shown, Figure 9 The short link address generation device 800 shown may further include:
[0147] User terminal access module 840 is used to receive a first click request sent by a first user terminal, the first click request including a first short link address triggered by the first user terminal; find the long link address corresponding to the first short link address; and transmit the long link address to the first user terminal so that the first user terminal can jump to and access the activity page according to the long link address.
[0148] Please refer to the following: Figure 10 , Figure 10 This is a schematic diagram of another short link address generation device disclosed in an embodiment of this application. Figure 10 The short link address generation device shown is composed of Figure 9 The short link address generation device shown is optimized. Figure 9 Compared to the short link address generation device shown, Figure 10 The short link address generation device 800 shown may further include:
[0149] The activity analysis module 850 is used to store the activity data corresponding to the first user terminal into an activity statistics table after receiving the first click request sent by the first user terminal; wherein, the activity data corresponding to the first user terminal includes at least one of the sending time of sending the first click request, the first short link address, and the long link address.
[0150] In one embodiment, the activity analysis module 850 is further configured to:
[0151] The group characteristics are broken down into multiple sub-group characteristics; based on the multiple sub-group characteristics, the target user group is divided into multiple target user groups, with each target user group corresponding to one of the multiple sub-group characteristics; the activity data corresponding to each target user in each target user group is retrieved from the activity statistics table, and the group activity data for each target user group is calculated based on the activity data corresponding to each target user in each target user group; wherein, the group activity data includes at least one of the following: click-through rate of each target user group, click change curve, and the proportion of the click-through rate of each target user group to the total click-through rate.
[0152] Please see Figure 11 , Figure 11 This is a schematic diagram of the structure of an electronic device disclosed in one embodiment. This electronic device can be applied to driving vehicles, but is not specifically limited thereto. Figure 11 As shown, the electronic device 1100 may include:
[0153] Memory 1110 storing executable program code;
[0154] Processor 1120 coupled to memory 1110;
[0155] The processor 1120 calls the executable program code stored in the memory 1110 to execute any of the short link address generation methods disclosed in the embodiments of this application.
[0156] This application discloses a computer-readable storage medium storing a computer program that causes a computer to execute any of the short link address generation methods disclosed in this application.
[0157] This application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any of the short link address generation methods disclosed in this application.
[0158] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0159] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0160] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0161] Furthermore, the functional units in the various embodiments of this application 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.
[0162] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of this application, 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 memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of this application.
[0163] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compactdisc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0164] The foregoing has provided a detailed description of a method, apparatus, electronic device, and storage medium for generating short link addresses disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and its core ideas. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for generating short link addresses, characterized in that, The method includes: Multiple target users are selected from a user information database based on one or more selected group characteristics, and user information of the multiple target users is obtained from the user information database, wherein the multiple target users constitute a target user group; Based on the long link address of the activity page of the target activity and the user information of the multiple target users, generate multiple short link addresses corresponding to the long link address, and the multiple short link addresses correspond one-to-one with the multiple target users; Based on the user information of each target user, each short link address is sent to the user terminal of the corresponding target user; The method further includes: The system receives a first click request sent by a first user terminal and stores the activity data corresponding to the first user terminal in an activity statistics table. The first click request includes a first short link address triggered by the first user terminal, and the activity data corresponding to the first user terminal includes at least one of the sending time of the first click request, the first short link address, and the long link address. Find the long link address corresponding to the first short link address; The long link address is transmitted to the first user terminal so that the first user terminal can jump to and access the activity page according to the long link address. The method further includes: The group characteristics are divided into multiple subgroup characteristics; Based on the characteristics of the multiple subgroups, the target user group is divided into multiple target user groups, and the multiple target user groups correspond one-to-one with the characteristics of the multiple subgroups; Find the activity data corresponding to each target user in each target user group from the activity statistics table, and calculate the group activity data of each target user group based on the activity data corresponding to each target user in each target user group. The group activity data includes at least one of the following: click-through rate of each target user group, click change curve, and the proportion of click-through rate of each target user group to the total click-through rate.
2. The method according to claim 1, characterized in that, The user information includes a user identifier; the step of generating multiple short link addresses corresponding to the long link address based on the long link address of the target activity's activity page and the user information of the multiple target users, wherein each of the multiple short link addresses corresponds one-to-one with the multiple target users, includes: Obtain the long URL of the target activity's event page; A unique short link address is assigned to each target user from the short link address queue, and each short link address is concatenated with a preset short domain name to obtain the short link address corresponding to each target user. Establish a mapping relationship between the target activity, the long link address, the short link address corresponding to each target user, and the user identifier of each target user, and store the mapping relationship.
3. The method according to claim 2, characterized in that, Before generating multiple short link addresses corresponding to the long link address based on the long link address of the target activity's activity page and the user information of the multiple target users, the method further includes: Generate an activity token corresponding to the target activity; The process of obtaining the long link address of the target activity's activity page includes: If the activity token is valid, the long link address corresponding to the target activity is obtained based on the activity token.
4. The method according to claim 3, characterized in that, The process of establishing and storing the mapping relationship between the target activity, the long link address, the short link address corresponding to each target user, and the user identifier of each target user includes: Create a first mapping relationship between the short link address corresponding to each target user, the user identifier of each target user, and the activity token, and store the first mapping relationship in the database; A second mapping relationship is created between each of the short link addresses and the long link addresses, and the second mapping relationship is stored in the cache.
5. The method according to any one of claims 2 to 4, characterized in that, After sending each short link address to the corresponding target user's user terminal based on the user information of each target user, the method further includes: If a sensitive word is detected in the activity page of the target activity, then multiple short link addresses corresponding to the long link address of the activity page of the target activity are searched. The mapping relationship between the multiple short link addresses and the long link addresses is deleted.
6. The method according to claim 5, characterized in that, After deleting the mapping relationship between the multiple short link addresses and the long link addresses, the method further includes: Receive a second click request sent by a second user terminal, the second click request including a second short link address triggered by the second user terminal; Find the long link address that corresponds to the second short link address; If no long link address corresponding to the second short link address is found, the initial address corresponding to the default page is transmitted to the second user terminal so that the second user terminal can jump to and access the default page according to the initial address.
7. A short link address generation device, characterized in that, The device includes: The user filtering module is used to filter multiple target users from a user information database based on one or more selected group characteristics, and to obtain user information of the multiple target users from the user information database, wherein the multiple target users constitute a target user group. The short link address generation module is used to generate multiple short link addresses corresponding to the long link address based on the long link address of the activity page of the target activity and the user information of the multiple target users. The multiple short link addresses correspond one-to-one with the multiple target users. The short link address sending module is used to send each short link address to the user terminal of the corresponding target user according to the user information of each target user; The device further includes: The user terminal access module is used to receive a first click request sent by a first user terminal, the first click request including a first short link address triggered by the first user terminal; find a long link address corresponding to the first short link address; and transmit the long link address to the first user terminal so that the first user terminal can jump to and access the activity page according to the long link address. The activity analysis module is used to receive a first click request sent by a first user terminal and store the activity data corresponding to the first user terminal in an activity statistics table. The activity data corresponding to the first user terminal includes at least one of the sending time of the first click request, the first short link address, and the long link address. The activity analysis module is further configured to split the group characteristics into multiple sub-group characteristics, divide the target user group into multiple target user groups based on the multiple sub-group characteristics, and the multiple target user groups correspond one-to-one with the multiple sub-group characteristics. The module also retrieves the activity data corresponding to each target user in each target user group from the activity statistics table, and calculates the group activity data for each target user group based on the activity data corresponding to each target user in each target user group. The group activity data includes at least one of the following: click-through rate of each target user group, click change curve, and the proportion of the click-through rate of each target user group to the total click-through rate.
8. An electronic device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the 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 as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Exclusive short link data analysis method
CN111008344A