From 7497c84569fa2c51af0c7535573ed25af20ed938 Mon Sep 17 00:00:00 2001 From: Alex Leventer Date: Tue, 21 Jul 2026 15:34:13 -0700 Subject: [PATCH 1/2] Add OpenAI ad pixel to site head Adds the OpenAI advertising pixel (oaiq) to the production-gated third-party script block in the head partial, alongside Common Room and Floqer. Deferred to window.load to avoid blocking first paint, and adds a matching preconnect to the pixel CDN. Ships with debug:false. Co-Authored-By: Claude Opus 4.8 (1M context) --- layouts/partials/head.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f86e171a8a7b..90bc1640d3f1 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,6 +19,8 @@ {{- if eq hugo.Environment "production" }} + + {{- end }} @@ -474,6 +476,14 @@ }); + + + {{ if .Params.include_floqer }} {{ partial "floqer.html" . }} From dc2a7ae0def757672fdaab63623f60167f5a9f44 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2026 22:58:17 +0000 Subject: [PATCH 2/2] Consent-gate OpenAI ad pixel for GDPR compliance The pixel already fires only in production (nested in the same hugo.Environment guard as Common Room/Floqer); wire it to wait on window.analytics.ready(), matching the Floqer integration, so it only loads after Marketing & Analytics consent is granted. Co-Authored-By: Claude --- layouts/partials/head.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 90bc1640d3f1..e7db802d8150 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -476,11 +476,19 @@ }); - +