A/B test with Google Analytics

Updated 3 weeks ago by Enrico

A/B Split Test is a tool for increasing confidence in the decisions you make about your website or your landbots. It allows you to scientifically test and validate hypotheses around your goals. 

Google Analytics' "Experiments" tool makes it simple to setup A/B Split Tests on any website using Google Analytics (GA). Setting up Experiments in Google Analytics only takes a few seconds.

First of all, log into your Google Analytics account and select Behavior > Experiments.

To create your first experiment, click the button that says Create Experiment on the top left of your window:

A new window will open, here you will need to give a name to your experiment: 

In Objective you can set an identifiable outcome to track results against and determine a #winning variation.

Step 1: Choose an experiment objective

Here you have three options:

● Select an existing Goal (like opt-ins, purchases, etc.)
● Select a Site Usage metric (like bounce rate)
● Create a new objective or Goal (if you don’t have one set-up already, but want to run a conversion-based experiment)

The selection depends completely on why you’re running this test in the first place.

Step 2: Configure your experiment

At this stage you should have your webpages/landbots ready for the experiment.

In order to configure your experiment you’ll need to indicate which is your original Webpage/Landbot and the variant/s you want to test. Once you have your url’s and variant names, click on Next step.

Step 3: Setting up our experiment code

Now we will need to add the script code to your page (or your Landbot). If you want to test with a previous landing page, you will insert this code in your HTML Head section, but if you want to test with 2 or more chatbot versions, you will need to insert this code into your Landbot Head section:


Important! You will only add this code into your original webpage/landbot, not in the variant landbots.

Once done this, click Next Step back in Google Analytics to have them verify if everything is fine. 

After double checking your work, you should see this:

And now you’re ready to go!

How did we do?