Proposal: Nginx for Plausible Proxy + Security Filtering #2580
mroderick
started this conversation in
Maintenance
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Plausible analytics (in
application.html.haml) gets blocked by adblockers (6-60% of users).Proposal
Run heroku/heroku-buildpack-nginx in front of Rails.
Benefits
/js/script.jsand/api/eventthrough our domain, bypassing adblockersImplementation
Add buildpack (index 1, before Ruby):
Create
config/nginx.conf.erbwith:PLAUSIBLE_SCRIPT_URL)Update
Procfile:Update Plausible snippet in
application.html.haml:Secondary Benefits
With nginx in front of Rails, we gain additional controls:
References
Beta Was this translation helpful? Give feedback.
All reactions