Contentstack Web Destination

Destination Info
Partner Owned
  • This integration is partner owned. Please reach out to the partner's support for any issues.

This destination sends data in device-mode

This destination transmits data from the browser directly to Contentstack on the client-side. Contentstack supports both device-mode and cloud-mode destinations. For more about the Cloud-mode destination, see Contentstack Cloud Destination.

Contentstack is a headless CMS that allows you to build digital experiences using a modular approach. This integration lets you sync data from Segment to your Contentstack Personalize project, enabling dynamic and personalized content delivery.

This destination is maintained by Contentstack. For any issues with the destination, contact their Support team.

Prerequisites

  • a Contentstack account with Personalize enabled
  • a Contentstack Personalize project created in your Contentstack organization

Before you begin

  • Contentstack Personalize Project: Create a Contentstack Personalize project within your organization and link your Contentstack stack to enable variant functionality.
  • Attributes & Audiences: Define attributes and create audiences based on those attributes within your Contentstack Personalize project.
  • Events: Define and create the events that you want to track and sync with your Contentstack Personalize project.

Getting started

  1. From your workspace’s Destination catalog page search for “Contentstack Web”.
  2. Select Contentstack Web and click Add Destination.
  3. Select an existing Source to connect to Contentstack Web.
  4. Go to the Contentstack account and find the following parameters to input as settings in the Segment destiantion settings:
    • Personalize Project ID: Enter the unique ID of your Contentstack Personalize project.
    • Personalize Edge API Base URL: Enter the base URL of your Contentstack Personalize API. You can find this URL in the Contentstack documentation.

Destination Settings

Setting Description
Personalize Edge API base URL Required.

Your region-based personalize-edge API base URL.

Personalize project ID Required.

Your Personalize project ID to which Segment’s data should be synced.

Available Actions

Build your own Mappings. Combine supported triggers with the following Contentstack Web-supported actions:

Mapping limits per destination

Individual destination instances have support a maximum of 50 mappings.

Events Sync

Sync Events to your Contentstack Experience.

Events Sync is a Web action. The default Trigger is: type = "track"

Click to show / hide fields

Field Description
User ID* Type: STRING

ID for the user

User Event* Type: STRING

User Event

Custom Attributes Sync

Sync Custom Attributes to your Contentstack Experience.

Custom Attributes Sync is a Web action. The default Trigger is: type = "track" or type = "identify"

Click to show / hide fields

Field Description
User traits* Type: OBJECT

User Profile traits to send to Contentstack

User ID* Type: STRING

ID for the user

Send events to Segment

Start sending the payload of events to Segment using track or identify calls. This will not only send events to Segment but will forward the selected values to Contentstack Personalization. Ensure your event payloads align with the mapping configuration you created for the Contentstack destination in Segment.

Receive personalized content

Based on your events/payloads, your Contentstack Personalize project should now start receiving events for understanding the users associated with your mapped values.

The event names and properties you use must match those defined in your Contentstack Personalize project. For advanced customization and to further enhance your personalized experience, explore Contentstack Personalize in Contentstack’s Documentation.

Settings

Segment lets you change these destination settings from the Segment app without having to touch any code.

Setting Description
Personalize Edge API base URL
(required)
string. Your region-based personalize-edge API base URL.
Personalize project ID
(required)
string. Your Personalize project ID to which Segment’s data should be synced.

This page was last modified: 01 Oct 2024



Get started with Segment

Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.
or
Create free account