Once you identify your desired attributes, you will configure them with enrichments: business rules that determine when and how to update the values of attributes. Each data type offers its own selection of enrichments for manipulating the attribute's value. For example, the number attribute offers the enrichment "Increment or Decrement Number" for adding or subtracting number values.
Each enrichment is set to occur at a specific time. This is the "WHEN" setting. The following options are available for each visit and visitor attribute:
You can also create a custom condition, called a rule, that will determine when the enrichment will occur.
Let's look at an example of a popular e-commerce visitor attribute called "Lifetime Order Value". This is a visitor attribute that calculates the cumulative amount spent by the customer for all completed orders. In order to calculate this value, we also need to know when purchases occur and the amount of those purchases, so the attribute dependencies are:
order_total– event attribute for order total amounts.
purchase– an event to track completed purchases.
To get started with adding this attribute, follow these steps:
tealium_event EQUALS purchase
Congrats! You just created a visitor attribute with an enrichment to keep track of the total amount spent in completed orders.
Click Next to learn about the two more special attributes called Badge and Visitor ID.