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:
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.
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.
See Device registries.
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.
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
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
LIVEareLIVE, notDRAFT- onlyLIVErules 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.
Related pages
Last updated
Was this helpful?