You can use nested Sub Rules to simplify your complex user journeys.
This approach allows you to add layers of complexity to your user journeys. For example, you could add nested Sub Rules that alter the path depending on where the traffic came from, the end user’s device, and/or browser type.
Example Nested Sub Rule
Let’s use sub rules to provide separate journeys based on traffic types.
For example, you could define the journey for each traffic type as shown in the following table:
|Traffic Type||Journey||Approach Used in This Example|
|Social referrer||One free content view each day||Nested Sub Rule|
|Search referrer||Access to content for the purpose of driving search results||Nested Decision Node|
|Direct||Present hard registration form; end user must register to view content||Follow the No path for both the nested Sub Rule and the nested decision node in the top-level rule|
You can use a nested Sub Rule to simplify your rule for traffic types as shown in this example.
For our example, complete these steps in the Rules Builder for your feature or redirect:
- Add a Sub Rule for traffic types
For further information on creating a Sub Rule to check for different traffic types, see the Add a Sub Rule topic.
- Define a nested Sub Rule to check whether traffic came from a Social Referrer
For further information on creating a nested Sub Rule to check for Social Referrers, see the Add a Nested Sub Rule topic.
- Add a nested decision node in your traffic type Sub Rule to check whether your traffic came from a Search Referrer
For further information on adding a nested decision node to check for Search Referrers, see the Add a Nested Decision Node topic.
- Add outcomes to your traffic type Sub Rule
For further information on adding outcomes to the traffic type Sub Rule, see the Add Outcomes to Your Sub Rule topic.
- Connect the nodes to complete your traffic type Sub Rule
For further information on connecting the nodes in the Traffic Type Sub Rule, see the Complete Your Sub Rule topic.
- Build your top-level rule, in a cleaner canvas that has removed the complexity of the traffic types flows
For further information on building the top-level rule, see the Complete Your Main Rule topic.