Show Menu
TOPICS×

Set an event using a context data variable

Processing rules can trigger events based on Context Data variables.
Context data variables are specified in AppMeasurement in the following format:
 s.contextData['search_term']

The Context Variables list contains all variables that were sent to the report suite in the previous 30 days. If you know the context data variable name but have not sent it into the current report suite, you can add a value by typing the variable name and clicking Add variable name context data :
The following rule definition expands on the Copy a Context Data Variable to an eVar rule to also set an event on every hit that contains a specific context data variable:
Rule Set
Value
Condition
If 'search_term' context data is set
Action
Set event 'searches'
For example:
See Context Data Variables in Implementation Help.