From 7497fbf588bc8676533f659fc8ae93b3ef7b9602 Mon Sep 17 00:00:00 2001 From: webmaster Date: Mon, 2 Nov 2026 09:23:14 +0000 Subject: [PATCH] feat(bf): fire the trial conversion behind the same consent gate Adds the second Google Ads label to /odoo-black-friday/: the free-trial form (#trialForm) now fires AW-18065522009/AtAPCIjjvrAdENn6p6ZD (action 7886320008 "Registrierung") when it is submitted. Reuses the existing gate in static/ads-consent.js rather than a second mechanism: the label is read from the page (data-ads-trial-send-to on #adsConsent), so the script stays generic. The page hands the gate its real submit function via window.o4pAds.trialConversion; the gate fires the conversion and runs the submit from the event callback, with the same 700 ms hard timeout that runs it anyway. Nothing fires and no cookie is set before consent (identical default-deny gate). The buy conversion is untouched (comments only). --- odoo-black-friday/index.html | 5 ++- static/ads-consent.js | 61 +++++++++++++++++++++++++++++++----- static/black-friday.js | 50 ++++++++++++++++++----------- 3 files changed, 88 insertions(+), 28 deletions(-) diff --git a/odoo-black-friday/index.html b/odoo-black-friday/index.html index f96dfc6..b9367f4 100644 --- a/odoo-black-friday/index.html +++ b/odoo-black-friday/index.html @@ -1063,7 +1063,9 @@