Jack Virag
Editor in Chief, Statsig
Daniel West
Software Engineer, Statsig

Statsig + Contentful integration for CMS A/B testing

Tue Mar 04 2025

Marketing experimentation: unlocked. 🔓

We're excited to announce that Statsig and Contentful can be linked with a native integration that allows users to run A/B tests and experiments on their CMS content without any engineering overhead.

Once the integration is set up, marketers can optimize content, obtain insights, and iterate continuously right within contentful.

Joining Statsig Sidecar (no-code web experimentation), and our other CMS integrations, the Statsig + Contentful integration is another marketing-friendly tool that gives the power of experimentation to users focused on content, strategy, and user experience—not coding.

Why Statsig + Contentful?

  • Unlock experimentation on CMS content directly in Contentful

  • Requires no engineering once set up, it’s entirely marketer-friendly

  • Provides access to Statsig’s high-powered experimentation, analytics, and dashboards

  • No flicker or web performance penalties

Getting started: Installing the Statsig Contentful app

The Statsig Marketplace App is publicly available in the Contentful Marketplace. Once installed, you’ll be able to seamlessly run A/B/n tests on any Contentful content type you’ve enabled.

Below are the key steps to get everything up and running:

  1. Navigate to the marketplace in Contentful and find the Statsig app.

  2. Click ‘Install’.

  3. Enter your Console API Key when prompted.

    • Go to Settings > Keys & Environments in Statsig to find (or generate) a key of type “Console” with read/write permissions.

  4. Confirm ‘Install to selected environments’.

⚠️ Note: Once installed, you won't see the full API key again, so keep track of it or generate a new one if needed.

Setting up experiments in your content types

After the app is installed, you can configure any existing content type to run Statsig experiments. This is a one-time setup that unlocks testing capabilities for that content type.

  1. Go to the ‘Content model’ tab in Contentful.

  2. Select your desired Content Type (e.g., “Blog post”).

  3. Add a field of type ‘Reference’ and name it “Statsig experiment.”

  4. Under Validation, choose “Accept only specified entry type,” and select Statsig variant container.

  5. Save your new field and the content type.

Your content type is now ready to serve different variants in an experiment.

Running an experiment on your content

Once your content type is set up, you can link it to a Statsig Experiment:

the statsig variant button in contentful
  1. Go to the ‘Content’ tab and open the entry you want to experiment on.

  2. In the Editor, find the new “Statsig experiment” field. Click “Add content” and select Statsig variant container.

  3. In the Statsig tab of the variant container, give your experiment a name and add your control and treatment variations.

  4. Publish the new Statsig variant container entry to create the experiment in Statsig.

  5. Follow the ‘Go to Statsig Experiment’ link to finalize setup in Statsig, add metrics, and start the experiment.

  6. Once your experiment is started, return to your original entry in Contentful and publish changes.

Your experiment is now live—no engineering required. Marketers can adjust, test, and iterate on content within Contentful, while Statsig provides robust experiment analytics and dashboards to measure results.

Getting started

To get set up, you'll need to integrate the Statsig SDK into your codebase, much like a Google Analytics tracking code. This allows Statsig to handle requests upon page load and serve users the right variant.

For setup help, join our Slack community where our engineers are on call "almost 24/7" to answer public support questions:

a person advising that they asked statsig a question and the CEO replied at 4am

Sidecar no-code A/B testing

Get the Statsig Sidecar Chrome extension and run A/B tests and experiments on your website without writing code.
sidecar cta image

Related marketing resources:

Recent Posts

We use cookies to ensure you get the best experience on our website.
Privacy Policy