For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data retention

Decide how long each kind of data lives in your datamart, and know which windows you cannot change.

Your goal

Decide, before you start collecting, how long each kind of data stays in your datamart - and understand which retention windows you control and which are fixed by the platform.

Expected outcome

A retention decision per data class, implemented as cleaning rules for the data you control, and no surprises about the data whose window is fixed.

What you control: user data

The retention of your user data is governed by cleaning rules, defined per datamart in Settings > Datamart > Cleaning Rules. They apply to events and profiles, and each rule combines an action (KEEP or DELETE), a duration, and a set of filters.

Decisions to take per data class:

Decision
Consequence

How long events are kept, overall and per channel, activity type, or event name

Behavioural history available for segmentation, analytics, and funnels.

How long profiles are kept, overall and per compartment

Known-customer data available for personalisation and activation.

Cleaning up events and profiles cleans up your UserPoints too: when a UserPoint has no activity, no profile, and no USER_LIST segment, it is removed from the platform.

For the full mechanism - how rules are prioritised, how their lifecycle works, and worked examples - see Cleaning rules.

To remove data for a specific person rather than by policy, see Delete user data and Exercise rights of the user.

What you control partly: device identifiers

You can set an expiration duration for identifiers stored in device registries you created manually. It applies only to identifiers captured after the duration is set.

Device technical identifiers are stored for a period of one year after their creation.

What is fixed by the platform: derived and monitoring data

These windows are not configurable. Design your reporting around them - if you need a longer history, extract the data before it expires.

Data
Retention

Activities analytics data

4 months, to keep query performance predictable

Events ingestion monitoring statistics

3 months

Collection volume statistics

2 years

Usage report statistics

2 years

Where you read each of these is covered in Operate & monitor.

Plan it in this order

1

Write down the requirement per data class

Legal or contractual retention obligations, and the analytical history your teams actually need. These usually differ by channel and by event type, which is exactly the granularity cleaning rules support.

2

Translate it into rules before collection starts

Because expiration is stamped on write, rules that arrive after the data does not fix the data already stored.

3

Keep an escape hatch

KEEP rules take priority over DELETE rules, and there must always be a LIVE event-based rule with a DELETE action. Plan the combination deliberately rather than adding rules one at a time.

4

Extract what you need to keep longer

For anything whose platform window is fixed and shorter than your requirement, schedule an export. See Export your data.

Verify

  • Every data class in your tracking plan has a stated retention, and a rule that implements it.

  • The rules that must be LIVE are LIVE, not DRAFT - only LIVE rules are taken into account when computing an expiration timestamp.

  • Any reporting that needs more history than a fixed window allows has an export in place.

Last updated

Was this helpful?