To display a message to end users who have successfully registered, we build our Registered rule for the feature using the user segment we created in the Create a Registered Segment topic.
To build our rule, complete the following steps:
- Create or navigate to the feature for which you want to display the successful registration message
- Select the circle beneath Registered in the user type selector bar
A blank canvas displays.
- Select the User segment title
- Drag the Segment decision node to the rules canvas
The User Segment dialog box displays, as illustrated below:
Complete this dialog box as follows:
- Select the Registered segment from the drop-down menu
- Select the Save button
The Registered segment is added to the rules canvas.
- Connect the Page View node to the Registered segment decision node
- Drag the Add to Segment decision node to the rules canvas
The Add to Segment dialog box displays, as illustrated below:
Complete this dialog box as follows:
- Select the Registered segment from the drop-down menu
- Select the Save button
The decision node is added to your rules canvas.
Once end users have been added to the Registered segment, we know that they are on their first page view and we can display the Registration Success message.
- Select the Outcomes segment title from the decision bar
- Select Add Outcome
The Add an Outcome screen displays.
Build your outcome as follows:
- Enter Registration Successful in the Title text box
- Select the Add a New Form Or Custom Component Block button
- Select the Add button under the Custom Component Block heading
The Custom Component Block dialog box displays, as illustrated below:
- Enter the message in the text box, formatted as you want it to display.
For example, the following illustration shows a message with bold font and different font sizes defined in the Visual editor:
Note: For this example, we create a generic custom component block. If you prefer, you can use a templated component from the Component Library as described in the Custom Variables in Custom Component Blocks topic.
- Select the Save button to add the component to your outcome.
- Drag the Component Block output above the Article component in the Components section
This ensures that the Registration Successful message displays above the content.
- Select Show All Content from the Article Content row
- Select the Save button
The outcome is added to the decision bar.
- Drag the Registration Successful outcome to the rules canvas
- Connect the Registered segment to the Registration Successful outcome
The rule is similar to the following:
- Complete the rest of your rule for end users who are already registered
For example, in the rule illustrated below, we have added a trial that grants three views of content. When the end user is in the trial, they can view the content; when they reach the limit, they encounter a paywall.
When a newly-registered user views their first piece of content, the message displays at the top as illustrated below:
After the message has displayed, the registered user journey follows the Yes path defined in the rule; in our example, to the trial content views followed by a paywall.