Storyblok CMS + AB testing
A template for running AB tests on a Storyblok project.

Introduction
Looking to add AB testing to your Storyblok-powered site?
This template brings experimentation to Storyblok with Croct, letting you run experiments on your content and analyze results without changing your CMS or integrating with other third-party analytics tools.
Unlike currently available plugins, you can run experiments at the component level rather than the field level. Croct replaces static component content with dynamic content, allowing you to manage everything directly on the UI while using Storyblok content as a fallback.
Using Croct, you get:
- AB testing support with real-time audience segmentation
- Built-in analytics and Bayesian analysis for every variant and experience
- Seamless compatibility with your existing Storyblok content
- A ready-to-use home hero you can render anywhere in your Storyblok site
This template is compatible with features available on the forever-free plan.
What's included
This template creates a simple home hero so you have something to experiment with right away:
-
A hero-section component and a home-hero slot with default content.
-
An audience targeting all users:
true -
An AB test that splits traffic evenly between two variants, with the difference in the hero heading and tagline:
- Variant A (baseline): One platform for modern teams
- Variant B: Ship faster with one platform
To wire the slot into your Storyblok-rendered page, follow the Storyblok integration tutorial.
Usage
Run the following command in your project to apply this template:
npx croct@latest use croct://integration/storyblok-ab-testingStart building in seconds
Paste the following command in your terminal and let the CLI do the rest.
npx croct@latest use croct://integration/storyblok-ab-testing






