Add Reo.dev analytics script#906
Merged
Merged
Conversation
Load the Reo.dev tracking snippet via a Docusaurus plugin, gated on production deployments only (VERCEL_ENV === 'production'), matching the existing GTM and HubSpot behavior. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds the Reo.dev analytics loader to the Docusaurus site configuration, aligned with existing production-only tracking behavior for Vercel deployments.
Changes:
- Adds a
reo-devDocusaurus plugin. - Injects the Reo.dev tracking snippet into the document head only when
VERCEL_ENV === 'production'.
ninfriendos1
approved these changes
May 29, 2026
danbarr
added a commit
that referenced
this pull request
Jun 2, 2026
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.
Description
Adds the Reo.dev tracking snippet to the site via a Docusaurus plugin. Like the existing GTM and HubSpot integrations, it only loads on production Vercel deployments (
VERCEL_ENV === 'production'), so it stays disabled during local development and preview builds.The Reo snippet creates and appends its own
reo.jsscript element, so it's injected as a single headscripttag with nonoscript/preBody fallback needed. The minified snippet is kept verbatim as generated from the Reo.dev dashboard.Type of change
Related issues/PRs
N/A