Zephr User Guide

User Variables in Custom Components

118 views 0

You can use custom components to personalise content and provide customised end-user journeys by exposing first-party user data stored in Zephr

To add a user attribute to a custom component block, complete the following steps:

  1. Navigate to the custom component block in which you want to display user data, in either of the following ways:
    • Select the custom component block outcome in your feature, as described in the Edit an Outcome topic
    • Add a new outcome as described in the Add an Outcome topic
  2. Enter the user variable in the text box using the following format, where is the slug of the related user attribute:

For example, you can add a user variable for the end user’s first name using the slug for the First Name user attribute as illustrated below:

Example user variable in a custom component block

For a registered user with a first name of Gwen, this would display as illustrated below:

Personalised message in custom component