Content personalization and placeholders

Product Fruits can use the user information passed to it in its content. This is used most often in segmentation, but it's useful in many other situations as well. For example, using a user’s first name in a card for personalization purposes, or even in more technical situations like filling in parts of a URL. 

What user properties can you use?

There are two ways to figure out which properties you can use. It's worth noting that at the moment, only properties sent through the user information object (data sent to us from your application when Product Fruits is initialized) can be used.

Tracked Users section

The best way to find user properties is by accessing the Tracked Users section of your workspace. Once there, the technical name of the property can be seen by clicking on any of the tracked users.

example of accessing the tracked user section of the workspace to show the technical name of properties

Debugger

The other method is by using the debugger. Once launched, consult the User information tab. 

screenshot of the Product Fruits debugger showing the user tag

Using placeholders

Once you know which value to use, implementation is easy. You can use these placeholders in various places in Product Fruits, such as on tour cards and hints.

Syntax

All you need to do is encapsulate the property name in double curly brackets.

For example, firstname becomes {{firstname}}. For custom properties, start with props. For example, yourCustomProp becomes {{props.yourCustomProp}}.

So, in the editor, it looks like this:

example of a tour card using a placeholder for the users first name

Once that's been done, it will look like this in the tour:

example of a tour card showing the username placeholder filled in with the name Chance

Where you can use them

Placeholders can be used outside tours and hints cards. A few examples:

  • dynamic URLs in the Life Ring Button or Checklist items ({{$language}} may be helpful in these cases)
  • dynamic greetings in the Checklist title
  • personalized announcements- URLs in action buttons included