- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
This Enrichment can modify a Number with a positive value (increment) or a negative value (decrement) when triggered by a specific visitor event. The modifying value can be a different Number, a Tealium iQ Variable or just a custom numeral.
Example: Increment the Lifetime Order Total Number by the latest order total value after every successful transaction (more details in Usage Example).
Assume you want to calculate the Lifetime Value (LTV) of all the transactions that a visitor has made so far. Perhaps you are looking to offer promotional deals or assign a frequent buyer badge if the LTV exceeds a certain amount. First, you will capture the the order total values in a Tealium iQ Variable then leverage it a Number with the help of Increment/Decrement Enrichment.
How does it work? Every time the visitor completes a transaction on the checkout page, the Enrichment kicks in and increments the Number by the latest order value.
Step 1. Add a Number Attribute and scope it to Visitor. This will store the lifetime order total value.
Title: Lifetime Order Total Scope: Visitor
Step 2. Create the 'Increment or Decrement Number" Enrichment.
For this step, you must collect the order total value at the end of the visitor's transaction. To do that, add the 'order_total' Variable to the Data Layer tab of the matching Tealium iQ profile (Adding Variables to Tealium iQ).
Increment or Decrement Number by: order_total WHEN: Any Page Event Attach/Create a Rule: Page URL object contains "checkout"
Step 3. Save/Publish the changes.
Copyright All Rights Reserved © 2008-2023