-
Notifications
You must be signed in to change notification settings - Fork 14
feat: add Plausible Analytics integration to demo app #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add Plausible Analytics integration to demo app #342
Conversation
|
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx affected -t lint typecheck test --parallel -... |
❌ Failed | 6m 3s | View ↗ |
nx affected -t test:e2e --parallel --base=556f4... |
✅ Succeeded | 6m 4s | View ↗ |
☁️ Nx Cloud last updated this comment at 2025-11-11 14:58:37 UTC
acc7fe9 to
a650055
Compare
5d9274d to
9257deb
Compare
a650055 to
e673bd3
Compare
91b2d67 to
b932450
Compare
639621a to
0c1e21b
Compare
b932450 to
388a018
Compare
…tracking functions - Introduced new documentation for setting up Plausible with a Cloudflare Worker proxy - Added a new worker script to proxy Plausible requests and avoid ad-blockers - Updated demo app to initialize Plausible with custom API host and tracking options - Created analytics utility functions for initializing and tracking events with optional properties and revenue - Modified layout to include Plausible initialization on mount - Updated package dependencies to include @plausible-analytics/tracker - Enhanced tracking capabilities with support for custom events and revenue data - Improved configuration flexibility and obfuscation to prevent detection and blocking - Overall, integrated first-party Plausible tracking via proxy for more reliable analytics
388a018 to
62dda08
Compare
0c1e21b to
556f4a1
Compare
Merge activity
|
# Add Plausible Analytics with Cloudflare Worker Proxy to Demo App This PR adds privacy-focused analytics to the demo app using Plausible Analytics with a Cloudflare Worker proxy to bypass ad blockers. The implementation includes: - A new analytics module with `initPlausible()` and `track()` functions for event tracking - Integration in the main layout file to initialize analytics on app mount - A Cloudflare Worker script for proxying requests to Plausible - Comprehensive setup documentation in `PLAUSIBLE_SETUP.md` The analytics implementation supports: - Custom event tracking with properties - Revenue tracking - Automatic pageview, outbound link, and file download tracking - Configurable localhost tracking for development The proxy setup helps avoid ad blockers by serving the Plausible script and forwarding events through a custom domain path.

Add Plausible Analytics with Cloudflare Worker Proxy to Demo App
This PR adds privacy-focused analytics to the demo app using Plausible Analytics with a Cloudflare Worker proxy to bypass ad blockers. The implementation includes:
initPlausible()andtrack()functions for event trackingPLAUSIBLE_SETUP.mdThe analytics implementation supports:
The proxy setup helps avoid ad blockers by serving the Plausible script and forwarding events through a custom domain path.