# Test CMP consent persistence across sessions and devices Check that a CMP restores the stored choice on reload, new tabs, cross-domain visits and returning sessions, and record where it does not. - Canonical: https://satracking.net/guides/cmp-consent-state-persistence/ - Language: en - Category: consent - Level: intermediate - Published: 2026-11-14 - Updated: 2026-11-14 --- ## Purpose and scope Check that a CMP restores the stored choice on reload, new tabs, cross-domain visits and returning sessions, and record where it does not. Begin by identifying the business purpose, systems involved, data owner and applicable policy constraints. Separate required behavior from optional enrichment, and document the expected result before changing production configuration. ## Implementation method Define expected persistence for each region and consent category; test reloads, new tabs and returning sessions; inspect cookie domain, path, expiry and storage; test cross-domain behavior separately; avoid assuming preferences synchronize across devices. Define the expected payload contract, identify the system that owns each field and record the conditions under which data may be transmitted. Keep implementation choices consistent across environments and destinations. ## Validation scenarios Test the expected path and at least one negative path. Include missing, malformed, duplicated and delayed inputs where relevant. Inspect the actual network request or platform diagnostic rather than relying only on a successful interface preview. Compare browser and server behavior when both are involved. ## Operational controls Version the mapping and configuration; record the owner, release date and rollback procedure. Monitor rejection, duplication, latency and unexpected payload changes. Reassess the implementation when the platform specification, consent configuration, site architecture or business process changes. ## Release checklist - Is the purpose and data owner documented? - Are fields minimized and correctly typed? - Have allowed, denied and failure cases been tested? - Are duplicate and retry behaviors understood? - Can the change be rolled back and audited? ## Further reading - [Set up consent mode for websites](https://developers.google.com/tag-platform/security/guides/consent) - [Consent Management Platform API (TCF v2.2)](https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md) ## Official references - Set up consent mode for websites — https://developers.google.com/tag-platform/security/guides/consent (verified 2026-11-23) - Consent Management Platform API (TCF v2.2) — https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md (verified 2026-11-23)