Skip to content

[18.0][IMP] website_cookiefirst: optional cookies follow the Cookiefirst choice - #1245

Open
HviorForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-imp-website_cookiefirst-optional-cookies
Open

HviorForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-imp-website_cookiefirst-optional-cookies

Conversation

@HviorForgeFlow

Copy link
Copy Markdown
Member

Odoo only holds back its "optional" cookies (such as the odoo_utm_*
campaign cookies) while its own cookie bar is enabled, and with
Cookiefirst that bar is off. So every optional cookie was set on the
first request, before the visitor answered the Cookiefirst banner and
even after they rejected it.

Read the Cookiefirst consent cookie instead and allow optional cookies
only once the Performance category is accepted, the same category the
module already uses for Odoo's tracking code.

Impact: sites using Cookiefirst stop getting UTM cookies (and any other
optional Odoo cookie) from visitors who haven't accepted Performance.
The UTMs of the landing page are lost when the visitor accepts on a
later page, as with Odoo's own cookie bar.

Assisted-by: Claude Opus 5.5

…oice

Odoo only holds back its "optional" cookies (such as the odoo_utm_*
campaign cookies) while its own cookie bar is enabled, and with
Cookiefirst that bar is off. So every optional cookie was set on the
first request, before the visitor answered the Cookiefirst banner and
even after they rejected it.

Read the Cookiefirst consent cookie instead and allow optional cookies
only once the Performance category is accepted, the same category the
module already uses for Odoo's tracking code.

Assisted-by: Claude Opus 5.5

@AaronHForgeFlow AaronHForgeFlow left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants