Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
{{- if eq hugo.Environment "production" }}
<!-- Preconnect to Common Room (production only). -->
<link rel="preconnect" href="https://cdn.cr-relay.com" crossorigin />
<!-- Preconnect to OpenAI ad pixel CDN (production only). -->
<link rel="preconnect" href="https://bzrcdn.openai.com" crossorigin />
{{- end }}

<!-- Preload critical fonts (skip monospace on the homepage — not used above the fold). -->
Expand Down Expand Up @@ -474,6 +476,22 @@
});
</script>

<!-- OpenAI ad pixel (deferred to window.load to avoid blocking first paint) — Marketing & Analytics
consent-gated: loads only after the consent-managed Segment analytics is ready
(window.analytics.ready), same as the Floqer integration below. Fail-closed: if
consent-managed analytics never loads, the pixel never loads. -->
<script>
window.addEventListener('load', function() {
function loadOaiq() {
!function(w,d,s,u){if(w.oaiq)return;var q=function(){q.q.push(arguments)};q.q=[];w.oaiq=q;var j=d.createElement(s);j.async=1;j.src=u;var f=d.getElementsByTagName(s)[0];f.parentNode.insertBefore(j,f)}(window,document,"script","https://bzrcdn.openai.com/sdk/oaiq.min.js");
oaiq("init",{pixelId:"7KRuATZtZE3j5BSAZErZAb",debug:false});
}
if (window.analytics && typeof window.analytics.ready === "function") {
window.analytics.ready(loadOaiq);
}
});
</script>

<!-- Floqer (RB2B) visitor identification — Marketing & Analytics consent-gated (see partials/floqer.html). Page-scoped via `include_floqer` front matter. -->
{{ if .Params.include_floqer }}
{{ partial "floqer.html" . }}
Expand Down
Loading