Skip to content

raulrpearson/plausible-proxy-deno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

plausible-proxy-deno

Simple Plausible Analytics proxy for Deno

For background on why you might want to proxy your Plausible Analytics, check out the docs.

After deploying, use this script in the sites that you'd like to track:

<script
  defer
  data-domain="your-domain.com"
  data-api="https://your-deno-subdomain.deno.dev/pap/event"
  src="https://your-deno-subdomain.deno.dev/pap/script.js"
></script>

Notice that the paths on the data-api and src fields can (and should) be customised to diminish the chances that your script is blocked, but notice that those two values need to remain in sync with the values in the worker script:

const SCRIPT_PATH = "/pap/script.js";
const EVENT_PATH = "/pap/event";

About

Simple Plausible Analytics proxy for Deno

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published