A/B testing with google analytics is supported out of the box with every Prismic repository. In order to use this, you will need to have a google analytics account and set up the website or app in your google analytics account.

You can learn more about how to set up a google analytics account here.

Activating an experiment

In order to activate an experiment in your repository, you first need to connect your Prismic repository to your google analytics account.

Note that you need to be administrator for your repository to access this feature.

Navigate to Settings / Experiments. Here you will be asked to connect your repository to your google account then: 

  1. Select your google account
  2. Select the google analytics account
  3. Update

After that, you'll be able to create your first experiment

Did this answer your question?