Odoo: no cookie bar means all accepted
To paste another cookie banner, it is tempting to turn off Odoo's bar. Odoo then treats the visitor as having accepted everything. Here is what we measured.
In short
- Bar off: before the visitor chooses anything, Odoo grants consent to Google Analytics, sets its campaign cookie and lets YouTube videos through.
- Bar on: Odoo holds back all three until the visitor accepts.
- A banner pasted into “Code injection” changes nothing about what Odoo does on its side.
The setting in question
In Odoo 19, the bar is set in Website › Configuration › Settings, “Tracking & SEO” section. Turning it on also turns on the blocking of third-party services.
Odoo's documentation says it in one sentence: using third-party cookies without a cookies bar does not prevent them from being triggered (Odoo 19.0 documentation, “Cookies bar”). Our tests show what that means in practice.
What we measured
| What Odoo does | Bar off, no choice | Bar on, rejected |
|---|---|---|
| Consent granted to Google Analytics on load | Yes | No |
Google Analytics script (gtag.js) requested | Yes | No |
Campaign cookie odoo_utm_source, after a link with ?utm_source= | Set | Not kept |
| YouTube video embedded in a page | Loaded | Blocked |
| Odoo treats optional cookies as accepted | Yes | No |
Bar off, no choice
www.googletagmanager.com/gtag/jswww.youtube.com/embed/…fonts.googleapis.com/css
Bar on, rejected
fonts.googleapis.com/css
Why Odoo does this
Odoo's code starts from a simple idea: if the bar is off, you must be handling consent another way. The code comment puts it like this: “in the case no cookies bar has been enabled, this considers that full consent has been immediately given. Indeed, in that case, we suppose that the user implemented his own consent behavior through custom code / app.”
- On the server, Odoo checks whether the bar is on. If it is not, optional cookies are allowed (ir_http.py), and the consent to Google Analytics is written into the page (website.py).
- In the browser, Odoo looks for the “Only essentials” button of its bar. If it does not find it, it treats everything as accepted (http_cookie.js).
This code is the same in versions 19.3, 19.4 and 20.0, from reading it. Those versions have not been tested.
What you can do now
- Do not turn off Odoo's bar without knowing what replaces it.
- If Google Analytics is set in Odoo, remember that it follows Odoo's bar, not the banner you pasted.
- Check for yourself: open your site in a private window, accept nothing, then look at the Network tab of the developer tools. Look for requests to google-analytics.com, googletagmanager.com, facebook.net or youtube.com.
- If in doubt, ask for help.
rgpd.name is preparing a script that keeps Odoo's blocking and drives it from the visitor's choice. Hear when it is out.
Limits of this test
- Odoo 19.0 installed locally, public branch of October 2026, default settings. Odoo Online has not been tested yet.
- The Google Analytics ID was a dummy one, and outgoing requests were intercepted: we saw each request leave, without letting it through.
- One browser, Chromium. An ad blocker may change what you see on your side.