Add OpenAI ad pixel to site head#20437
Conversation
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) <noreply@anthropic.com>
|
Your site preview for commit dc2a7ae is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-20437-dc2a7ae0.s3-website.us-west-2.amazonaws.com |
Pre-merge Review — Last updated 2026-07-22T22:59:14ZTip Summary: This PR wires OpenAI's Ads Measurement Pixel (the Review confidence:
Investigation log
🔍 Verification trail3 claims extracted · 1 verified · 1 unverifiable · 1 contradicted
🚨 Outstanding in this PRNo outstanding issues in this PR.
|
Lighthouse Performance ReportCommit: dc2a7ae | Metric definitions
|
|
Per the low-confidence item, implement the environment checking as described, as well as wiring this for GDPR compliance. Then #update-review |
CamSoper
left a comment
There was a problem hiding this comment.
Hold off on this before you merge it please
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 <noreply@anthropic.com>
|
🤖 Review updated on @CamSoper's request. |
What
Adds the OpenAI advertising pixel (
oaiq) to the site.Where
Placed in the
production-gated third-party script block inlayouts/partials/head.html, alongside the existing Common Room and Floqer scripts. So it loads only in production, not in local/preview builds.Details
window.loadto avoid blocking first paint, matching the Common Room pattern.preconnecttohttps://bzrcdn.openai.com(production only), matching the Segment/Common Room preconnect pattern.debug:false— the snippet as supplied haddebug:true, which would log to the console for every production visitor. Shipped with debug off; flip it if you actually want debug output live.Verification
npx prettier --checkpasses on the changed file.make lint/build errors present are pre-existing icon-sprite manifest issues, unrelated to this change).🤖 Generated with Claude Code