Contentstack
Contentstack is a composable foundation for driving best-in-class personalized experiences. Contentstack provides an API-first CMS platform to drive the delivery of the best content to everywhere it needs to be.
Integrating Contentstack and Lytics allows you to connect content from your CMS to:
- Power and customize Lytics Interest Engines based on your Contenstack taxonomy. This connection helps to drive affinity calculations and power personalized content or product recommendations that combine user activity data and metadata from your Contentstack Stack.
- Leverage Lytics profiles to power real-time experiences in Lytics profile fields as Personalize attributes in Contentstack Personalize. Profile schema and fields are synced automatically to Contentstack's Personalize Edge API.
Authorization
If you haven't already done so, you'll need to set up a Contentstack account before you begin the process described below.
Once created, you'll add new Authorizations in Lytics for Contentstack by navigating to "Account > Authorizations > Create New" and select Contentstack as the provider.

Contentstack API Key
Syncing your entry metadata to Lytics requires a Contentstack API Key for your desired stack Stack.
-
Select "Stack API Key".
-
Add your Contentstack Stack API Key and Delivery Token.
-
Click "Complete".
Contentstack Authtoken
Syncing profiles to Contentstack Personalize requires you to first generate an authtoken from Contentstack. Then, you'll add that authtoken as a new Lytics authorization.
-
Select Contentstack Authtoken.
-
Add your authtoken and the base URL of your Personalize Project.
-
Click "Complete".
Contentstack Entry Import
Once you've created an Authorization for Contentstack, you'll start a Contentstack "Import Entries" job in Lytics to sync your entries and taxonomy with your Lytics Content Graph.
-
Navigate to "Data Pipeline > Jobs > Create New" and select Contentstack as the provider.
-
Select the "Import Entries" job type and then select your content type (likely "article"). You can select multiple content type to import their entries.
-
Select Keep Updated to continuously import the entries for selected content types.
-
You can also provide the domain (optional) on which you are serving content and have the JavaScript Tag installed.
-
Click "Complete".
Enable JavaScript Tag Plugin for Contentstack
Once you've imported your Contentstack entries into Lytics, you'll want to enable Lytics' JavaScript Tag to sync profile data with Contentstack's Personalize Edge API.
-
Navigate to "Account > Settings > JavaScript Tag".
-
Enter the Fields you want to send to Contentstack's Personalize Edge API, and your Personalize Project ID.
-
Click "Save".
Once connected, you'll be able to use any Lytics Profile Field as an attribute to tailor content for different audiences, manage variants, and run A/B tests to enhance engagement and conversions.
Sync Audience Definitions
Export Lytics audience defintions to create the personalize audience in Contentstack by starting the Sync Audience Defintions
job.
-
Navigate to "Data Pipeline > Jobs > Create New" and select Contentstack as the provider.
-
Select the "Sync Audience Definitions" job type.
-
Select the authorizations you would like to use.
-
Select your Contentstack organization.
-
Select the Personalize project where you would like to send the Lytics audience definitions.
-
Click "Complete".
Sync Audience Membership
Exporting Lytics audiences to Contentstack to reach and connect with your website visitors. This job will provide you the ability to pre-populate the profile attribute in Contentstack with Lytics audience information to enable personalization when returning visitors land on the site.
Integration Details
- Implementation Type: Server-side Integration.
- Implementation Technique: REST API Integration - Audience Trigger Integration
- Frequency: Batch Integration.
- Resulting data: Lytics users that are members of the selected audiences are exported to Contentstack.
This integration utilizes the Contentstack Personalize Edge API to send users to Contentstack. Once the export is started, the job will:
- Scans the Lytics audience.
- For each user, it sends the Lytics ID and the audience information of this user to Contentstack.
- The job will run continuously if configured.
Fields
The job sends the Lytics ID and the audience information as user attribute to Contentstack.
Configuration
Follow these steps to set up and configure an export of audiences in the Lytics platform. If you are new to creating jobs in Lytics, see the Destinations documentation for more information.
-
Select Contentstack from the list of providers.
-
Select the Sync Audience Membership job type from the list.
-
Select the authorization that you would like to use.
-
Enter a Label to identify this job you are creating in Lytics.
-
(Optional) Enter a Description for further context on your job.
-
From the Audiences input, select the Lytics audiences to export to Contentstack.
-
From the Organization input, select your Contentstack Organization.
-
From Personalize Project ID input, select your Contentstack personalize project ID to which audiences should be synced.
-
Select the Recurring Export checkbox to run this export job continuously.
-
From the File Upload Frequency input, select how often to export the users.
-
From the Time of Day input, select the time of day to start export.
-
From the Timezone input, select the timezone for the time of day you selected above.
-
Click Complete to start export.
Updated 13 days ago