Skip to content

chore(docs): add RB2B + Reo + PostHog pixels to docs site#147

Merged
jpr5 merged 1 commit intomainfrom
add-marketing-pixels
Apr 29, 2026
Merged

chore(docs): add RB2B + Reo + PostHog pixels to docs site#147
jpr5 merged 1 commit intomainfrom
add-marketing-pixels

Conversation

@BenTaylorDev
Copy link
Copy Markdown
Contributor

@BenTaylorDev BenTaylorDev commented Apr 29, 2026

Summary

  • Adds the marketing pixels used by the main copilotkit.ai website (RB2B, Reo, PostHog) to the aimock docs site at aimock.copilotkit.dev, so visits flow into the same analytics + lead-attribution surfaces.
  • Implementation: a single docs/pixels.js loaded via <script src="/pixels.js" defer> from every HTML <head> (54 files). Keys are hardcoded — they're inherently public/
  • Also scopes docs/pixels.js out of .prettierignore and eslint.config.mjs ignores. The vendor IIFE snippets (PostHog loader, RB2B, Reo) trip ESLint's no-unused-expressions / no-undef rules and prettier OOMs on the long minified PostHog blob.

Test plan

  • After merge, load https://aimock.copilotkit.dev/ and confirm in DevTools Network that requests fire to static.reo.dev/..., b2bjsstore...amazonaws.com/..., and eu.posthog.com/...
  • Confirm no console errors on load
  • Spot-check a subpage (e.g. /integrate-langchain) — script should load via the same absolute path

🤖 Generated with Claude Code

Mirror the marketing pixels used on the main copilotkit.ai website
(../website/src/app/(default)/layout.tsx and PHProvider) so visits to
aimock.copilotkit.dev flow into the same analytics + lead-attribution
surfaces.

Static-site approach: a single docs/pixels.js loaded via
<script src="/pixels.js" defer> from every HTML <head>. Keys are
hardcoded — they're inherently public (every browser sees them) and
copying the env-var pattern from the Vercel-built website would require
adding a build step to GitHub Pages legacy/Jekyll.

The pixels.js file uses canonical vendor IIFE snippets (PostHog
loader, RB2B, Reo) that trip our ESLint rules and OOM prettier on
the long minified PostHog blob, so it's excluded from both.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 29, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@copilotkit/aimock@147

commit: 22a690e

@jpr5 jpr5 merged commit 502405d into main Apr 29, 2026
11 checks passed
@jpr5 jpr5 deleted the add-marketing-pixels branch April 29, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants