Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Contentstack Web Destination


Destination Info
  • Accepts Page, Alias, Group, Identify and Track calls.
  • Refer to it as Contentstack Web in the Integrations object
  • This destination is not compatible with Destination Insert Functions.
  • This integration is partner owned. Please reach out to the partner's support for any issues.
  • This destination is in Beta
(information)

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(link takes you to an external page) 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(link takes you to an external page).


Prerequisites

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

  • 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.

  1. From your workspace's Destination catalog page(link takes you to an external 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.

Property nameTypeRequiredDescription
Personalize Edge API base URLstring
required

Your region-based personalize-edge API base URL.


Personalize project IDstring
required

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


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

(information)

Mapping limits per destination

Individual destination instances have support a maximum of 50 mappings.

Events Sync

events-sync page anchor

Sync Events to your Contentstack Experience.

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

Property nameTypeRequiredDescription
User IDSTRING
required

ID for the user


User EventSTRING
required

User Event

Sync Custom Attributes to your Contentstack Experience.

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

Property nameTypeRequiredDescription
User traitsOBJECT
required

User Profile traits to send to Contentstack


User IDSTRING
required

ID for the user


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

receive-personalized-content page anchor

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(link takes you to an external page).


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

Property nameTypeRequiredDescription
Personalize Edge API base URLstring
required

Your region-based personalize-edge API base URL.


Personalize project IDstring
required

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