A cookie-based label-based AB testing method and system

Through the cookie-based label AB testing method, user characteristic data is collected and encrypted and written into cookies on the client, which solves the problem of strong randomness in user diversion in traditional A/B testing and achieves a more purposeful user experience diversion and AB test optimization ensures the switching of user groups with different experiences.

CN111475365BActive Publication Date: 2024-09-03NANJING XINBEI JINFU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911260986.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-10
Publication Date
2024-09-03
Estimated Expiration
2039-12-10

AI Technical Summary

Technical Problem

Traditional back-end-based A/B testing is highly random when users are diverted, and it is difficult to accurately determine the target group, resulting in a mismatch between the user experience and the expected strategy, affecting the testing effect.

Method used

Adopt a cookie-based tag AB testing method to collect user characteristic data, construct tag data, select and configure tag parameter strategies, encrypt and write cookies on the client side based on user characteristic values, and decrypt the matching strategy on the server side to divert user requests , to achieve more accurate user experience offloading.

Benefits of technology

A more purposeful user experience diversion has been achieved. The website can decide which users will experience new features first and obtain corresponding experience feedback. It has optimized the AB testing method and flexibly configured label parameter strategies through the grayscale forwarding system to achieve different user experiences. Group switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111475365B
    Figure CN111475365B
Patent Text Reader

Abstract

The present invention discloses a cookie-based label-based AB testing method, which is characterized by comprising: step one, collecting user feature data; step two, selecting and configuring label parameter strategies; step three, obtaining user feature tags and writing them into cookies; step four, diverting user requests according to label parameter strategies; and step five, returning different request responses according to user classification results. In order to achieve a more purposeful forwarding of user features based on labels, the website can decide which part of the users will experience new functions first, and obtain the corresponding experience feedback from the experiencers; the present invention optimizes the AB testing method, and flexibly configures the label parameter strategy through the grayscale forwarding system to achieve the switching of different experience user groups.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer testing, and in particular to a cookie-based label-based AB testing method and system. Background Art

[0002] With the continuous development and progress of the current information society, more and more people are accustomed to online shopping. For sellers, user experience is always one of the most important things. In order to continuously improve the user experience and sense of belonging, sellers need to constantly modify software functions based on user opinions or subjective thinking, but arbitrarily changing a perfect landing page is a very risky thing.

[0003] In the design and development of websites and mobile products, as well as in the operation of Internet products, website designers often face the choice of multiple product design and operation solutions, such as the choice of a background image, the appropriate size or height. The traditional solution is usually a collective discussion and voting, or an expert or leader and other authoritative figures to make the final decision. When it is really impossible to decide, a random solution is selected to go online. Although the traditional solution is effective in most cases, A / B testing is a better way to solve such problems. The so-called A / B test, in simple terms, is to formulate two solutions (such as two pages) for the same goal, let some users use solution A, and the other part of users use solution B, record the user's usage, and see which solution is more suitable. Traditional A / B testing is generally based on server-side diversion, that is, back-end A / B testing (Back-end AB test). When the user's request reaches the server, the server returns different versions to different users according to the diversion rules; usually, the diversion rules based on cookies mostly use the last digit of the cookie ID as the standard for dividing users, for example, odd numbers display version A, and even numbers display version B. This random diversion makes it difficult to clearly determine the specific version assigned to the target personnel, resulting in the mismatch between the functions or products experienced by the target population and the expected strategy, which in turn seriously affects the test results. Summary of the invention

[0004] The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art, that is, the deficiencies of the traditional A / B test in the server-side diversion, that is, the back-end A / B test (Back-end AB test); and to provide a more complete Cookie-based AB test method and system.

[0005] In order to solve the above technical problems, the present invention provides a cookie-based label-based AB testing method, which is characterized by the following specific steps:

[0006] Step 1: Collection of user feature data: Collect user basic data stored in the application (software system) and embedded data of the business function page to construct label data, wherein the user basic data refers to data describing user identity information; the embedded data is data generated in the process of obtaining user behaviors through embedded data on the function page, wherein the user behaviors include click behaviors, browsing behaviors, collection behaviors, and ordering behaviors; extract user basic data from the user database of the application (software system), count embedded data according to preset periods to form periodic behavior data, and aggregate user basic data and periodic behavior data into label data; classify the label data according to preset labels to form label values ​​corresponding to each label;

