Attribution rules
How rules work
A rule reads like a sentence: when a field matches a value, assign a label. Later rows start with and or or. Group rows to control how and and or combine.
The field comes from your session data, such as utm_source, utm_campaign, referring_page_domain, landing_page_path or a partner key such as gspk. The label is the channel or campaign name sessions get.
Roadway checks traffic sources, channels and campaigns in the order shown, and the first match wins. Drag rows to change the order. The fallback row catches sessions nothing else matched.
Create a rule group
- On the last rule row, open its menu (More actions).
- Click Create rule group.
- Add conditions inside the group, connected with and or or.
- Click Save changes.
Add a rule
- Open the traffic source's details page.
- In the section you want, click Add rule.
- Choose the field in Select field.
- Choose the operation. See Rule operators.
- Enter the values. Pick existing values or type your own.
- To combine with another row, set the connector (and / or) on the next row.
- Click Save changes.
Add a campaign rule
- Open Measurement → Attribution and click the traffic source.
- Under Campaign rules, click Add campaign rule.
- In Campaign, choose a label (or type a new one), or choose the identifier that holds the campaign name, such as
utm_campaign. - Add a rule if the campaign only applies to some sessions.
- Click Save changes.
Edit a channel or campaign rule
- Open the traffic source's details page.
- Change the field, operation, values or label in place. To remove a row, click its ×.
- Click Save changes, or Discard changes.
Rule operators
| Operation | Meaning |
|---|---|
| = | Equals the value. |
| != | Does not equal the value. |
| in | Equals any of several values. |
| not in | Equals none of the values. |
| is set | Field has any value. |
| is not set | Field is empty. |
| contains | Text includes the value. |
| not contains | Text does not include the value. |
| > (is greater than) | Numeric greater than. |
| < (is less than) | Numeric less than. |
| >= (is greater than or equal to) | Numeric at least. |
| <= (is less than or equal to) | Numeric at most. |
| is true | Boolean field is true. |
| is false | Boolean field is false. |