Learn how to manage data layer values across the app lifecycle.
How it works
To set global data layer values once, instead of setting them in every tracking call, use the AddToDataLayer() method. Data layer values added with this method are included in every tracked event, including lifecycle events. Set the expiry parameter to the length of time to persist the value.