[0007] Use the tag value as the user characteristic value to mark each user;

[0008] Step 2: Select and configure the label parameter strategy. The specific process includes:

[0009] Step 2-1: Obtain the expected number of users: Obtain the preset user conditions for using the new content of the software system, and according to the tag values ​​specified by the user conditions, filter out users whose user feature tag values ​​meet the user conditions and count them as the expected number of users;

[0010] Step 2-2: Get the number of trial users: Get the tag with the most tag values ​​in the user conditions as the trial tag, and the other tags as fixed tags; while ensuring that the fixed tags and the corresponding tag values ​​remain unchanged, traverse each tag value of the trial tag, and classify each tag value of the trial tag and the tag values ​​corresponding to all fixed tags as trial user conditions; get each trial user condition, and according to the tag value specified by the trial user condition, filter the users whose user feature tag values ​​meet the trial user condition and count their number as the number of trial users;

[0011] Step 2-3: Calculate the ratio of the number of trial users to the expected number of users, and determine the diversion strategy based on the ratio; if the ratio exceeds the preset value, select the trial user condition with the ratio exceeding the preset value the most as the final diversion condition; if none of the ratios exceeds the preset value, sort them according to the ratios, and add up the ratios with the highest ranking in turn until the accumulated value exceeds the preset value, and select the trial user condition corresponding to the accumulated ratio as the final diversion condition;

[0012] The preset value is used to limit the minimum proportion of trial users among expected users; only if this proportion is exceeded, the final test result will not be affected;

[0013] Step 2-4: Based on the final diversion conditions, configure the request feedback data of the business system to form a label parameter strategy; the label parameter strategy specifically includes: marking user requests that meet the diversion conditions as expected requests; marking user requests that do not meet the label value requirements as unexpected requests; for expected requests, the server returns new content of the software system; for unexpected requests, the server returns old content of the software system;

[0014] Step 3: Obtain user feature tags and write them into cookies: After the application (software system) receives the message that the user has successfully logged in, it requests to obtain the user feature value based on the user's unique identifier; after the request is responded to, all user feature values ​​of the currently logged-in user are extracted, encrypted and written into the user cookie; the encryption method is to encrypt each feature value;

[0015] When the request is made to obtain the user feature value, the cookie submitted by the client needs to be obtained. When the request is responded to, the encrypted tag value is written into the cookie and returned to the client.

[0016] Step 4: Divert user requests according to the tag parameter strategy; when the server receives a user's request to access the business system, it obtains the cookie, decrypts the cookie, extracts the user feature tag value according to the tag set in the tag parameter strategy, and determines whether the user feature tag value is consistent with the tag value set in the tag parameter strategy.

[0017] If all of them are consistent and meet the set requirements, the user is classified as an expected user of the business system, and the expected user's request is the expected request; if part of them are consistent and do not meet the set requirements, the user is classified as an unintended user of the business system, and the unintended user's request is the unintended request;

[0018] Step 5: Return different request responses based on the user classification results: if it is an expected user, the new content of the business system is returned to the client; if it is an unexpected user, the old content of the business system is returned to the client.

[0019] In step 1, the basic data includes user registration information and user questionnaire information; the user questionnaire information is information provided by users on the use effect of the application (software system); the embedded data includes application function use data, page browsing data, favorite data, order data, and payment data;

[0020] The tags described in step 1 can be classified according to demographic attributes, social attributes, behavioral attributes, and preference attributes;

[0021] The labels described in step 1 can also be classified as classification labels, that is, labels with the same label values ​​are abstracted as classification labels.

[0022] In the user condition acquisition process of step 2-1, the acquisition also includes text acquisition and voice acquisition. After the voice acquisition is converted into text, the tag value contained in the text is obtained by matching the tag after word segmentation processing;

[0023] In the step 2-3, the preset value is set to 0.7;

[0024] In steps 2-4, the tag parameter strategy is written into the background configuration file, and when the user requests the software system, the configuration file is called to perform request diversion; when the tag parameter strategy is changed, the changed value of the tag and the tag value is obtained and passed into the configuration file to replace the original tag content in the configuration file.

