Join our Newsletter — 33% off our NHI Course
Home› FAQ› Governance, Ownership & Risk› What is an example of Cookie Consent in…
Governance, Ownership & Risk

What is an example of Cookie Consent in practice?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 20, 2026 Domain: Governance, Ownership & Risk

An example of Cookie Consent in practice is a website that asks users to accept or reject non-essential tracking before those cookies are set. Consent should be specific, informed, and easy to withdraw, with separate controls for different purposes where required. Practitioners should verify that analytics and advertising tags do not fire before the user’s choice is recorded.

In practice, cookie consent is a control flow, not just a banner. The user sees a clear choice before non-essential cookies or tags run, the site records the decision, and the page then gates analytics, advertising, and other optional scripts based on that choice. Good implementations also preserve a usable “reject” path and a way to change the selection later.

The practical test is whether the site can prove that consent was obtained before processing began. That means the consent state must be available to the tag manager, the page should suppress non-essential requests until the state exists, and the interface should distinguish essential functions from optional tracking. A banner that only appears after tracking has already started is not meaningful consent.

For practitioners, the easiest way to think about it is “choice first, processing second.” The consent mechanism should be visible, specific to purpose, and consistent across the browser session so the same decision is not silently overwritten by later page loads or third-party embeds.

A workable example usually gives users at least three things: accept all, reject non-essential, and manage preferences. Inside the preference layer, users should be able to separate analytics from advertising where the legal and technical setup requires it. That keeps consent tied to the purpose of processing rather than a single bundled yes or no.

The banner and preference centre also need plain-language descriptions of what each category does. Users should not have to guess whether a cookie is for performance measurement, personalisation, or ad targeting. When consent is valid, the interface makes the choice obvious, and when consent is withheld, the site should still function for the parts that are genuinely necessary.

For teams operating in regulated environments, the visible UI is only one part of the control. You also need the back-end record of the choice, the configuration that maps that choice to tags, and the logic that prevents optional code from firing too early. NHIMG’s Consent Management Guide: Cookies, CMPs and GPC is the most direct internal reference for banners, consent logging, GPC, and consent mode behaviour.

Most failures are not about the wording of the banner, but about execution. A common issue is prior blocking being configured for one tag set while another script, pixel, or embedded tool still sends data before the consent decision is available. Another failure is using a design that nudges users into acceptance while making rejection hard to find or harder to use.

Another practical failure is mismatch between the user interface and the actual tracking stack. Teams may update the banner but forget a marketing tag, a server-side endpoint, or a third-party widget that still processes identifiers. In that case, the privacy promise and the technical implementation diverge, which creates both compliance exposure and trust damage.

Cookie consent also becomes brittle when organisations try to treat every cookie as the same thing. The user’s decision needs to be respected at the level of purpose and category, not just globally, and the site must still allow essential state to function without quietly turning that exception into a broad tracking allowance. The EU General Data Protection Regulation (GDPR) is the clearest external reference for the underlying principles, especially consent, transparency, data minimisation, and privacy by design.

Risk and Threat Considerations

Cookie consent failures can expose organisations to unlawful tracking, misleading user choice, and data collection that starts before valid consent exists. The operational risk is that the interface says one thing while the tag stack does another, which makes the site hard to defend in audits and easier to challenge by regulators or privacy-conscious users.

Failure mechanism: Tracking scripts, tags, or third-party embeds execute before the consent state is set, or they ignore the stored preference and continue processing anyway.

Impact: Personal data may be processed without a valid legal basis, consent records become unreliable, and the organisation may need to remediate both technical controls and prior collection.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 sets the technical controls, while GDPR and ISO/IEC 27001:2022 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
GDPRArt. 5 — Principles relating to processing of personal dataCookie consent must follow lawful, transparent, minimized processing.
Art. 25 — Data protection by design and by defaultConsent flows need technical defaults that block non-essential processing until choice is set.
Art. 32 — Security of processingConsent logs and preference enforcement are part of protecting processing integrity.
Recommendation — Align cookie choices to lawful processing principles and minimise optional tracking. Build consent gating into defaults so optional cookies stay off until selected. Protect consent records and enforcement logic so preferences cannot be bypassed.
ISO/IEC 27001:2022A.5.34 — Privacy and protection of PIICookie consent is a privacy control over personal-data collection and use.
Recommendation — Document cookie governance and ensure privacy controls match actual data collection.
NIST SP 800-53 Rev 5AC-3 — Access EnforcementConsent gating is an enforcement control that prevents unauthorized tracking actions.
Recommendation — Enforce preference states so disallowed tracking cannot execute.

Practitioner Guidance

What to verify: Test the page load sequence, not just the banner. Confirm that analytics, advertising, and other optional tags stay idle until a choice exists, and verify that rejection is honoured on refresh, across subpages, and after session restore.

Decision rule: If a script can identify, profile, or track a user before consent is recorded, treat it as a control failure even if the banner looks correct. If the script is truly essential, document why it is necessary and keep it outside the consented tracking set.

Practitioner takeaway: Cookie consent is only real when the technical enforcement matches the user interface, because the legal and operational risk comes from what fires, not from what the banner says.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org