Skip to main content

Contentful

This guide shows you how to integrate the Frosmo Platform with Contentful using the Frosmo Segments for Contentful app. The app allows you to attach Frosmo segments to Contentful entries, which in turn allows the entries to be targeted to website visitors in the selected segments.

Segmenting Contentful entries with the Frosmo Platform
Figure: Segmenting Contentful entries with the Frosmo Platform

Content workflow

Who does what ultimately depends on your particular team and project. The workflow described here assumes the following roles:

  • User responsible for installing the app and creating content in Contentful. The user works exclusively in Contentful.

  • Developer responsible for creating a solution that fetches the content from Contentful and displays the content to segmented visitors.

To display a Contentful entry to segmented visitors:

  1. In Contentful:

    1. Install and configure Frosmo Segments for Contentful. The app adds a new segment selector field for content types.

    2. Create a new content type with a segment selector field, or add a segment selector field to an existing content type.

    3. Create a new entry or edit an existing entry based on the content type, and use the segment selector field to attach one or more segments to the entry.

  2. On the site:

    1. Get the segments to which the current visitor belongs.

    2. Fetch the entries for those segments from Contentful.

    3. Display the entries, if any.

Step 1 is done by the user, while step 2 is the developer's responsibility. You can implement step 2 in its entirety with a modification and a template in the Frosmo Control Panel, or you can do it directly in the site source code (assuming you have access to the code).

Where to go next