[0025] In the step 3, when the request obtains the user feature value, it is necessary to obtain the Cookie submitted by the client. When the request is responded to, the encrypted tag value is written into the Cookie and returned to the client. The tag query resquest interface is called. The request interface also defines a getCookies() method, which is used to obtain the Cookie submitted by the client, so that the tag parameter encrypted string can be added to the user cookie. The response interface is called. The interface defines an addCookies() method, which is used to add a corresponding Set-Cookie header field in its response header; addCookies("key1":"value1","key2":"value2","key3":"value3"), where value1, value2, and value3 are all strings reversibly encrypted using AES.

[0026] In step 3 and step 4, the Cookie encryption method and decryption method use the AES reversible encryption algorithm.

[0027] The new content and old content in step 5 include system version, business function module and web page design content.

[0028] A cookie-based label-based AB testing system, characterized by comprising: a user system, a label collection system, a grayscale forwarding system, and a business system; the user system submits user information data to the label collection system to construct a user feature label, and when the user system issues a request to access the business system, the user feature label is obtained from the label collection system and written into the cookie; the grayscale forwarding system obtains label parameters and parameter values ​​from the label collection system to configure the label parameter strategy, and when a cookie containing a user feature label is obtained, the user feature label value in the cookie is extracted and matched with the label value in the label parameter strategy; the business system feeds back different request responses to the user system according to the label value matching result;

[0029] The label system aggregates the acquired user data into label data, and annotates user features with the label data and stores them in a database; the user system is used to write the user features acquired from the label system into the user Cookie; the grayscale forwarding system is used to control the generation, effectiveness and termination of the label parameter policy. When the label parameter policy takes effect, the grayscale forwarding system parses the user Cookie to obtain the label data identifying the user features, and diverts the user requests initiated by the user system according to the label data specified in the label parameter policy and the matching and mismatching of the label data; the business system includes a new content module and an old content module, and feeds back the new content and the old content to the user system according to the request diversion results of the grayscale forwarding system.

[0030] The beneficial effects of the present invention are as follows: (1) Compared with a simple and crude forwarding strategy, forwarding based on user characteristics of tags is more purposeful. The website can decide which users should experience new functions first and obtain corresponding experience feedback from the users.

[0031] (2) The present invention optimizes the AB test method and flexibly configures the label parameter strategy through the grayscale forwarding system to achieve the switching of user groups with different experiences. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a flowchart of a cookie-based label-based AB testing method in an embodiment of the present invention;

[0033] Figure 2 A flow chart for generating a label parameter strategy in an AB testing method in an embodiment of the present invention;

[0034] Figure 3 The figure is a schematic diagram of the structure of a cookie-based label-based AB testing system in an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The present invention will be further described below in conjunction with the accompanying drawings and exemplary embodiments:

[0036] Cookie is a client technology. The program writes each user's data to the user's browser in the form of a cookie. When the user uses the browser to access the web resources on the server, he will take his own data with him. In this way, the web resources process the user's own data.

[0037] To facilitate the management of tags and the positioning of tags, the tags formed in the embodiments of the present invention are classified into demographic, social, usage behavior, consumption behavior, and potential demand for preference attributes according to population attributes, social attributes, behavioral attributes, and preference attributes; the demographic identifier directly identifies the personal attributes of the user, and the tags included are age, gender, date of birth, location, education, etc.; the social attributes identify the social relationships of the user, and the tags included are marital status, family size, number of children, occupation, industry, annual family income, RV status, etc.; the usage behavior identifies the software usage of the user, and the tags included are access time period, access frequency, access duration, access device, APP version, WeChat binding, etc.; consumption behavior is used to identify the user's consumption willingness, and the tags included are cumulative consumption, the most recent consumption date, annual / monthly consumption amount (to be determined), the maximum single consumption, consumption frequency, consumption brand, consumption product (category), consumption time period, evaluation average score, etc.; the preference attribute identifies the user's behavioral preference, and the tags included are interest preference, browsing preference, collection preference, interaction preference, brand preference, sharing preference, etc.

