Odoo Google Consent Mode

by
Odoo

37.21

v 17.0 Third Party 23
Live Preview
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Website (website)
Discuss (mail)
Community Apps Dependencies
Lines of code 627
Technical Name website_cookies_consent_google
LicenseOPL-1
Websitehttps://garazd.biz/shop
Versions 14.0 17.0 16.0 15.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Website (website)
Discuss (mail)
Community Apps Dependencies
Lines of code 627
Technical Name website_cookies_consent_google
LicenseOPL-1
Websitehttps://garazd.biz/shop
Versions 14.0 17.0 16.0 15.0
  • Community
  • Enterprise
Enterprise Community

Odoo Google Consent Mode on your website

Description

Google Consent Mode on Odoo websites enhances data privacy compliance while still leveraging Google's powerful analytics and advertising tools to optimize your online presence and marketing efforts.

Google Consent Mode complements the Google scripts, such as Google Tag (gtag.js) that is used for Google Ads, and Google Analytics 4 (GA4), Google Tag Manager (GTM), on your website with default consent settings. The default values of Google Consent parameters can be configured depends on the website visitor's geographic locations. There is no need to ask to make changes in your code, all settings are available from the Odoo UI. Configure and make changes to Google Consent Mode settings by yourself.

This module is compatible with standard the Odoo Cookie Bar, and can be used with third-party CMP services.

Benefits
Easy & Simple

Easy to activate and configure

Multi

Multi-Website support

Support

Free 30 days support and 180 days bug-fixing

Try me

Demo & Test. Click on the "Live Preview" button

Configuration
Default Google Consents

After installing the module, you will get a new Google Consent Mode website setting in the Privacy section.

Google Consent Mode setting in Odoo 17.0

To specify default values, go to the "Website" - "Configuration" - "Settings" menu and open Google Consent list with the "Default Google Consents" link.

Odoo Google Consent default values in 17.0
In this list, you can add or change default values for the following consent parameters of the Google Consent Mode:
Google Consent Mode for Odoo website 17.0
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 (for example, visit duration).
Functionality Storage functionality_storage Enables storage that supports the functionality of the website or app such as language settings.
Personalization Storage personalization_storage Enables storage related to personalization such as video recommendations.
Security Storage security_storage Enables storage related to security such as authentication functionality, fraud prevention, and other user protection.
Create a record, and specify what consent types should be granted by default.
Google Consent Mode setting default values in Odoo 17.0
Additional options that can be configured are:
  • Website - if you use the multi-website environment in your Odoo.
  • Regions - you can set different consent defaults for visitors from certain geographic locations.
  • Wait for Update - the time in milliseconds to wait before sending data.
There are two extra parameters that could be specified for websites:
Google Consent Mode URL passthrough setting in Odoo 17.0
  • Redact Ads Data (ads_data_redaction) - to further redact your ads data when ad_storage is denied, activate this parameter.
  • URL Passthrough (url_passthrough) - activate it for passing information about Ad clicks, such as ad click, client ID, and session ID, through URL parameters.
After settings, the gtag.js script will include the configured parameters:
Google Consent Mode in the gtag script on Odoo website 17.0
Odoo Cookie Bar
Activation

This app is compatible with Odoo Cookie Bar, if you use standard Odoo functionality to manage cookie consents. To configure it, choose the Odoo Cookie Bar as a Consent Manager.

Odoo Consent Manager Cookie Bar 17.0
Odoo Cookie Types
Odoo Cookie Bar has two types of cookies - Required Cookies, which are always set because they are necessary for the website to function properly. To allow only this type of cookie, the visitor should click "Only essentials".
And Optional Cookies that consent to the use of other types of cookies. Optional Cookies will be allowed when the visitor clicks on "I agree".
Odoo Cookie Bar 17.0

If your website visitors consent to the use of optional cookies, all consent types will be granted and the gtag script will be extended with an additional "consent update" directive on each web pages:

gtag('consent', 'update', {"security_storage": "granted", "functionality_storage": "granted", ... "ad_storage": "granted"});

Google Consent Mode Update in gtag script on Odoo 17.0 website
Third-party CMP
To use the module with third-party Consent Management Platforms, set the Cookie Manager to the None value. In this case, only default Google consent values will be added to the Gtag script.
Odoo Consent Manager is not specified for on Odoo 17.0 website
Consent to the use of different types of cookies will be managed by a third-party CMP service.
Contact Us
Support, customizations, and development
https://garazd.biz/contactus
Our expertise
Odoo Learning Partner
OCA Member
With Odoo since 2014
Over 10,000 app downloads and purchases
Explore our apps
Watch and subscribe
Version: 17.0.1.1.0
Module design is reserved | Copyright © Garazd Creation
Changelog
  • 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.
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.