Consent Management (CMP) Setup
Consent management as a state machine: processing purposes, evidence of choice, withdrawal of consent and technical testing of a CMP.
A consent management platform, or CMP, links a user’s choice to the actions the site is allowed to take and to the record of that choice. The banner is only the interface. A system that can be verified must consistently control scripts, network requests, storage, signal passing and later changes to the decision.
Scope and sources of requirements
Section titled “Scope and sources of requirements”Under the GDPR, consent is one of several possible legal bases for processing, not a universal basis for any operation. Articles 4(11) and 7 and EDPB Guidelines 05/2020 set out the requirements for consent and its withdrawal [1], [2]. Applicability depends on the jurisdiction, the operation and the parties involved. This article explains the engineering model for testing; a legal opinion requires an analysis of the specific process.
A useful map is purpose → data category → recipient → operation → legal basis → retention period. One technical vendor can serve several purposes, and one purpose can use several vendors. It follows that an “analytics” toggle without a defined content is not enough for a reproducible test.
Consent as a state machine
Section titled “Consent as a state machine”For a user or browser , purpose and time , the state can be defined as:
A transition is determined by the choice event and the applicable policy:
where is the action and is the version of the notice and rules. Expiry, changes of purpose and re-prompting are designed explicitly. Reloading a page must not by itself turn a refusal into consent. DPV describes consent, its states and processes in a machine-readable vocabulary; it is the output of a W3C Community Group, not a mandatory legal standard [3].
| Scenario | Property tested |
|---|---|
| First visit | The unknown state is handled according to the applicable requirements |
| Refusal | Dependent operations are not started by mistake |
| Partial choice | Each purpose is controlled independently |
| Withdrawal | Later actions take the new state into account |
| New version of purposes | The previous record is not silently extended |
| Moving between pages | State and version are kept consistent |
Permitting operations
Section titled “Permitting operations”An illustrative model of a technical gate:
means the operation matches the declared purpose, means an applicable legal basis exists, and means the operation’s other rules are met. For operations based on consent, depends on the granted state. This is a formalisation of the implementation; the mathematical expression does not by itself establish that the legal basis is valid.
Testing must observe the data actually being sent. The absence of a cookie does not prove that no network request was made or no identifier was transmitted. Likewise, writing a consent string does not prove that the consumers of the signal respect it. Race conditions are especially important: a script can send a request before the CMP has initialised.
Metrics and a reproducible experiment
Section titled “Metrics and a reproducible experiment”The share of violations of a test rule is defined as:
The absolute count and the class of each violation must also be shown: an average share can hide a rare transfer of a sensitive field. A zero on a sample does not prove that there are no problems in every browser.
For the experiment, a clean profile, the browser, regional settings, the application version and the CMP configuration are recorded. All transitions from the table are run, network traffic and storage are captured, and then the run is repeated after navigation and page reload. For example, 30 successful desktop browser scenarios do not replace a test of a mobile browser with its own loading order.
How Answerwell applies it
Section titled “How Answerwell applies it”Robots replay user scenarios and extract the observable data flows. Models classify the purposes of requests and match them against the vendor register; ambiguous results go through review. The use of own and licensed data and the training of models are documented according to the general methodology.
The effect of a CMP on analytics is studied separately. Users who give consent may systematically differ from everyone else. Observed purchases cannot automatically be multiplied by the inverse of the consent rate: such a reconstruction requires assumptions about the mechanism behind the missing data. Equally, a higher banner acceptance rate is not evidence of better-quality consent.
Limitations
Section titled “Limitations”A technical audit confirms selected properties of the implementation, but it does not replace an assessment of clarity, freedom of choice and the applicable law. Third-party code and server-side processing each have their own observation boundaries. Changes to the set of vendors, purposes or tags require a new test.
Sources
Section titled “Sources”- European Union. Regulation (EU) 2016/679, Articles 4, 6, 7. Official GDPR text.
- EDPB. Guidelines 05/2020 on consent under Regulation 2016/679, 2020. Guidelines.
- W3C Data Privacy Vocabularies and Controls Community Group. Data Privacy Vocabulary 2.2. Vocabulary of states and processing.
- Harshvardhan J. Pandit et al. Data Privacy Vocabulary (DPV) — Version 2, 2024. Research paper.
See also: data, AI and copyright law review, product analytics.