When setting up segmentation for your tours and announcements, it is important to keep in mind the possibilities. For example, depending on the properties that you pass to Product Fruits, you can segment by username, sign up date, and even whether the user is a paying customer or on a free trial. There are two different ways to finding properties that you can segment from.
In the case of testing purposes, perhaps wanting a tour to appear only for yourself, you need to know how to look up the information of your user account. A common point of confusion is that the username assigned to a particular user in your Product Fruits integration can be different than that user’s username on your website/application, and it is typically never the same as your Product Fruits username.
To find your user information, you can use the Live Debugger. Once it is launched, switch to the User information tab.
Now that you have this value of Dv9r4yVV, you can go to your tour settings and create the following custom rule.
After saving, you can publish the tour and now the tour will only appear for you. If you would like to see the tour again, you can restart the tour for all users, or for just your username. Since the tour is only segmented to appear for one user, both buttons will have the same effect.
Of course, it is also possible to segment by other properties. It all depends on what information is set up to be passed to Product Fruits from your application. You can remind yourself of what properties your setup consists of by checking the ‘Tracked Users’ section of Product Fruits. Clicking on the detail button for a particular user will display what information Product Fruits has and is able to segment based on.
For example, the following custom rule applied to a tour would set the tour only to begin for users who belong to the role of ‘paid’ and who have finished the tour entitled Orientation.