Data Management

Learn how to manage persistent and volatile data.

Usage

Some variables are required on every event. To prevent having to manually add required variable data to every event, you have the option to store data as either volatile or persistent. Once data is stored, it will be appended to every event, including lifecycle events.

Learn more about Data Management.

Persistent Data

Persistent data is merged into your data dictionary on every tracking call, as well as persist between launches.

The AddPersistentDataSources() method adds persistent data, as shown in the following example:

tealium.AddPersistentDataSources(new Dictionary<string, object>(1) {
  {"KEY", "VALUE"}});

Volatile Data

Volatile data is merged into your data dictionary on every tracking call, but once the application is closed, volatile data is lost is not present on the next launch.

The AddVolatileDataSources() method adds volatile data, as shown in the following example:

tealium.AddVolatileDataSources(new Dictionary<string, object>(1) {
   {"KEY", "VALUE"}});

Was this page helpful?

This page was last updated: January 7, 2023