[0038] The tag parameter strategy in the embodiment of the present invention is stored in the background as a configuration file; the configuration file is written into the tag.conf file of the Nginx background, the tag.conf file is stored in the conf.d file under the Nginx directory, and is associated and loaded through include / etc / nginx / conf.d / *.conf in nginx.conf; each time the front end modifies the tag parameter strategy, the new tag parameter strategy can be made effective by modifying the tag.conf file, saving the tag.conf file, and restarting Nginx to load the tag.conf file, and feedback to the front end is successful;

[0039] After the user completes the login to the software application, the user member ID is obtained to assemble a request to obtain the user feature tag value, and the tag query resquest interface is called. The getCookies() method is defined in the Request interface to obtain the cookie information of the currently logged-in user; when waiting for the request response, the Response interface is called. The addCookies() method is defined in the Response interface to add the Set-Cookie header field to the request response header and write the obtained user feature tag value into the cookie;

[0040] According to the tag parameter strategy, user requests are diverted and forwarded; the cookies in the user requests are parsed, the user features in the cookies are obtained, and the judgment is made based on the matching with the tag parameter strategy configured in tab.conf. The number of user feature tag values ​​carried in the user cookies must be greater than or equal to the number of tag values ​​specified in the tag parameter strategy. It is only necessary to judge whether the tag values ​​in the tag parameter strategy and the user feature tag values ​​are consistent. If all are consistent, the standard user request is the system expected user request; if any of the results are inconsistent, the marked request is a user request not expected by the system; for the system expected user request, the new function module of the business system is returned; for the user request not expected by the system, the old function module of the business system is returned;

[0041] When a new function is launched on the website, a specific group of people is designated to experience the new function in the hope of feedback from this group of people. The website first defines the characteristics of the group that experiences the new function, then converts the characteristics of the group into tag requirements, decomposes them into various tags and tag values, and writes the tags and tag values ​​obtained from the decomposition into the tag parameter strategy for configuration;

[0042] Figure 1 This is a flowchart of a cookie-based label-based AB testing method in an embodiment of the present invention, and the specific steps include:

[0043] Step S1: Collection of user feature data: Collect user basic data stored in the application (software system) and embedded point data of the business function page to construct label data. The user basic data refers to data describing user identity information, including user registration information and user questionnaire information; the user questionnaire information is information feedback from users on the use effect of the application (software system); including gender, age, education, occupation, place of residence, etc. The embedded point data is data generated in the process of user behavior acquired by embedding points on the function page, including click lines, browsing behavior, collection behavior, ordering behavior, etc. The embedded point data includes application function usage data, page browsing data, collection data, order data, and payment data;

[0044] Extract user basic data from the application (software system) user database, collect the buried data according to the preset period to form periodic behavior data, and aggregate the user basic data and periodic behavior data into label data; classify the label data according to the preset labels to form label values ​​corresponding to each label; and use the label value as the user feature label value to mark each user;

[0045] Step S2: Selection and configuration of label parameter strategy, see Figure 2 This is a flow chart of label parameter strategy generation in an embodiment of the present invention. The specific process includes:

[0046] Step S2-1: Obtaining the expected number of users: Obtaining the preset user conditions for using the new content of the software system, and filtering users whose user feature tag values ​​meet the user conditions according to the tag values ​​specified by the user conditions and counting them as the expected number of users; data acquisition forms also include text acquisition and voice acquisition. After the voice acquisition is converted into text, it is segmented and matched with the tag to obtain the tag value contained in the text;

[0047] Step S2-2: Obtain the number of trial users: obtain the tag with the most tag values ​​in the user conditions as the trial tag, and the other tags as fixed tags; while ensuring that the fixed tags and the corresponding tag values ​​remain unchanged, traverse each tag value of the trial tag, and classify each tag value of the trial tag and the tag values ​​corresponding to all fixed tags as trial user conditions; obtain each trial user condition, and according to the tag value specified by the trial user condition, filter the users whose user feature tag values ​​meet the trial user condition and count their number as the number of trial users;

