Product Fruits can use the user information that is passed through to it in its content. This is used most often in segmentation but, it is 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.
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 that it sent to us from your application when Product Fruits is initalized can be used.
The best way is by accessing the Tracked Users section of your workspace. Once there, the technical name of the property can be seen highlighted in blue.
The other way is by using the debugger. Once launched, consult the User information tab.
Once you know which value to use, implementing it is easy. You can use these placeholders in various places in Product Fruits.
It’s just a matter of encapsulating 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:
And then in the tour, it will look like this:
Placeholders don't have to be used just in tours or hints cards but also in other Product Fruits tools. A few examples: