Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5951 Zobrazení

Cookie banner in Odoo website

Avatar
Zrušit
Autor Nejlepší odpověď

!!! Since version 13, this feature is standard in the website settings !!!

For previous version if you customer needs a cookie banner on his website, here is what you can do as workaround.

Just copy/paste in the website 'homepage' the code generated Here , once you have configured it.


Avatar
Zrušit
Nejlepší odpověď

Hi Oliver,

The standard Odoo Cookie Bar allows you to grant access to only essential cookies or for all cookies. According to the changes from Google Consent Mode that have been announced in 2024, all webpages should contain the default values for Google Consent types, like the following sample:

gtag('consent', 'default', {
  'ad_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'analytics_storage': 'denied'
})


When a new visitor comes to your website, the Cookie Bar is displayed for him. After making a choice for cookies, the Google Consent types should be updated, according to the visitor's choices. And an additional request should be sent to Google, like this one:

  gtag('consent', 'update', {
    'ad_user_data': 'granted',
    'ad_personalization': 'granted',
    'ad_storage': 'granted',
    'analytics_storage': 'granted'
  })


But, there is no any logic in the standard Odoo to insert these default values and update them after visitor granting consent.

We have developed Odoo Google Consent Mode app to manage Google Consent Mode types in Odoo, and properly insert them to website pages. This solution is compatible with the standard Odoo Cookie Bar and extends its functionality with updating the Google Consent Mode types.


In case, if you need an extended solution and integrate a Cookie Banner with specific cookie types to choice, such as "Necessary", "Functionality", "Analytics", "Marketing", the Odoo Cookie Consent Banner module is available in Odoo Apps.


Best regards, Yurii Razumovskyi.

Company Garazd CreationOdoo solutions for e-Commerce, SEO, Data Feeds, Website Tracking, Marketing and Analytics integrations, Product Label designing and printing.

https://garazd.biz

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
led 24
7583
2
úno 24
3018
2
čvc 23
5441
3
úno 23
6573
0
led 25
7673