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.
It's the fastest way to add AB testing and personalization on top of Storyblok.
Learn more about the Croct + Storyblok integration by checking the resulting project repo or exploring the integration page.
Unlike currently available plugins, you can run experiments at the block level rather than the field level. Croct replaces static block content with dynamic content, allowing you to manage everything directly on the Storyblok UI.
Since it comes with built-in audience segmentation and analytics, there's no need to work on extra integrations with CDPs to segment visitors or analytics tools to gather insights.
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 blocks
- 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
Learn more about the Storyblok integration on the integration page.
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






