Get started with the Storyblok app

Install Optimize and connect your Storyblok space to Croct.

Optimize by Croct is a Storyblok app that brings personalization and AB testing directly into the Storyblok interface. It connects your Storyblok space to Croct and lets you link any block to a slot, so marketers can manage dynamic content without touching code.

This tutorial walks you through installing the app, configuring a block, and linking it to a slot.

Prerequisites

Before you start, make sure you have:

Install the app

The app is available in Storyblok’s app directory. Once installed, the onboarding will guide you through connecting your space to Croct and setting up the field plugin.

  1. Access the integration and install it.

  2. Follow the onboarding instructions to install the field plugin and connect your Storyblok space to Croct.

    App onboarding
  3. Add the Storyblok integration to your project:

    npx croct@latest init

    If you prefer to set things up manually, follow the manual installation instructions.

Make your first block dynamic

Giving a block dynamic capabilities means adding the Optimize plugin field to it.

  1. Open the Optimize app tab on the left menu, under Apps.

  2. Open the Dynamic blocks area and find the block you want to make dynamic.

    Dynamic blocks
  3. Toggle the block on.

Connect your first block

With your block made dynamic, you can now connect it to a slot.

  1. Open your story and find the block you want to use for dynamic content, such as your home hero section.

  2. Open the block’s settings and locate the Optimize field.

  3. Click + Create to create a new slot.

    Create a new slot
  4. Save your changes.

  5. Click the link “Connect this slot” to connect the new slot to the block. You’ll be redirected to the slot page, where you’ll find your new slot with the status Missing.

    Slot list
  6. Click Add to complete the connection. Once done, the status changes to Active.

Try it out

Verify that the integration is working:

  1. Open your application

    Load a page that renders the connected block. You should see the default Storyblok content.

  2. Launch a personalized experience

    Create and publish a Personalized experience or an AB test targeting the connected slot.

  3. Confirm personalized content

    Reload the page as a visitor who matches your audience. You should see the dynamic content instead of the Storyblok default.

Your original Storyblok content serves as the default and fallback for visitors not targeted by any active experience.

Content hierarchy