[0048] Step S2-3: Calculate the ratio of the number of trial users to the expected number of users, and determine the diversion strategy based on the ratio; if the ratio exceeds the preset value, select the trial user condition whose ratio exceeds the preset value the most as the final diversion condition; if none of the ratios exceeds the preset value, sort them according to the ratios, and accumulate them from the highest ranked ratio in turn until the accumulated value exceeds the preset value, and select the trial user condition corresponding to the accumulated ratio as the final diversion condition;

[0049] The preset value is used to limit the minimum proportion of trial users in expected users. In the embodiment of the present invention, it is set to 0.7. As long as the ratio exceeds 0.7, it will not affect the final test effect.

[0050] Step S2-4: Based on the final diversion conditions, the request feedback data of the business system is configured to form a label parameter strategy; the label parameter strategy specifically includes: marking user requests that meet the diversion conditions as expected requests; marking user requests that do not meet the label value requirements as unexpected requests; for expected requests, the server returns new content of the software system; for unexpected requests, the server returns old content of the software system;

[0051] Write the tag parameter strategy into the background configuration file, and call the configuration file to perform request diversion when the user requests the software system; when changing the tag parameter strategy, obtain the tag and the changed value of the tag value and pass it into the configuration file to replace the original tag content in the configuration file;

[0052] Step S3: Obtain user feature tags and write them into cookies: After the application (software system) receives the message that the user has successfully logged in, it requests to obtain the user feature value based on the user's unique identifier; after the request is responded to, all user feature values ​​of the currently logged-in user are extracted, encrypted and written into the user cookie; the encryption method is to perform AES reversible encryption on each feature value; since encryption and decryption are performed in different types of systems, encryption is completed in the user system of the client and decryption is completed in the background system, the AES encryption algorithm has the best security performance.

[0053] When the request obtains the user feature tag value, it is necessary to obtain the Cookie at the same time. When the encrypted tag value is written into the Cookie in the request response, the tag query resquest interface is called. The request interface also defines a getCookies() method, which is used to obtain the Cookie submitted by the client and add the user feature value to the user cookie after encryption; the response interface is called, and an addCookies() method is defined in the interface. It is used to add a corresponding Set-Cookie header field in its response header; addCookies("key1":"value1","key2":"value2","key3":"value3"), where value1, value2, and value3 are all strings reversibly encrypted using AES.

[0054] Step S4: Divert user requests according to the tag parameter strategy; when the server receives a request from a user to access the business system, it obtains the cookie, decrypts the cookie, extracts the user feature tag value according to the tag set in the tag parameter strategy, and determines whether the user feature tag value is consistent with the tag value set in the tag parameter strategy.

[0055] If all of them are consistent and meet the set requirements, the user is classified as an expected user of the business system, and the expected user's request is the expected request; if part of them are consistent and do not meet the set requirements, the user is classified as an unintended user of the business system, and the unintended user's request is the unintended request;

[0056] Step S5: according to the classification result of the user, different request responses are returned: if it is an expected user, the new content of the business system is returned to the client; if it is an unexpected user, the old content of the business system is returned to the client; the content in step 5 includes system version, business function module, and web page design content;

[0057] Figure 3The present invention is a structural diagram of a label-based AB testing system based on user cookies in an embodiment of the present invention, which specifically includes: a user system, a label collection system, a grayscale forwarding system, and a business system; the label system is used for label construction, specifically including a user information collection module, a label modeling module, and a user label storage module. The label system aggregates the user data obtained by the user information collection module into label data, and stores the user features in the database with the label data; the user system is used to write the user features obtained from the label system into the user cookie; the grayscale forwarding system is used to control the generation, effectiveness and termination of the label parameter policy, including a label parameter policy management module, a cookie parsing module, and a request diversion module; when the label parameter policy takes effect, the grayscale forwarding system parses the user cookie to obtain the label data identifying the user features, and diverts the user request initiated by the user system according to the label data specified in the label parameter policy and the label data matching and mismatching; the business system includes a new content module and an old content module, and feeds back the new content and the old content to the user system according to the request diversion result of the grayscale forwarding system;

[0058] The user system obtains the user ID, provides user information data, and encrypts and stores tag parameters in the user cookie. The user system provides user data to the tag collection system. At the same time, after the user system obtains the user member ID, it informs the tag collection system to obtain the user tag data. Finally, the user system carries a request with a cookie containing a feature tag to access the grayscale forwarding system.

