Many websites have a cookie banner that is just a notice bar with an "Understood" button, while tracking tags still run as soon as the page opens. In principle, this approach does not meet the "consent" requirement set by privacy regulations such as Europe's GDPR. This article helps website owners build a banner that goes in the right direction, based on guidance from the EDPB, the European Data Protection Board.
Three cookie groups to separate
Before building a banner, take stock of the cookies and tags running on your website. They are usually divided into:
- Necessary. Maintains login sessions and shopping carts, supports security, and remembers cookie choices. This group usually doesn't need consent.
- Analytics. Measures traffic and user behavior (for example Google Analytics).
- Advertising. Tracking for running ads, remarketing, and measuring conversions.
Each cookie should have a name, provider, purpose, and duration. Cookie scanning tools and the browser's Application tab help build this table. The description of the "necessary" group must be truly accurate; don't put advertising cookies there to avoid asking for consent.
Consent before loading tags
According to EDPB guidance, valid consent must be freely given, specific, informed, and unambiguous. Some practical consequences:
- No preloading. Analytics and advertising tags only run after users choose to consent to the corresponding group.
- No pre-ticked boxes. Checkboxes must be off by default.
- Rejecting is as easy as accepting. The "Reject" or "Necessary only" button should be as visible as the "Accept" button.
- Let users choose by group. Provide a detailed settings window.
- Easy to withdraw. A small link in the footer lets users reopen the choices panel and change their minds at any time.
- No coercion. Don't block users from content just because they refuse unnecessary cookies, unless there is a legitimate reason.
For Google advertising, the Consent Mode mechanism lets tags adjust their behavior according to the user's choice. For the state of Chrome's third-party cookies, see Google keeps third-party cookies which describes developments at that time, while Consent Mode v2 explains how to signal consent status.
Keep consent records
When you need to prove that a user consented, you need evidence. You should store:
- The time of the choice, and the version of the banner text and policy at that time.
- The choice for each group.
- An anonymous identifier of the browser or session.
- How the user interacted (accept, reject, customize).
Records should only contain data that is truly necessary, with a reasonable retention period. Many plugins and consent management services have this feature built in; check where the data is stored and who can access it.
A clear policy
The banner is only the entry point. The Cookie or Privacy Policy page needs to state clearly:
- Which cookies are used, by whom, for what purpose, and for how long.
- Whether data is transferred to third parties.
- How to change or withdraw choices.
- Contact information of the party responsible for data processing.
Language should be simple, in Vietnamese for Vietnamese users. When adding new tools (chat, maps, embedded video), update the cookie table too. This review can be part of the monthly WordPress maintenance schedule. For related security protocols, see the articles Chrome 68 marks HTTP as not secure, Chrome 56 and HTTP and Let's Encrypt leaves beta.
A note on scope
EDPB guidance is for the European region. Websites serving Vietnamese customers should also check domestic personal data regulations. This article is not legal advice; check the official documents or consult a legal expert.
2026 update: Vietnam's Personal Data Protection Law takes effect from January 1, 2026, so how consent is requested and stored deserves even more review; check the official documents and guidance. Guidance on handling security incidents is in website infected with malware: 8 steps to handle it, safe WordPress security upgrades and hosting or VPS for small businesses.
If you need help with designing the website or server and website security, you can contact HVSC's Technology team.
FAQ
Is a cookie banner mandatory?
It depends on the rules that apply to your website and audience. For visitors in Europe, EDPB's consent guidance is very clear; for Vietnam, see the official documents.
Do necessary cookies need consent?
Usually not, if the cookies are genuinely needed for a function the user requested such as a shopping cart or login.
Is clicking "Accept" enough to keep proof?
Not enough. You need to record the time, the policy version, and the choice for each group.
Reference sources
- EDPB, Guidelines 05/2020 on consent under Regulation 2016/679 — https://www.edpb.europa.eu/our-work-tools/our-documents/guidelines/guidelines-052020-consent-under-regulation-2016679_en
- EDPB — https://www.edpb.europa.eu/
- Google, Consent Mode — https://support.google.com/analytics/answer/9976101
Need advice on websites, software or security?
Describe the problem, and HVSC engineers will discuss the scope and options suited to your business.
FAQ
Is a cookie banner mandatory?
It depends on the rules that apply to your website and audience. For visitors in Europe, EDPB's consent guidance is very clear; for Vietnam, see the official documents.
Do necessary cookies need consent?
Usually not, if the cookies are genuinely needed for a function the user requested such as a shopping cart or login.
Is clicking "Accept" enough to keep proof?
Not enough. You need to record the time, the policy version, and the choice for each group.
- iPhone with full storage: back up first, then clean up, to avoid losing data
- Black Friday 2026: How to Tell Real Deals from Fake Ones Before You Buy
- Cài phần mềm trên Ubuntu: apt, snap và những lưu ý khi cập nhật













▶
▶
▶
▶
▶