Overview
- Google Ads
- Google Analytics 4 (GA4)
- Google Tag Manager (GTM)
The module provides settings to configure default cookie consent parameters. Define these parameter values for different geographic locations of website visitors. The module requires no code changes, as the Odoo interface provides all necessary settings. Configure and modify Google Consent Mode parameters directly in Odoo.
This module is compatible with the native Odoo Cookie Bar and integrates with third-party Consent Management Platforms (CMPs).
| Availability |
Odoo Online
Odoo.sh
On Premise
|
|---|---|
| Compatibility |
Community
Enterprise
|
| Technical Name | website_cookies_consent_google |
| Version | 19.0.1.1.1 |
| License | OPL-1 |
| Category | |
| Support | Free 60 days support and 360 days bug-fixing |
Use Case
Jorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
Dorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.
It is a long established fact that a reader will be distracted by the readable content of a page
Korem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
Korem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.
Odoo App Installation
Upload modules
Upload modules from the ZIP archive to your Odoo hosting, or a GitHub repository connected there.
Place the unzipped modules in your custom add-on directory and restart the Odoo system service.
Update App List
After restarting, activate the Developer Mode, and go to the Apps menu.
Click on Update Apps List to fetch the new modules in the list.
Activate the App
Install the new module, finding it by name and clicking on the Activate button.
* If you don't see the module, try to remove the default Apps filter from the search bar.
Configuration
Follow the instructions in the module description to complete the installation process and start using the app.
Manual
Configuration
After installation, configure the default Google cookie consent parameters to match target audiences across different countries and your specific Odoo websites.
Default Google Consents
The module adds a new Google Consent Mode setting to the website configuration under the Tracking and SEO section:
To specify default values, open the Google consent list via the Default Google Consents link:
Use this list to add or modify default values for the following Google Consent Mode parameters:
| Consent Type | Parameter | v2 | Description |
|---|---|---|---|
| Ad Storage | ad_storage |
Enables storage, such as cookies, related to advertising. | |
| Ad User Data | ad_user_data |
✓ | Sets consent for sending user data related to advertising to Google. |
| Ad Personalization | ad_personalization |
✓ | Sets consent for personalized advertising. |
| Analytics Storage | analytics_storage |
Enables storage, such as cookies, related to analytics (e.g., visit duration). | |
| Functionality Storage | functionality_storage |
Enables storage that supports website or app functionality, such as language settings. | |
| Personalization Storage | personalization_storage |
Enables storage for personalization such as video recommendations. | |
| Security Storage | security_storage |
Enables security-related storage, such as authentication, fraud prevention, and other user protection capabilities. |
Create a record and specify the default consent types:
Configure these additional parameters as needed:
- Website: Use for multi-website environments in Odoo.
- Regions: Set default consent configurations for specific geographic regions.
- Wait for Update: Define the time in milliseconds to wait before sending data.
Additional Settings
The module provides two additional settings for websites:
- Ads Data Redaction (
ads_data_redaction): Enable to redact ad data when a visitor denies access toad_storage. - URL Passthrough (
url_passthrough): Enable to pass ad click information, client IDs, and session IDs through URL parameters.
Page Code Results
After configuration, the gtag.js script includes the specified parameters:
Odoo Cookie Bar
The module integrates with the native Odoo Cookies Bar and updates the gtag script based on user consent for essential and optional cookies.
Activation
To configure the native cookie bar, select Odoo Cookie Bar as the Consent Manager:
Odoo Cookie Types
The Odoo Cookies Bar offers two types of consent for using cookies:
- Essential: The module always sets these cookies because the website requires them for proper functionality. To allow only this type of cookie, the visitor must click Only Essentials.
- Optional: These grant consent for other cookie types. The module enables optional cookies when the visitor clicks I Agree.
If website visitors grant consent for optional cookies, the gtag script provides all consent types and extends with an additional consent update directive on each web page:
gtag('consent', 'update', {"security_storage": "granted", "functionality_storage": "granted", ... "ad_storage": "granted"});
Odoo Cookie Consent Banner Support
Provide your website visitors with a convenient cookie consent choice in accordance with Google Consent Mode v2 standards.
Third-Party CMP
To use the module with third-party Consent Management Platforms, set the Consent Manager parameter to None. In this case:
- The module adds only default Google consent values to the gtag script
- The third-party platform manages consent for different cookie types
Changelog
16.0.1.2.1 2025-07-02
- Fix the additional "cookie_consent_updated" call for the DataLayer.
16.0.1.2.0 2025-06-19
- Add the additional "cookie_consent_updated" call for the DataLayer, to trigger tags on the GTM side.
16.0.1.1.2 2024-07-17
- Add a common block to insert additional gtag calls.
16.0.1.1.1 2024-04-04
- Improve the JS logic to send the Google Consent update.
16.0.1.1.0 2024-03-16
- Implement the Google Consent Mode for the Google Tag Manager (GTM).
- Implement updating the Google Consents by clicking on the Odoo Cookie Bar buttons.
16.0.1.0.1 2024-02-24
- Rename fields.
16.0.1.0.0 2024-01-17
- Init version.
17.0.1.1.4 2026-04-21
- Improve handling user consent.
17.0.1.1.3 2024-08-21
- Improve updating of Google consents on the cookie bar buttons clicking.
17.0.1.1.2 2024-07-24
- Improve clearing of cache.
17.0.1.1.1 2024-07-17
- Add a common block to insert additional gtag calls.
17.0.1.1.0 2024-04-09
- Implement the Google Consent Mode for the Google Tag Manager (GTM).
- Implement updating the Google Consents by clicking on the Odoo Cookie Bar buttons.
17.0.1.0.0 2024-02-17
- Migration from 16.0.
15.0.1.1.1 2024-04-16
- Implement the debug logging option.
15.0.1.1.0 2024-04-02
- Implement the Google Consent Mode for the Google Tag Manager (GTM).
- Implement updating the Google Consents by clicking on the Odoo Cookie Bar buttons.
15.0.1.0.0 2024-03-16
- Migration from 16.0.
14.0.1.1.0 2024-08-14
- Implement the debug logging option.
- Implement the Google Consent Mode for the Google Tag Manager (GTM).
- Implement updating the Google Consents by clicking on the Odoo Cookie Bar buttons.
14.0.1.0.0 2024-03-16
- Migration from 15.0.
18.0.1.1.1 2026-04-21
- Improve handling user consent.
18.0.1.1.0 2026-04-01
- Improve mapping for Google consent types.
18.0.1.0.0 2024-10-08
- Migration from 17.0.
19.0.1.1.1 2026-04-21
- Improve handling user consent.
19.0.1.1.0 2026-04-01
- Improve mapping for Google consent types.
19.0.1.0.0 2025-09-22
- Migration from 18.0.