JCC Insight · Practical guide
Cookie consent on your website: what the banner must do
What Portuguese law requires before using analytics or advertising cookies, how the banner should work and how to check your site in 5 minutes.
The short answer
Article 5 of Portugal's Law 41/2004 says storing or reading information on a visitor's device is only allowed with prior consent, given on the basis of clear and complete information. The exception is what is strictly necessary to provide the service the person asked for, such as keeping a shopping cart or remembering their cookie choice.
In practice, analytics tools, the Meta Pixel, Google Ads tags and heatmaps should only start after the person accepts. A banner that appears while those tools are already running does not comply.
How the banner should work
In January 2023, the European Data Protection Board (EDPB) cookie banner taskforce published the practices data protection authorities consider problematic. They are a good reference when designing the banner:
- A reject button on the first layer, next to accept. Most authorities consider it mandatory.
- Rejecting with a button, not a link hidden in the text.
- No pre-ticked boxes in the preferences.
- Colours and contrast that do not push towards accepting.
- Legitimate interest is not a basis for non-essential cookies.
What should stay blocked until consent
Google Consent Mode helps tie tags to the banner choice, but it has to be set up correctly. On my site, advertising tags only fire after the person accepts, and the choice can be changed at any time from the footer.
- Analytics such as Google Analytics or Microsoft Clarity, when they use cookies or device identifiers.
- Advertising pixels and tags: Meta Pixel, Google Ads, TikTok.
- Third-party embedded videos and maps that set cookies, or a version that only loads when the person clicks.
- External chats and widgets that identify the visitor.
Check your site in 5 minutes
If advertising requests appear before any choice, the banner is only pretending.
- Open the site in a private window and do not touch the banner.
- In the browser's developer tools, look at stored cookies: before accepting, only necessary ones should appear.
- In the network tab, look for requests to facebook.com, google-analytics.com, googleads or clarity.ms before any choice.
- Click reject and browse two pages: advertising requests should not appear.
- Look in the footer for a way to change the choice.
Cookie policy and forms
The cookie policy should say which cookies the site uses, what for, whose they are and how long they last. It has to match what the site actually does: a list copied from another site is a problem, not protection.
For contact forms, GDPR applies too: say what the data is for, link to the privacy policy and do not add the contact to a newsletter without separate consent.
Frequently asked questions
Can I use Google Analytics without a banner?
If Google Analytics stores or reads cookies or identifiers on the visitor's device, it needs prior consent. Only what is strictly necessary for the requested service is exempt.
Does the reject button have to be on the first screen?
The 2023 EDPB taskforce report says most European authorities consider a reject button on the banner's first layer mandatory.
If someone rejects, can I show the banner on every page?
You should not. The choice is stored, and the person should be able to change it whenever they want from a visible link, usually in the footer.
Does JCC set up the banner and tags?
Yes, when it is part of the project: I set up the banner, connect tags to the choice and test before and after accepting. Policy wording should be approved by the client and reviewed by their legal adviser.
Measure without losing trust
Respecting rejection means less data. It is still the basis of any measurement you can trust, and it avoids complaints. If you plan to invest in ads, start here.
Tell me the context.
I'll tell you what should happen first, even when the answer isn't a new website.

