fix: proxy Plausible analytics via first-party paths#575
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📦 Next.js Bundle Analysis for librechat.aiThis 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).
ae6cba4 to
c9bd25a
Compare
📦 Next.js Bundle Analysis for librechat.aiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
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
/js/pa-…jsand send events to/api/eonlibrechat.ai, proxied through a Cloudflare Worker to the self-hosted Plausible instance atplausible.librechat.ai. Bypasses ad-blocker false positives that were blocking the third-party script.plausible.librechat.ai.librechat.ai/js/,librechat.ai/api/e) since the browser no longer contactsplausible.librechat.aidirectly.Test plan
GET /js/pa-AxQn4zbc0KTWDDkxjlFGs.jsreturns 200 (proxied)POST /api/ereturns 200 and the event lands in the Plausible dashboard/privacyand/cookierender correctly with the new wording