[0059] The label collection system performs user data collection, user label modeling, and user label storage. The label collection system obtains user information data of the user system to model user labels, and after completion, stores user labels in the database; the label collection system provides grayscale label parameters and parameter values ​​for the grayscale forwarding system for label parameter strategy configuration.

[0060] The grayscale forwarding system performs the functions of tag parameter policy configuration, cookie password parsing, and forwarding interface requests. The grayscale forwarding system obtains tag parameters and parameter values ​​from the tag collection system for configuring tag parameter policy configuration. The grayscale forwarding system obtains the cookie containing the user tag request from the user system, performs decryption judgment, and finally forwards it to the business system according to the tag parameter policy configuration file.

[0061] The business system performs the function of providing new and old functional modules. When the request information carried by the user system is decrypted by the grayscale forwarding system after the cookie data is decrypted and the tag parameter policy configuration is hit, the business system request is forwarded to the new content module in the business system, and vice versa, it is forwarded to the old functional module in the business system.

[0062] The beneficial effects achieved by the present invention are as follows: compared with a simple and crude forwarding strategy, forwarding based on user characteristics of tags is more purposeful, and the website can decide which part of the users have priority in experiencing new functions and obtain corresponding experience feedback from the experiencers; the present invention optimizes the AB testing method, and flexibly configures the tag parameter strategy through the grayscale forwarding system to achieve switching of different experience user groups.

[0063] The above embodiments do not limit the present invention in any way. Any other improvements and applications made to the above embodiments in an equivalent transformation manner belong to the protection scope of the present invention.

Claims

1. A cookie-based label AB testing method, characterized in that: include: Step 1: Collection of user feature data: Collect basic user data stored in the application and embedded point data of business function pages to build label data. The basic user data refers to data describing user identity information; the embedded point data is data generated in the process of obtaining user behaviors through embedded points on function pages. The user behaviors include click behaviors, browsing behaviors, collection behaviors, and ordering behaviors; Extracting user basic data from the application user database, collecting statistics on the buried data according to a preset period to form periodic behavior data, and aggregating the user basic data and the periodic behavior data into label data; classifying the label data according to preset labels to form label values ​​corresponding to each label; Use the tag value as the user characteristic value to mark each user; Step 2: Select and configure the label parameter strategy. The specific process includes: Step 2-1: Obtain the expected number of users: Obtain the preset user conditions for using the new content of the software system, and according to the tag values ​​specified by the user conditions, filter out users whose user feature tag values ​​meet the user conditions and count them as the expected number of users; Step 2-2: Get the number of trial users: Get the tag with the most tag values ​​in the user conditions as the trial tag, and the other tags as fixed tags; while ensuring that the fixed tags and the corresponding tag values ​​remain unchanged, traverse each tag value of the trial tag, and classify each tag value of the trial tag and the tag values ​​corresponding to all fixed tags as trial user conditions; get each trial user condition, and according to the tag value specified by the trial user condition, filter the users whose user feature tag values ​​meet the trial user condition and count their number as the number of trial users; Step 2-3: Calculate the ratio of the number of trial users to the expected number of users, and determine the diversion strategy based on the ratio; if the ratio exceeds the preset value, select the trial user condition with the ratio exceeding the preset value the most as the final diversion condition; if none of the ratios exceeds the preset value, sort them according to the ratios, and add up the ratios with the highest ranking in turn until the accumulated value exceeds the preset value, and select the trial user condition corresponding to the accumulated ratio as the final diversion condition; The preset value is used to limit the minimum proportion of trial users in expected users; Step 2-4: configure the request feedback data of the business system based on the final diversion condition to form a label parameter strategy; the label parameter strategy specifically includes: marking user requests that meet the diversion condition as expected requests; marking user requests that do not meet the label value requirements as unexpected requests; for expected requests, the server returns new content of the software system; for unexpected requests, the server returns old content of the software system; Step 3: Obtain user feature tags and write them into cookies: After the application receives a message that the user has successfully logged in, it requests to obtain the user feature value based on the user's unique identifier; after the request is responded to, all user feature values ​​of the currently logged-in user are extracted and written into the user cookie after being encrypted; the encryption method is to encrypt each feature value; When the request is made to obtain the user feature value, the cookie submitted by the client needs to be obtained. When the request is responded to, the encrypted tag value is written into the cookie and returned to the client. Step 4: Divert user requests according to the tag parameter strategy; when the server receives a user's request to access the business system, it obtains the cookie, decrypts the cookie, extracts the user feature tag value according to the tag set in the tag parameter strategy, and determines whether the user feature tag value is consistent with the tag value set in the tag parameter strategy. If all of them are consistent and meet the set requirements, the user is classified as an expected user of the business system, and the expected user's request is the expected request; if part of them are consistent and do not meet the set requirements, the user is classified as an unintended user of the business system, and the unintended user's request is the unintended request; Step 5: Return different request responses based on the user classification result: if it is an expected user, the first content of the business system is returned to the client; if it is an unexpected user, the second content of the business system is returned to the client.

