Skip to content

fix: proxy Plausible analytics via first-party paths#575

Merged
berry-13 merged 1 commit into
mainfrom
fix/plausible-link
May 11, 2026
Merged

fix: proxy Plausible analytics via first-party paths#575
berry-13 merged 1 commit into
mainfrom
fix/plausible-link

Conversation

@berry-13
Copy link
Copy Markdown
Member

@berry-13 berry-13 commented May 11, 2026

Summary

  • Load the Plausible script from /js/pa-…js and send events to /api/e on librechat.ai, proxied through a Cloudflare Worker to the self-hosted Plausible instance at plausible.librechat.ai. Bypasses ad-blocker false positives that were blocking the third-party script.
  • Update the Plausible sections of the privacy and cookie policies to explain the proxy and clarify that the dashboard still lives at plausible.librechat.ai.
  • Revise the opt-out guidance in both pages to point at the first-party paths (librechat.ai/js/, librechat.ai/api/e) since the browser no longer contacts plausible.librechat.ai directly.

Test plan

  • Load any page on the site and verify GET /js/pa-AxQn4zbc0KTWDDkxjlFGs.js returns 200 (proxied)
  • Trigger a pageview and verify POST /api/e returns 200 and the event lands in the Plausible dashboard
  • Confirm uBlock Origin / Brave Shields no longer block the requests
  • Spot-check /privacy and /cookie render correctly with the new wording

@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
librechat-ai Ready Ready Preview, Comment May 11, 2026 4:52pm

Request Review

@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for librechat.ai

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Load the Plausible script from /js/ and send events to /api/e on
librechat.ai, proxied through a Cloudflare Worker to the self-hosted
Plausible instance at plausible.librechat.ai. This avoids ad-blocker
false positives that were blocking the third-party script.

Update the Plausible sections of the privacy and cookie policies to
explain the proxy, and revise the opt-out guidance to point at the new
first-party paths instead of plausible.librechat.ai (which the browser
no longer contacts directly).
@github-actions
Copy link
Copy Markdown

📦 Next.js Bundle Analysis for librechat.ai

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@berry-13 berry-13 merged commit ad0e671 into main May 11, 2026
3 checks passed
@berry-13 berry-13 deleted the fix/plausible-link branch May 11, 2026 16: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.

1 participant