Description: This article describes how to set traffic classifications for your web responses. It details how to add a new rule and provides an example of a rule.
Referral Rules
You can set web traffic classifications by creating custom rules. This can be done with the following steps:
- Select Referral Rules at the bottom of the Raw Response Breakdown page and select Add New Rule.
- Add a rule using the options displayed and select Done to save it.
You can add one or more rules using regular expression (what is regex?) to move specific sets of traffic from one classification to another. Using the URL or referral URL, you can move traffic to a classification based on whether the URL contains a specific term.
Example
The screenshot below displays a rule to move traffic containing the word ‘up’ or ‘down’ to the direct classification.
This rule will classify all data containing "up" or "down" as direct traffic.
To test your regex, you can use several tools provided on the web. A useful example is pythex.org, which includes a handy cheat sheet.
Related content