GrowthBook is an open-source platform that seamlessly combines feature flagging and A/B testing in one solution. By integrating GrowthBook with Strapi, you can enhance your content management system with powerful experimentation capabilities. The platform builds a foundation for data-driven decisions throughout your organization, whether you're rolling out changes gradually or running complex multivariate tests.
GrowthBook shines with lightweight SDKs for real-time feature evaluation, statistical analysis engines, and integration with over 15 popular tools like Segment and Amplitude. If you're interested in exploring A/B testing further, check out A/B testing with Strapi for more insights. What sets GrowthBook apart is its reliability—handling more than 100 billion feature flag lookups daily while reducing engineering overhead. Teams across marketing, engineering, and product benefit from having one central system for all experimentation needs.
For all capabilities and implementation details, check the official documentation.
Strapi is the leading open-source headless CMS offering features, like customizable APIs, role-based permissions, multilingual support, etc. It simplifies content management and integrates effortlessly with modern frontend frameworks.
Explore the Strapi documentation for more details.
The out-of-the-box Strapi features allow you to get up and running in no time:
Learn more about Strapi 5 feature.
We are going to start by setting up our Strapi 5 project with the following command:
🖐️ Note: make sure that you have created a new directory for your project.
You can find the full documentation for Strapi 5 here.
npx create-strapi-app@latest serverYou will be asked to choose if you would like to use Strapi Cloud we will choose to skip for now.
Strapi v5.6.0 🚀 Let's create your new project
We can't find any auth credentials in your Strapi config.
Create a free account on Strapi Cloud and benefit from:
- ✦ Blazing-fast ✦ deployment for your projects
- ✦ Exclusive ✦ access to resources to make your project successful
- An ✦ Awesome ✦ community and full enjoyment of Strapi's ecosystem
Start your 14-day free trial now!
? Please log in or sign up.
Login/Sign up
❯ Skip After that, you will be asked how you would like to set up your project. We will choose the following options:
? Do you want to use the default database (sqlite) ? Yes
? Start with an example structure & data? Yes <-- make sure you say yes
? Start with Typescript? Yes
? Install dependencies with npm? Yes
? Initialize a git repository? YesOnce everything is set up and all the dependencies are installed, you can start your Strapi server with the following command:
cd server
npm run developYou will be greeted with the Admin Create Account screen.

Go ahead and create your first Strapi user. All of this is local so you can use whatever you want.
Once you have created your user, you will be redirected to the Strapi Dashboard screen.

Since we created our app with the example data, you should be able to navigate to your Article collection and see the data that was created for us.

Now, let's make sure that all of the data is published. If not, you can select all items via the checkbox and then click the Publish button.

Once all your articles are published, we will expose our Strapi API for the Articles Collection. This can be done in Settings -> Users & Permissions plugin -> Roles -> Public -> Article.
You should have find and findOne selected. If not, go ahead and select them.

Now, if we make a GET request to http://localhost:1337/api/articles, we should see the following data for our articles.

🖐️ Note: The article covers (images) are not returned. This is because the REST API by default does not populate any relations, media fields, components, or dynamic zones.. Learn more about REST API: Population & Field Selection.
So, let's get the article covers by using the populate=* parameter: http://localhost:1337/api/articles?populate=*

When you integrate GrowthBook with Strapi, it enables content teams to run experiments independently without developer intervention for each test. This powerful combo lets you make data-driven content decisions while taking advantage of Strapi's content management flexibility.
With your environment ready, follow these steps to integrate GrowthBook with Strapi:
npm install @growthbook/growthbook
At this point, you might find it helpful to check out other essential Strapi plugins that can enhance your project's capabilities.
Connect both systems with code like this example:
// Import GrowthBook
import { GrowthBook } from '@growthbook/growthbook';
// Initialize GrowthBook
const growthbook = new GrowthBook({
apiHost: "https://cdn.growthbook.io",
clientKey: "your-client-key", // Replace with your actual client key
trackingCallback: (experiment, result) => {
// Log experiment data
console.log(`Experiment ${experiment.key} - Variation ${result.variationId}`);
}
});
// Fetch features from GrowthBook
fetch("https://cdn.growthbook.io/api/features/your-client-key")
.then((res) => res.json())
.then((json) => {
growthbook.setFeatures(json.features);
});
// Use feature flags in your Strapi controllers
module.exports = {
async find(ctx) {
if (growthbook.isOn("new-listing-algorithm")) {
// Use new algorithm
return await strapi.query('api::product.product').findMany({
// New algorithm parameters
});
} else {
// Use old algorithm
return await strapi.query('api::product.product').findMany({
// Old algorithm parameters
});
}
}
};For frontend implementation, use GrowthBook's React SDK or other client libraries to show content variations based on your feature flags. If you're considering different API approaches, understanding REST and GraphQL integration can offer valuable insights.
By integrating GrowthBook with Strapi, your team can run experiments and collect performance data, helping you make smarter content decisions without needing developers for every change.
To further enhance your workflow, consider exploring productivity Strapi plugins that can streamline your development process.
If you have any questions about Strapi 5 or just would like to stop by and say hi, you can join us at Strapi's Discord Open Office Hours Monday through Friday at 12:30 pm - 1:30 pm CST: Strapi Discord Open Office Hours
For more details, visit the Strapi documentation and GrowthBook documentation.
GrowthBook is an open-source platform for A/B testing and feature flags. Integrate with Strapi to test different content variations and control feature rollouts based on experimentation data.
Configure GrowthBook SDK in your frontend, create feature flags in GrowthBook's dashboard, and conditionally render Strapi content based on flag values. This enables content experiments without redeploys.
Yes, create content variants in Strapi and use GrowthBook experiments to serve different versions to users. Track conversion metrics to determine winning variations.
Connect GrowthBook to your analytics platform (Google Analytics, Mixpanel, etc.). GrowthBook calculates statistical significance for experiments involving Strapi content variations.
GrowthBook supports both audiences—developers handle SDK integration while marketers can create experiments and review results through the user-friendly dashboard.