Skip to content
AnswerWell geo Documentation

Answerwell tools · 4 min read · Answerwell

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.

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.

For a user or browser uu, purpose pp and time tt, the state can be defined as:

Cu,p,t∈{unknown,granted,denied,withdrawn}.C_{u,p,t}\in\{unknown,granted,denied,withdrawn\}.

A transition is determined by the choice event and the applicable policy:

Ct+1=δ(Ct,at,v),C_{t+1}=\delta(C_t,a_t,v),

where ata_t is the action and vv 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

An illustrative model of a technical gate:

Allow(o,u,t)=Scope(o,u,t)∧Basis(o,u,t)∧Policy(o,t).Allow(o,u,t)=Scope(o,u,t)\land Basis(o,u,t)\land Policy(o,t).

ScopeScope means the operation matches the declared purpose, BasisBasis means an applicable legal basis exists, and PolicyPolicy means the operation’s other rules are met. For operations based on consent, BasisBasis 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.

The share of violations of a test rule is defined as:

V=Ndisallowed observed operationsNaudited operations.V=\frac{N_{\mathrm{disallowed\ observed\ operations}}} {N_{\mathrm{audited\ operations}}}.

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.

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.

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.

  1. European Union. Regulation (EU) 2016/679, Articles 4, 6, 7. Official GDPR text.
  2. EDPB. Guidelines 05/2020 on consent under Regulation 2016/679, 2020. Guidelines.
  3. W3C Data Privacy Vocabularies and Controls Community Group. Data Privacy Vocabulary 2.2. Vocabulary of states and processing.
  4. Harshvardhan J. Pandit et al. Data Privacy Vocabulary (DPV) — Version 2, 2024. Research paper.

See also: data, AI and copyright law review, product analytics.