Powerful Content Personalization with Segment and Elastic Path CX Studio

Creating a highly personalized experience for shoppers is fundamental to optimizing conversion rates. Using Elastic Path’s CX Studio Personalization workflow for Segment, building a bespoke experience unique to each of your customers has never been easier. Simply connect Segment to your Elastic Path CX Studio site to begin tracking user behavior and linking their Segment profile data to their CX Studio session. Then, with a few clicks, add a personalized experience to pages - no code required!

Made by Elastic Path

What do you need?

  • Elastic Path CX Studio

Easily personalize customer experiences with first-party data

With a huge integration catalog and plenty of no-code features, Segment provides easy-to-maintain capability to your teams with minimal engineering effort. Great data doesn't have to be hard work!

On this page

Note: For more information on setting up tracking and analytics with Elastic Path, including please refer to the Elastic Path CX Studio eCommerce Event Tracking recipe.

In this recipe, you’ll learn how to implement Segment client tracking for your composable commerce solution using ElasticPath CX Studio and Segment, and personalize your CX Studio content using Segment Audiences and Traits… all without writing any code!

By enabling tracking and personalization for your eCommerce business, you can begin to build and execute more effective campaigns for customers and craft tailored experiences to deliver the right message at the right moment directly to your users in your storefront.

Step 1: Setting up your CX Studio integration

There are 2 parts to setting up CX Studio with Segment: Installing the CX Studio source in Segment, and then installing the Segment Integration in CX Studio to connect your data-stream both ways.

Segment Configuration

To install the CX Studio Source:

  • From the Segment web app, click “Catalog”

  • Search for “Elastic Path CX Studio” in the Catalog and select it

To retrieve the settings you’ll need from your Segment workspace:

  • In Segment, navigate to Sources and open your installed “Elastic Path CX Studio” source, open the “Settings” tab, and then “API Keys” sub-menu retrieve the Source ID and Write Key.

     

epb1
 
  • Then navigate to Unify > Unify Settings to retrieve your Unify Space ID and to generate a Unify Access token.

 

epb2

 

CX Studio Configuration

Adding the Segment Integration to CX Studio:

  • In CX Studio, navigate to Settings > Integrations, and Locate the Segment Integration, then click the “+” icon on the right to open the settings panel.

  • In the Segment Settings panel that opens, configure your Segment integration using the Source ID and Write Key, and Unify Space ID and Access Token retrieved in the previous step.

     

epb3
epb4

 

Once you have entered all the configuration settings in CX Studio, click “Connect Account” to save the integration.

You’ve completed the set up!

Step 2: Confirm it’s working

Once you have your CX Studio storefront configured to push events to Segment, visit your CX Studio storefront and generate some event data. Click some product links, open the associated product pages, add products to your cart, and check out. This will push event data into your Segment workspace.

Note: For more information on how to review your tracking and analytics are working with Elastic Path, please refer to the Elastic Path CX Studio eCommerce Event Tracking recipe.

Checking Source Data

You can view the event stream real-time by clicking the Elastic Path CX Studio source in the Sources area of Segment, then navigating to the Debugger tab.

 

epb5

 

Checking Unify

To verify that your Unify configuration is working correctly, navigate to Unify > Profile Explorer and verify that profiles are making their way into your Segment workspac

 

epb6

 

Step 3. Begin Personalizing Content

To personalize your content in CX Studio, you can get started with just a few clicks.

First, open the page editor and begin editing the page you wish to personalize. In the Section Toolbar, click the Content Personalization icon (see below).

 

epb7

 

This will open the personalization sub-toolbar, where you can begin creating rules for the display of a given section of content.

Because you have Segment connected, you’ll be presented with options to limit the section’s visibility to rules based on a Segment Audience or Trait.

Follow the instructions below to begin using these conditions for personalization.

 

epb8

 

Audience Personalization

To personalize content for an Audience, you can simply enter the Audience key of an Audience you’ve defined in Segment, e.g. this custom “VIP Customers” audience:

 

epb9

 

Given this, you can define a rule looking for an Audience that in a given storefront visitor’s profile.

 

epb10

 

To personalize content for a broad range of Audiences, you can use advanced comparison. For example, if you have several Audiences beginning with “vip-”, you can target them all using a “starts with” comparison.

 

epb11

 

Trait Personalization

Traits allow quantitative rules for personalization. To personalize content for a Trait, you can use comparison functions to compare that trait to a value or value range.

 

epb12

 

For example, for the following computed trait named “LTV”, with a trait key “ltv” containing the aggregate historical purchase value of a customer:

 

epb13

 

You can access that trait from CX Studio’s Segment profile data and limit content for a specific range, e.g. for customers with an LTV greater than 100 as shown below.

 

epb14

 

Personalizing the Content

Once you’ve established your conditionals for displaying a given section, you can further personalize the content using the details of that “contact” using {{ handlebars }} syntax to print the contact attribute to the screen. Some commonly-used attributes are {{ contact.first_name }} and {{ contact.city }}, for example. The available values for a contact record can be found in the Customers area in your CX Studio main menu.

 

epb15

 

Going a Step Further

Beyond simply customizing a single section for a given audience, you can personalize for a set of matching criteria, using multiple conditions with “match all” or “match any” operators to enable narrowing or broadening the audience for a particular section. You can also invert the criteria in a subsequent section to segment users into groups (Group A > Section 1, Group B > Section 2). There are limitless possibilities of combinations of experiences you can craft.

Wrapping up

Instead of writing custom code to implement your end to Personalization UI, Elastic Path CX Studio and Segment simplify the experience with an intuitive, easy-to-use GUI right in the page editor. It’s as simple as:

  1. Connect CX Studio to Segment

  2. Confirm the data is flowing in

  3. Configure your Segment workspace to generate Audiences and Traits

  4. Start Personalizing pages in CX Studio

Getting started is easy

Start connecting your data with Segment.