Add the message
Guide to creating a rule that displays a registration success message to newly registered users using a custom component block.
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 section.
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.
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.
Complete this dialog box as follows:
- Select the Outcomes segment title from the decision bar.
- Select Add Outcome.
The Add an Outcome screen displays.
Build your outcome as follows:
- 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.