Short message tracking method and system, electronic equipment and storage medium
By generating SMS IDs and short links for SMS, monitoring and recording related information, the problem that the existing technology cannot track the entire life cycle of SMS is solved, and information tracking and data analysis of the entire life cycle of SMS is realized.
Patent Information
- Application Number
- CN202411739329.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-02-28
AI Technical Summary
The prior art cannot effectively track various information throughout the entire life cycle of SMS, including whether it is opened, whether it is replied, and whether the link is clicked.
By generating a SMS ID for the SMS to be sent and filling in the SMS content, a correspondence between the SMS ID and the short link is established. Monitor the response information of the SMS provider, the receipt information of the SMS that has reached the user and the reply information of the receiver, and record the status of the SMS and the user behavior log.
It realizes information tracking throughout the life cycle of SMS, facilitates data governance and analysis, and provides business parties with important marketing activity data.
Smart Images

Figure CN119545298A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a text message tracking method, system, electronic device and storage medium. Background Art
[0002] Short messages, also known as short message services (SMS), are a traditional form of communication. Short message services are part of basic communication services, especially mobile communication services. Therefore, the SMS function is one of the basic functions of almost all types of mobile phones (such as feature phones, smart phones, and low-end, old feature phones). Short messages are concise and clear, and are easy to send and receive. Compared with email and social accounts, they do not require account information and can be sent and received at any time, so SMS covers a larger user group.
[0003] From a business perspective, SMS services can be divided into three categories: personal SMS services, industry SMS services, and commercial marketing SMS services. Personal SMS services mainly refer to ordinary text messages sent between users through mobile networks, usually called P2P (Person-to-Person) SMS. Industry SMS services refer to enterprises or institutions sending service notifications, verification codes, marketing information, etc. through SMS, usually called A2P (Application-to-Person) SMS. For example, transaction reminders sent by banks, order notifications from e-commerce platforms, etc. Commercial marketing SMS are mainly used for corporate promotion and marketing. Such SMS are usually sent to a large number of users and have a strong advertising nature.
[0004] For industry SMS and marketing SMS, the sender is usually an enterprise. The enterprise edits the SMS content and usually embeds a link for displaying relevant information or marketing information in the SMS content. Then, the enterprise calls the API interface provided by the SMS provider to submit the SMS content, target number and other information to the SMS provider. The SMS provider sends the SMS content to the operator through the SMS interface, and the operator sends the SMS content to the end user. When the user opens the SMS and clicks on the link embedded in the SMS content, the mobile phone's operating system starts the browser, parses the domain name in the link, converts the domain name into an IP address, and then establishes a connection with the target server. The target server returns the corresponding page or resource to the browser based on the link content. The target server records this service in the form of a log. For similar solutions, please refer to the Chinese patent application with publication number CN110109660A and invention name "A system and method for monitoring SMS reach effect". This patent application provides an application scenario based on SMS marketing, which monitors the short link clicks contained in the SMS copy after the marketing SMS is sent. The short link system provides short link encoding, jump, and monitoring services. The short link system logs are collected through the log collector, and then the logs are analyzed to count the dynamic links that have been clicked. Finally, the decoding algorithm is used to restore them to the corresponding mobile phone numbers and generate a user click behavior report.
[0005] As can be seen from the above scheme, it is mainly in the forward process of SMS that the short link system is used to track whether the user has read the SMS and whether the link has been clicked. For the entire life cycle of a SMS, since the SMS communication link from the sender to the receiver needs to pass through various systems, such as SMS providers, operators, and servers that provide link content, the data of these different systems are relatively independent and isolated. Therefore, the existing SMS communication method cannot enable the SMS sender to know whether a specific SMS it sent has been opened, replied, or the link in it has been clicked. The recipient's opening, replying, clicking on the link, and the specific reply content of the SMS are important data for the business side to analyze marketing activities. Therefore, in order to obtain these important data, a method that can track the entire life cycle of SMS is urgently needed. Summary of the invention
[0006] In view of the technical problems existing in the prior art, the present invention proposes a text message tracking method, system, electronic device and storage medium, which can track various information in the entire life cycle of the text message.
[0007] In order to solve the above technical problem, according to one aspect of the present invention, the present invention provides a text message tracking method, comprising the following steps:
[0008] Generate SMS ID for the SMS to be sent;
[0009] Generate a corresponding short chain code and a corresponding short link based on the business requirements of the SMS to be sent, and establish a corresponding relationship between the SMS ID and the short link / short chain code;
[0010] Fill in the short link in the SMS content and submit the SMS to the SMS provider;
[0011] monitoring the SMS provider's submission response information;
[0012] In response to the SMS provider including a response code indicating successful submission of the SMS, the corresponding relationship between the response code and the SMS ID is recorded and the status of the SMS is marked as a successfully sent status;
[0013] Monitor the receipt information returned by the SMS provider indicating that the SMS has reached the user and the recipient's reply information to the SMS;
[0014] In response to receiving a receipt message from a short message provider indicating that the short message has reached the user, extracting a response code carried in the receipt message, finding a short message ID corresponding to the response code based on the response code, and marking the status of the short message as reaching the user;
[0015] In response to receiving the reply information of the recipient to the SMS returned by the SMS provider, extracting the response code carried in the reply information, finding the SMS ID corresponding to the response code based on the response code, marking the status of the SMS as the reply status and storing the reply information;
[0016] Monitor the receiver's resource requests for the short link;
[0017] In response to receiving a resource request for a short link from a recipient, extracting a corresponding short link / short chain code from the resource request;
[0018] Determine the SMS ID corresponding to the short link / short chain code based on the correspondence between the SMS ID and the short link / short chain code; and
[0019] When recording the user behavior log based on the receiver's resource request for the short link, the corresponding SMS ID is recorded.
[0020] Optionally, when the sender sets business tracking parameters for the SMS to be sent, a one-to-one correspondence between the SMS ID, the business tracking parameters and the short link / short chain code is established; correspondingly, when determining the SMS ID corresponding to the short link / short chain code, the corresponding business tracking parameters are also determined; when recording the user behavior log, the corresponding SMS ID and business tracking parameters are recorded.
[0021] Optionally, create SMS tracking information, which includes at least an SMS ID field, a business tracking parameter field and an SMS status field; correspondingly, store the generated SMS ID in the SMS ID field, store the business tracking parameters in the business tracking parameter field, and mark the successful sending status, user reaching status and / or reply status in the SMS status field.
[0022] Optionally, the SMS tracking information further includes a sender ID field and a receiver ID field; correspondingly, the sender ID and receiver ID provided by the sender are respectively added to corresponding fields in the SMS tracking information.
[0023] Optionally, the SMS tracking information further includes a service category identification field, and correspondingly, the service category identification information provided by the sender is added to the service category identification field.
[0024] Optionally, the business tracking parameter includes a plurality of parallel parameters and / or a plurality of parameters having a parent-child relationship.
[0025] According to another aspect of the present invention, the present invention also provides a text message tracking system, comprising a text message module and a short link module, wherein the text message module is configured to generate a text message ID for the text message to be sent, submit the text message to the text message provider, receive the response code returned by the text message provider, the text message has reached the user receipt information and / or the user's reply information to the text message, and correspondingly record the sending success status, reaching user status and / or reply status of the sent text message and the corresponding reply information; the short link module is configured to generate a corresponding short link and short link code based on the business needs of the text message to be sent, and establish a corresponding relationship between the text message ID and the short link / short chain code; when receiving a user's resource request for the short link, determine the corresponding text message ID according to the short link / short chain code in the resource request, and record the corresponding text message ID when recording the user behavior log.
[0026] According to another aspect of the present invention, the present invention also provides an electronic device, which includes a processor and a memory, wherein a computer program instruction set is stored in the memory, and the aforementioned SMS tracking method is implemented when the processor executes the computer program instruction set in the memory.
[0027] According to another aspect of the present invention, the present invention further provides a computer-readable storage medium, on which a computer program instruction set is stored, and when the computer program instruction set is executed by a processor, the aforementioned SMS tracking method is implemented.
[0028] According to another aspect of the present invention, the present invention further provides a computer program product, including a computer program instruction set, and the computer program instruction set implements the aforementioned SMS tracking method when executed by a processor.
[0029] The present invention can connect the information of each stage in the SMS communication process in series, thereby realizing the information tracking of the entire life cycle of the SMS and facilitating the management and analysis of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The preferred embodiments of the present invention will be further described in detail below with reference to the accompanying drawings, wherein:
[0031] Figure 1 is a flow chart of a method for tracking text messages according to an embodiment of the present invention;
[0032] Figure 2 is a principle block diagram of a text message tracking system according to an embodiment of the present invention;
[0033] Figure 3 is a schematic diagram of a system architecture of a text message tracking process according to an embodiment of the present invention;
[0034] Figure 4 is a schematic diagram of a data processing flow in a text message tracking process according to an embodiment of the present invention; and
[0035] Figure 5 It is a schematic diagram of the hardware structure principle of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] In the following detailed description, reference may be made to the various specification drawings that are part of the present application and are used to illustrate specific embodiments of the present application. In the accompanying drawings, similar reference numerals describe substantially similar components in different figures. The various specific embodiments of the present application are described below in sufficient detail so that a person of ordinary skill in the art with relevant knowledge and skills in the art can implement the technical solutions of the present application. It should be understood that other embodiments may also be used or structural, logical or electrical changes may be made to the embodiments of the present application.
[0038] The present invention provides a text message tracking method, system, electronic device and storage medium, which can track enterprise text messages (including industry text messages and marketing text messages) throughout their life cycle. The full life cycle refers to the various stages from the sending of a text message to the user replying to the text message or performing related operations based on the text message content. Figure 1 , Figure 1 is a flow chart of a method for tracking text messages according to an embodiment of the present invention. In this embodiment, the method for tracking text messages includes the following steps:
[0039] Step S11, generating a text message ID for the text message to be sent.
[0040] Step S12, generate the corresponding short chain code and short link based on the business requirements of the SMS to be sent, and establish a corresponding relationship between the SMS ID and the short link / short chain code.
[0041] Step S13, add the short link in the SMS content and submit the SMS to the SMS provider.
[0042] Step S21, monitoring the submission response information of the short message provider.
[0043] Step S22, determining whether a submission response message from the SMS provider is received, if the submission response message from the SMS provider is received, executing step S23. If the submission response message is not received, returning to step S21.
[0044] Step S23, extracting a response code from the submitted response information, recording the corresponding relationship between the response code and the SMS ID, and marking the status of the SMS as a successfully sent status.
[0045] Step S31, monitoring the receipt information returned by the SMS provider indicating that the SMS has reached the user.
[0046] Step S32, determine whether the receipt information of the SMS reaching the user is received from the SMS provider, if the receipt information of the SMS reaching the user is received, execute step S33. If the receipt information of the SMS reaching the user is not received from the SMS provider, return to step S31.
[0047] Step S33, extracting the response code carried in the receipt information.
[0048] Step S34, based on the response code, find the corresponding SMS ID and mark the status of the SMS as reaching the user status.
[0049] Step S41, monitoring the reply information of the recipient to the short message returned by the short message provider.
[0050] Step S42, determine whether the reply information of the recipient to the SMS message returned by the SMS provider is received, if received, execute step S43. If the reply information of the recipient to the SMS message returned by the SMS provider is not received, return to step S41.
[0051] Step S43: extract the response code carried in the reply information.
[0052] Step S44, based on the response code, find the corresponding SMS ID, mark the status of the SMS as a reply status and store the reply information.
[0053] Step S51, monitoring the receiver's resource request for the short link.
[0054] Step S52, determining whether a resource request for the short link from the receiving party is received, if the resource request for the short link from the receiving party is received, executing step S53, if not, returning to step S51.
[0055] Step S53: extract the corresponding short chain code from the resource request.
[0056] Step S54, determining the SMS ID corresponding to the short chain code based on the correspondence between the SMS ID and the short chain code.
[0057] Step S55, recording the corresponding SMS ID when recording the user behavior log.
[0058] In step S11, before sending the text message, a unique text message ID is generated for the text message. The text message ID can be a string consisting of numbers, letters, special symbols, etc.
[0059] In step S12, the business requirement is, for example, to embed a resource information page in the text of the SMS. The information page can be an information page of a marketing campaign, or an information page of a certain type of information content displayed to the recipient, which has a specific IP address and is a longer link information. In view of this scenario, the longer link information is converted into a short link, and in step S13, the short link is added to the text of the SMS, and together with the text, image and other data in the text of the SMS, the SMS content data to be sent is submitted to the SMS provider.
[0060] The business requirement may also be, for example, the need to directly use the current SMS body as an information page with a specific IP address. For this scenario, the longer link information is converted into a short link. In step S13, the short link is added to the SMS body as the SMS content data to be sent and submitted to the SMS provider.
[0061] In addition, in the communication link of enterprise SMS, it usually includes SMS providers and SMS gateways (SMSC, Short Message Service Center) of operators. SMS providers provide API interfaces for the sender to call. Therefore, in step S13, by calling the API interface provided by the SMS provider, the SMS content, target number and other information are submitted to the SMS provider.
[0062] After the SMS provider successfully receives the SMS submitted by the sender, it returns a response message to the sender, and includes a response code (such as msgID) in the response message, which is a unique identifier that corresponds to the SMS provider and the SMS.
[0063] Therefore, in step S21, the submission response information of the SMS provider is monitored. After the submission response information returned by the SMS provider is received, the response code is extracted from the submission response information in step S23. By recording the corresponding relationship between the response code and the SMS ID, a binding relationship between the response code and the SMS ID is established, so that the SMS ID can be found through the response code, and then the status of the corresponding SMS is marked as a successfully sent status.
[0064] After receiving a text message, the SMS provider will check the content and monitor the traffic flow, and then assign the content of the text message to the operator channel that matches the destination of the target number. The content is sent to the operator's SMS gateway through the operator's SMS interface. The SMS gateway is the core system for operators to process text messages. During the sending process, the SMS provider will record the sending status of each text message to ensure that it is successfully transmitted to the operator's SMS gateway. After the operator's SMS gateway receives the text message, it will verify the status of the target number and confirm whether the target number is online and can receive text messages (such as the user has no arrears or is suspended). The SMS gateway routes the text message to the corresponding base station or roaming network node based on the destination and location of the target number, and pushes the text message to the recipient's user device. When the recipient's user device receives the text message, the phone will pop up a message notification, and the user can view the complete text message content. After the recipient's user device successfully receives the text message, the operator will generate a receipt of receipt confirmation and send it back to the SMS provider. Based on this receipt, the SMS provider sends a receipt message to the sender indicating that the text message has reached the user. The receipt message includes the response code when the response message is submitted to the sender.
[0065] Therefore, through steps S31 to S34, the corresponding SMS ID is found according to the response code in the receipt information of the user that the SMS has reached, thereby marking the status of the SMS as the user reaching status.
[0066] When the recipient replies to the SMS, the operator sends the reply content to the SMS provider, and the SMS provider adds the response code of the original SMS in the reply information.
[0067] In step S43, the response code carried in the reply information is extracted, and in step S44, the corresponding SMS ID is found based on the response code, the status of the SMS is marked as a reply status and the reply information is stored.
[0068] When the recipient clicks on the short link in the SMS, the mobile phone operating system will identify the short link and trigger the browser application or a specific APP to open the link. For example, when the recipient clicks on the short link in the SMS, the browser is started, the browser parses the domain name in the short link (such as example.com), and sends a resource request to the system that generates the short link (hereinafter referred to as the short link system). The short link system extracts the short link code from the short link corresponding to the resource request, restores the original link of the information page based on the short link code, and establishes a connection between the browser and the corresponding resource server through the original link. The resource server returns the corresponding page or resource to the browser according to the link content. Among them, after receiving the resource request, the short link system determines the corresponding SMS ID based on the short link or the extracted short link code and the corresponding relationship between the short link / short link code and the SMS ID. Usually, the short link system and the resource server will record user behavior logs. For example, when the recipient clicks on the short link in the SMS, the short link system will record the click behavior in the form of a log when it receives the corresponding resource request, such as the click time, short link, and the SMS ID corresponding to the short link. Therefore, the user behavior log in the present invention records the click time of the short link and the corresponding SMS ID. In addition, when the short link system and the resource server store their own user behavior logs, the short link system also sends the SMS ID to the resource server, so that the resource server records the correspondence between the SMS ID and the original link, so that when the resource server records or collects the user's behavior data on the page where the original link is located according to the settings, it can also establish the correspondence between the behavior data and the SMS ID.
[0069] It can be seen from the above method that when a text message is sent, the information of each stage of the text message communication process can be connected in series through the created text message ID, thereby realizing information tracking of the entire life cycle of the text message.
[0070] Since the present invention can track the information of the entire life cycle of the SMS, some business parties as senders can track certain specific information in the entire life cycle of the SMS as needed. Therefore, in one embodiment, the sender sets the business tracking parameters for the SMS to be sent, and after generating the SMS ID for the SMS to be sent, establishes a one-to-one correspondence between the SMS ID, the business tracking parameters and the short link / short chain code. Correspondingly, when determining the SMS ID corresponding to the short link / short chain code in step S55, the corresponding business tracking parameters are also determined based on the one-to-one correspondence between the SMS ID, the business tracking parameters and the short link / short chain code, so that in step S505, the corresponding SMS ID and business tracking parameters are recorded when recording the user behavior log.
[0071] The one-to-one correspondence between the aforementioned SMS ID, business tracking parameters and short link / short chain code, as well as various status information of the SMS can be stored in a specific area of the database in the form of files, data tables, etc. For example, after generating an SMS ID for a to-be-sent SMS, store it in a specified data table, such as the SMS ID column in an Excel table. After generating the corresponding short link, store the short link in the same short link column as the SMS ID. Similarly, store the short chain code, business tracking parameters, response code, successful sending status, user contact status, reply status, and reply information in the corresponding columns.
[0072] In another embodiment, in order to facilitate the reading and management of data, a piece of SMS tracking information is created for each SMS to be sent. The SMS tracking information includes multiple fields, such as an SMS ID field, a business tracking parameter field, and an SMS status field, etc. The generated SMS ID is stored in the SMS ID field, the business tracking parameters are stored in the business tracking parameter field, and the SMS status field is marked with the successful sending status, the user reaching status, and / or the reply status. Of course, other fields may also be included, such as a sender ID field and a receiver ID field, and the sender ID and the receiver ID are added to the corresponding fields in the SMS tracking information. In addition, in order to facilitate the sender to record the business category related to the current SMS, the SMS tracking information may also include a business category identification field. When creating the SMS tracking information, the corresponding category identification is obtained based on the business of the current SMS to be sent and added to the business category identification field.
[0073] In this embodiment, the SMS tracking information constructs a unified SMS tracking data model, and the information tracked during the entire life cycle of the SMS is stored together according to the unified model. The content is comprehensive and centralized, and it is also easy to manage and use.
[0074] On the other hand, the present invention also provides a short message tracking system, see Figure 2 , Figure 2It is a principle block diagram of a text message tracking system according to an embodiment of the present invention. The text message tracking system 20 includes a text message module 201 and a short link module 202. The text message module 201 generates a text message ID for the text message to be sent, submits the text message to the text message provider, receives the response code returned by the text message provider, the receipt information of the text message reaching the user and / or the user's reply information to the text message, and correspondingly records the sending status, reaching user status and / or reply status of the sent text message and the corresponding reply information. The short link module 202 generates a corresponding short link and short link code based on the business needs of the text message to be sent, and establishes a corresponding relationship between the text message ID and the short link / short link code; when receiving a resource request for a short link from a user, the corresponding text message ID is determined according to the short link / short link code in the resource request, and the corresponding text message ID is recorded when recording the user behavior log.
[0075] See also Figure 3 , Figure 3 Schematic diagram of the system architecture of the SMS tracking process according to an embodiment of the present invention. Figure 4 , Figure 4 This is a schematic diagram of the data processing flow in the SMS tracking process according to an embodiment of the present invention. In this embodiment, a company divides the company's business into different business groups from the perspectives of management and operation, and each business group initiates its own corresponding business marketing activities according to business needs. This embodiment takes one of the business groups as an example, and the business group has initiated multiple business marketing activities according to business needs. When a business marketing activity has just been created, in order to promote the activity to users, the business group sends marketing SMS to users. Combined with Figure 3 and Figure 4 , the SMS sending process and its tracking process are described as follows:
[0076] In step S301, the business group member sends a short message sending request to the short message module 201 in the tracking system 20 through the sending terminal 10, and transparently transmits various parameters to the short message module 201 through the short message sending request. The parameters include, for example, the information page link of the activity, the sender ID, the receiver ID, the business tracking parameters, the business type, etc. Among them, the business tracking parameters are, for example, the information that the business group wants to track, which can be customized by the sender, such as activity batches, account information, user device information, IP address and other data, etc. The business type can represent a specific business group.
[0077] Step S302: After receiving the SMS sending request, the SMS module 201 generates an SMS ID for the SMS to be sent.
[0078] Step S303, the SMS module 201 sends a short link request to the short link module 202 according to the business requirements. The short link request includes the activity information page link, business tracking parameters and SMS ID.
[0079] Step S304, after receiving the short link request, the short link module 202 generates a corresponding short link code based on the active information page link, and then concatenates the domain name to obtain the short link, and establishes a corresponding relationship between the SMS ID, business tracking parameters and the short link / short link code. In this embodiment, the short link, short link code and its corresponding SMS ID are stored locally in the short link module 202 in the form of a corresponding table, but it can be known that it can also be stored in the data module 203, and when necessary, request or actively query the data module 203.
[0080] Step S305, the short link module 202 returns the short link to the SMS module 201. In one embodiment, for the SMS module 201 and the short link module 202, each SMS sending request is processed as a task, and each task has a corresponding identifier, so when sending information to each other, the corresponding task identifier is carried therein, or the SMS ID is used as an identifier, so when the short link module 202 returns the short link to the SMS module 201, it carries the corresponding task identifier or SMS ID to facilitate the SMS module 201 to identify which SMS the short link it has received corresponds to.
[0081] Step S306: After receiving the short link, the SMS module 201 adds the short link to the SMS.
[0082] Step S307, the SMS module 201 calls the SMS submission interface of the SMS provider 30 to submit the SMS to it.
[0083] Step S308, after successfully receiving the SMS, the SMS provider 30 creates a unique response code msgID for the SMS, returns a submission response message to the SMS module 201, and carries the response code therein.
[0084] After submitting the SMS, the SMS module 201 monitors the information returned from the SMS provider 30 .
[0085] Step S309, after receiving the submission response information returned by the SMS provider, the SMS module 201 extracts the response code and stores it locally. The SMS module 201 creates SMS tracking information for the SMS, and stores the SMS ID, sender ID, receiver ID, service tracking parameters, service type and other information of the SMS in corresponding fields.
[0086] Step S310 , the SMS module 201 stores the SMS tracking information in the data module 203 .
[0087] Step S401, after successfully receiving the SMS, the SMS provider 30 will, after content inspection, traffic monitoring and other processing, assign the SMS content to the operator channel matching the destination of the target number, and send the SMS to the operator 40 by calling the operator's SMS interface.
[0088] Step S402, after receiving the text message, the operator 40 verifies the status of the target number, confirms whether the target number is online and can receive text messages (such as the user has no outstanding payments, the service is not shut down, etc.), and routes the text message to the corresponding base station or network node in the roaming area according to the destination and location of the target number, and pushes the text message to the recipient's receiving terminal 50.
[0089] Step S403, after successfully receiving the SMS, the receiving terminal 50 sends a reach notification to the operator 40. Similarly, when the recipient replies to the message, the reply message is sent back to the operator 40.
[0090] Step S404: After receiving the reach notification, the operator 40 sends the reach notification to the SMS provider 30. When the operator 40 receives the reply information from the recipient, it sends the reply content to the SMS provider 30.
[0091] Step S311, after receiving the contact notification sent by the operator 40, the SMS provider 30 sends a receipt message to the SMS module 201 indicating that the SMS has reached the user, and carries a response code in it. When receiving the reply content sent by the operator 40, the SMS provider 30 sends a reply message to the SMS module 201 indicating that the SMS has been replied, and carries a response code and reply content in it.
[0092] Step S312, after receiving the receipt information indicating that the SMS has reached the user, the SMS module 201 extracts the response code therefrom and searches for the corresponding SMS ID based on the response code.
[0093] Step S313, the SMS module 201 interacts with the data module 203, and marks the status of the corresponding SMS according to the SMS ID, such as the reaching user status and the reply status. That is, the marking of the reaching user status and / or the reply status and reply content in the SMS status field in the SMS tracking information.
[0094] Step S405 , when the recipient clicks on the short link in the text message, the receiving terminal is connected to the short link module 202 .
[0095] Step S314, the short link module 202 parses the short link to obtain the short link code, decodes it to obtain the corresponding business long link address, redirects the user's resource request to the resource server 60 corresponding to the business long link address, and simultaneously records the user's click behavior data. Specifically, the short link module 202 extracts the short link code from the short link, and decodes it according to the corresponding decoding rule to obtain the corresponding original link. The corresponding SMS ID and business tracking parameters are found in the corresponding table of the stored short link short link code, business tracking parameters, and SMS ID. When recording the user's click behavior data, the SMS ID is added to the log. In one embodiment, when redirecting the user's resource request to the resource server 60 corresponding to the business long link address, the SMS ID and business tracking parameters can also be sent to the resource server 60. After the resource server 60 establishes a connection with the receiving terminal 50, the behavior data of the recipient on the corresponding page is collected based on the business tracking parameters, and a corresponding relationship between the collected data and the SMS ID is established, or the collected data is sent to the data module 203.
[0096] Optionally, the SMS module 201 may also create the SMS tracking information of the SMS when receiving the SMS sending request in step S302. Or the SMS tracking information of the SMS is created by the data module 203. For example, the SMS tracking information of the SMS is created when the SMS ID, business tracking parameters and the short link code sent by the short link module 202 are received, and then the corresponding status is identified in the corresponding field in the SMS tracking information of the SMS according to the SMS status sent by the SMS module.
[0097] In one embodiment, the SMS tracking information created after the SMS is successfully submitted to the SMS provider 30 is as follows:
[0098]
[0099]
[0100] In this embodiment, the field name is before the colon, the corresponding field data is after the colon, and the explanation of the current field is after / / . x represents any number or character, and the business tracking parameter is a specific embodiment. In this embodiment, the business tracking parameter field includes two parameters with a parent-child relationship, and of course, other parallel parameters can also be used. The number and content of the parameters are not limited and are determined by business personnel according to tracking needs.
[0101] In the aforementioned step S304, the corresponding relationship obtained by the short link module 202 after creating the short link is, for example:
[0102]
[0103] In step S314, when the short chain module 202 finds the corresponding SMS ID and business tracking parameters based on the short chain code, it records the following information in the log:
[0104]
[0105]
[0106] The data module 203 in the present invention can be a data storage device for data storage, such as a data table. The data module 203 can also be a device with data processing capabilities, such as a large data processing device, which can interact with other modules, receive data and requests from other modules, and store and search data at their request.
[0107] In addition, when generating a short link code, the short link module 202 can encode the original link according to certain encoding rules. For example, the short link code is set to 6 bits and encoded in base 62, that is, 26 uppercase letters, 26 lowercase letters and 10 digits, a total of 62 characters, to encode the original link to obtain a 6-bit short link code, such as "2idGeZ" in the above example. After obtaining the short link code, it is concatenated with the short domain name to obtain a short link, such as " http: / / xxx.com / 2idGe ". When the recipient clicks on the short link, the short link code is extracted from the short link, and the corresponding original link is decoded according to the corresponding decoding rules, and a connection is established with the corresponding resource server through the short link module 202. The resource server sends a response resource to the receiving terminal, usually HTML code. The receiving terminal parses the HTML code and gradually loads the resources in the page, such as CSS styles, JavaScript scripts, and pictures. After the page rendering is completed, the recipient user can see the complete page content pointed to by the link. If the page contains interactive elements (such as buttons, forms, etc.), the user can continue to interact with the page. These interactive behaviors (such as clicking to register, purchasing goods) will trigger further processing by the resource server.
[0108] The SMS tracking method provided by the present invention connects the entire life cycle of SMS in series, which can realize unified data entry, facilitate data management and analysis, and provide a comprehensive and three-dimensional data model for business products, thereby facilitating accurate screening of user groups. In addition, the sender of the SMS can customize the indicator data of interest, such as parameters with task id, activity id parameters, user id parameters, etc., which has strong scalability to meet the observation needs of multi-dimensional business indicators.
[0109] In another aspect, the present invention further provides an electronic device, see Figure 5 , Figure 5It is a schematic diagram of the hardware structure principle of an electronic device according to an embodiment of the present invention. The electronic device can be implemented as a server or other various terminal devices, such as a desktop personal computer, a tablet computer, a laptop computer, a mobile phone, etc., which includes a processor 601 and a memory 602. The memory 602 stores a program instruction set. When the processor 601 executes the program instruction set on the memory 602, the aforementioned SMS tracking method is implemented.
[0110] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0111] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.
[0112] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the SMS tracking method provided by the present invention.
[0113] In one example, the electronic device may further include a communication interface 603 and a bus 604. The processor 601, the memory 602, and the communication interface 603 are connected via the bus 604 and communicate with each other.
[0114] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiment of the present invention.
[0115] Bus 604 includes hardware, software or both, and the components of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 604 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0116] The present invention also provides a computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions can be executed by a processor to implement any of the SMS tracking methods in the aforementioned embodiments. The computer-readable storage medium can be any medium that can tangibly contain or store computer-executable instructions for use by or in combination with an instruction execution system, device, and apparatus. The storage medium can be a transient computer-readable storage medium or a non-transient computer-readable storage medium. Non-transient computer-readable storage media may include, but are not limited to, magnetic storage devices, optical storage devices, and / or semiconductor storage devices. Examples of such storage devices include, for example, magnetic disks, optical disks based on CD, DVD, or Blu-ray technology, and persistent solid-state memories such as flash memory, solid-state drives, and the like.
[0117] The present invention also provides a computer program product, which includes a set of computer program instructions, and when the computer program instruction set is executed by a processor, any of the SMS tracking methods in the above embodiments is implemented. The computer program product includes but is not limited to application installation packages published on websites and application stores, application plug-ins, and small programs that can be run in certain applications.
[0118] The above embodiments are only used to illustrate the present invention, but not to limit the present invention. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the scope of the present invention. Therefore, all equivalent technical solutions should also fall within the scope of the present invention.
Claims
1. A method for tracking short messages, characterized in that: include: Generate SMS ID for the SMS to be sent; Generate a corresponding short chain code and a corresponding short link based on the business requirements of the SMS to be sent, and establish a corresponding relationship between the SMS ID and the short link / short chain code; Fill in the short link in the SMS content and submit the SMS to the SMS provider; monitoring the SMS provider's submission response information; In response to the SMS provider including a response code indicating successful submission of the SMS, the corresponding relationship between the response code and the SMS ID is recorded and the status of the SMS is marked as a successfully sent status; Monitor the receipt information returned by the SMS provider indicating that the SMS has reached the user and the recipient's reply information to the SMS; In response to receiving a receipt message from a short message provider indicating that the short message has reached the user, extracting a response code carried in the receipt message, finding a short message ID corresponding to the response code based on the response code, and marking the status of the short message as reaching the user; In response to receiving the reply information of the recipient to the SMS returned by the SMS provider, extracting the response code carried in the reply information, finding the SMS ID corresponding to the response code based on the response code, marking the status of the SMS as the reply status and storing the reply information; Monitor the receiver's resource requests for the short link; In response to receiving a resource request for a short link from a recipient, extracting a corresponding short link / short chain code from the resource request; Determine the SMS ID corresponding to the short link / short chain code based on the correspondence between the SMS ID and the short link / short chain code; as well as When recording the user behavior log based on the receiver's resource request for the short link, the corresponding SMS ID is recorded.
2. The method according to claim 1, characterized in that When the sender sets a business tracking parameter for the SMS to be sent, a one-to-one correspondence between the SMS ID, the business tracking parameter and the short link / short chain code is established; Correspondingly, when determining the SMS ID corresponding to the short link / short chain code, the corresponding business tracking parameters are also determined; when recording the user behavior log, the corresponding SMS ID and business tracking parameters are recorded.
3. The method according to claim 2, characterized in that Further including: Create SMS tracking information, which includes at least an SMS ID field, a business tracking parameter field and an SMS status field; correspondingly, store the generated SMS ID in the SMS ID field, store the business tracking parameters in the business tracking parameter field, and mark the successful sending status, user reaching status and / or reply status in the SMS status field.
4. The method according to claim 3, characterized in that The SMS tracking information also includes a sender ID field and a receiver ID field; correspondingly, the sender ID and receiver ID provided by the sender are added to the corresponding fields in the SMS tracking information respectively.
5. The method according to claim 3, characterized in that: The SMS tracking information also includes a service category identification field. Correspondingly, the service category identification information provided by the sender is added to the service category identification field.
6. The method according to claim 3, characterized in that The business tracking parameters include a plurality of parallel parameters and / or a plurality of parameters having a parent-child relationship.
7. A text message tracking system, characterized in that: include: The SMS module is configured to generate an SMS ID for the SMS to be sent, submit the SMS to the SMS provider, receive the response code returned by the SMS provider, the SMS reaching the user receipt information and / or the user's reply information to the SMS, and correspondingly record the sending success status, reaching user status and / or reply status of the sent SMS and the corresponding reply information; as well as The short link module is configured to generate a corresponding short link code and short link based on the business requirements of the SMS to be sent, and establish a corresponding relationship between the SMS ID and the short link / short link code; When a resource request for a short link is received from a user, the corresponding SMS ID is determined according to the short link / short chain code in the resource request, and the corresponding SMS ID is recorded when recording the user behavior log based on the recipient's resource request for the short link.
8. An electronic device comprising a processor and a memory, characterized in that: The memory stores a computer program instruction set, and when the processor executes the computer program instruction set on the memory, the text message tracking method described in any one of claims 1-6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program instruction set, and when the computer program instruction set is executed by the processor, the text message tracking method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that It includes a computer program instruction set, which, when executed by a processor, implements the text message tracking method described in any one of claims 1-6.
Citation Information
Patent Citations
System and method for monitoring short message touch effect
CN110109660A