2. A cookie-based label-based AB testing method as claimed in claim 1, characterized in that: In step 1, the basic data includes user registration information and user questionnaire information; the user questionnaire information is information provided by users about the effect of using the application; the embedded data includes application function usage data, page browsing data, collection data, order data, and payment data; Classify the labels described in step 1 according to demographic attributes, social attributes, behavioral attributes, and preference attributes; The labels described in step 1 are classified as classification labels, that is, labels with the same label values ​​are abstracted as classification labels.

3. A cookie-based label-based AB testing method as claimed in claim 2, characterized in that: In the user condition acquisition process of step 2-1, text acquisition and voice acquisition are also included. After the voice acquisition is converted into text, the tag value contained in the text is obtained by matching the tag after word segmentation processing; In step 2-3, the preset value is set to 0.7; In steps 2-4, the tag parameter strategy is written into the background configuration file, and when the user requests the software system, the configuration file is called to perform request diversion; when the tag parameter strategy is changed, the changed value of the tag and the tag value is obtained and passed into the configuration file to replace the original tag content in the configuration file.

4. A cookie-based label-based AB testing method as claimed in claim 3, characterized in that: In the step 3, when the request obtains the user feature value, it is necessary to obtain the Cookie submitted by the client. When the request is responded to, the encrypted tag value is written into the Cookie and returned to the client. The tag query resquest interface is called. A getCookies() method is also defined in the request interface to obtain the Cookie submitted by the client. In this way, the tag parameter encrypted string can be added to the user cookie. The response interface is called. An addCookies() method is defined in the response interface to add a corresponding Set-Cookie header field in its response header; addCookies("key1":"value1","key2":"value2","key3":"value3"), where value1, value2, and value3 are all strings reversibly encrypted using AES.

5. A cookie-based label-based AB testing method as claimed in claim 4, characterized in that: In step 3 and step 4, the encryption method and decryption method of the Cookie both use the AES reversible encryption algorithm.

6. A cookie-based label-based AB testing method as claimed in claim 5, characterized in that: The first content and the second content in step 5 both include system version, business function module and web page design content.

7. A cookie-based label-based AB testing system operated according to the method of any one of claims 1 to 6, characterized in that include: User system, label collection system, grayscale forwarding system, business system; The user system submits user information data to the tag collection system to construct a user feature tag. When the user system issues a request to access the business system, the user feature tag is obtained from the tag collection system and written into the cookie. The grayscale forwarding system obtains tag parameters and parameter values ​​from the tag collection system to configure the tag parameter strategy. When a cookie containing a user feature tag is obtained, the user feature tag value in the cookie is extracted and matched with the tag value in the tag parameter strategy. The business system feeds back different request responses to the user system based on the tag value matching results; The labeling system aggregates the acquired user data into label data, and annotates user features with the label data and stores them in a database; The user system is used to write the user characteristics obtained from the tag system into the user cookie; The grayscale forwarding system is used to control the generation, effectiveness and termination of the label parameter policy. When the label parameter policy takes effect, the grayscale forwarding system parses the user cookie to obtain label data that identifies user characteristics, and diverts user requests initiated by the user system according to the label data specified in the label parameter policy and the matching and mismatching of the label data; the business system includes a new content module and an old content module, and feeds back the new content and the old content to the user system according to the request diversion results of the grayscale forwarding system.