Experiments let you A/B test changes on your site by showing different visitors different tags. You split your visitors into groups, assign different tags to each group, and compare how each group responds, so you can see which version works best.
An experiment divides your visitors into groups. You assign tags to those groups, and when a visitor reaches a page where those tags run, the experiment assigns the visitor to one group. The assignment is saved in the visitor's browser, so the visitor stays in the same group on return visits.
Visitors are assigned at random, based on the weight you give each group. For example, if an experiment has two groups split 3 to 1, a visitor has a 75% chance of landing in the first group and a 25% chance of landing in the second.
Instructions
Step 1: Configure an experiment
In Data Activation, go to Tags → Experiments.
Click + New experiment.
Give the experiment a name.
Add your experiment groups. Give each group a clear name, and set its weight to control how much of your traffic goes to it.
Click Create experiment to save the experiment.
Step 2: Assign a tag to an experiment group
You assign a tag to a group by adding an experiment condition to the tag. For how conditions work in general, see Tag targeting rules.
In Data Activation, navigate to Tags and select Pages.
Open the tag you want to test.
Click the pencil icon to configure rules.
Select the Experiment rule, then choose the experiment and the group this tag belongs to.
Save the rule, then publish your changes.
Step 3: Test your experiment groups
Go to the website you're setting the tags for.
To open the Tag status window, open the Developer tools in your web browser, go to Console, and paste
_st.debug.enable();to the Console. Note that you need to be logged in to the Data Activation platform to see the tag status details.
Alternatively, you can open the Tag status window through a browser bookmark: Save thejavascript:_st.debug.enable();code as a browser bookmark and open that bookmark when you’re on the website you’ve set up the tags for.Select Userdata to see which experiment groups you're assigned to. You can switch groups here to check that each one behaves as expected.