chore(docs): add RB2B + Reo + PostHog pixels to docs site#147
Merged
Conversation
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>
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
aimock.copilotkit.dev, so visits flow into the same analytics + lead-attribution surfaces.docs/pixels.jsloaded via<script src="/pixels.js" defer>from every HTML<head>(54 files). Keys are hardcoded — they're inherently public/docs/pixels.jsout of.prettierignoreandeslint.config.mjsignores. The vendor IIFE snippets (PostHog loader, RB2B, Reo) trip ESLint'sno-unused-expressions/no-undefrules and prettier OOMs on the long minified PostHog blob.Test plan
static.reo.dev/...,b2bjsstore...amazonaws.com/..., andeu.posthog.com/.../integrate-langchain) — script should load via the same absolute path🤖 Generated with Claude Code