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.

  1. Select "Stack API Key".

  2. Add your Contentstack Stack API Key and Delivery Token.

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

  1. Select Contentstack Authtoken.

  2. Add your authtoken and the base URL of your Personalize Project.

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

  1. Navigate to "Data Pipeline > Jobs > Create New" and select Contentstack as the provider.

  2. Select the "Import Entries" job type and then select your entry type (likely "article") and provide the domain on which you are serving content and have the JavaScript Tag installed.

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

  1. Navigate to "Account > Settings > JavaScript Tag".

  2. Enter the Fields you want to send to Contentstack's Personalize Edge API, and your Personalize Project ID.

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

Contentstack Schema Sync

You can send all of your profile fields to Contenstack automatically by starting a new "Schema Export" job.

  1. Navigate to "Data Pipeline > Jobs > Create New" and select Contentstack as the provider.

  2. Select the "Schema Export" job type and select which profile fields you'd like to sync over. If you leave the field list empty, it will export all of the available fields in your schema.

  3. Click "Complete".



Lytics User Profile Export

Exporting Lytics audiences to Contentstack to reach and connect with your website visitors.

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:

  1. Scans the Lytics audience.
  2. For each user, it sends the Lytics ID and the audience information of this user to Contentstack.
  3. 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.

  1. Select Contentstack from the list of providers.

  2. Select the Export Profiles job type from the list.

  3. Select [No Auth Required] Use Personalize Edge API as the Authorization.

  4. Enter a Label to identify this job you are creating in Lytics.

  5. (Optional) Enter a Description for further context on your job.

  6. From the Audiences input, select the Lytics audiences to export to Contentstack.

  7. From the Region input, select the region of your Contentstack product.

  8. In the Personalize Project ID text box, enter your Contentstack personalize project ID to which audiences should be synced.

  9. Select the Recurring Export checkbox to run this export job continuously.

  10. From the File Upload Frequency input, select how often to export the users.

  11. From the Time of Day input, select the time of day to start export.

  12. From the Timezone input, select the timezone for the time of day you selected above.

  13. Click Complete to start export.