Processing rules simplify data collection and manage content as it is sent to reporting. Processing rules help simplify interaction with IT groups and Web developers by providing an interface to:
See Processing rules overview for a demo video.
Administrators have rights to use processing rules by default. Administrators can also grant these rights to non-administrators through the Admin Tools interface. For instructions, see []
Context data variables are a type of variable that are available only to processing rules. To use context data variables, key/value data pairs are sent in by your implementation, and processing rules are used to capture these values in standard Analytics variables. This frees programmers from understanding exactly which prop and/or eVar should contain which value.
s.contextData['author'] = "Robert Munch";
s.contextData['section'] = "Books";
s.contextData['genre'] = "Youth";
Once set in code, you can set processing rules to assign values to variables. For example:
author
to eVar2
section
to prop1
and eVar3
author
and section
exist, set event5
See contextData in the Implement user guide for more information.
Processing rules can monitor incoming values to transform common typos and set events based on reported data. Props can be copied to eVars. Values can be concatenated for reports, and events can be set.
Once context data variables are defined within your implementation, they must be copied to variables such as eVars to be used in reporting.
See Copy a context data variable to an eVar and Set an event using a context data variable for more information.
Use of carats (^) in processing rules. If you want to use carats in processing rules as delimiters or for other purposes, each single carat must be represented by two carats. For example, represent a single carat as ^^, a double carat as ^^^^, etc.