From 6d486ad9544c5f563c676d063e6e92357eb45fcf Mon Sep 17 00:00:00 2001 From: webmaster Date: Mon, 2 Nov 2026 09:13:16 +0000 Subject: [PATCH] refactor(bf): hold the Google Ads id/label in the page, keep ads-consent.js generic Tag id + conversion label now live as data-ads-id / data-ads-send-to on the banner element, so the served HTML carries the tag config and the script stays reusable (missing config -> inert). Re-verified: no cookie/request before consent, cookies + tag after Accept, conversion + form submit on click, 700 ms fallback submit with the tag blocked. --- odoo-black-friday/index.html | 2 ++ static/ads-consent.js | 24 ++++++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/odoo-black-friday/index.html b/odoo-black-friday/index.html index b36feb6..f96dfc6 100644 --- a/odoo-black-friday/index.html +++ b/odoo-black-friday/index.html @@ -1070,6 +1070,8 @@ class="ads-consent" role="region" aria-label="Advertising cookie consent" + data-ads-id="AW-18065522009" + data-ads-send-to="AW-18065522009/vnDUCPDxt7AdENn6p6ZD" hidden >