Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5952 Widoki

Cookie banner in Odoo website

Awatar
Odrzuć
Autor Najlepsza odpowiedź

!!! 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.


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sty 24
7585
2
lut 24
3020
2
lip 23
5443
3
lut 23
6574
0
sty 25
7677