Skip to content

An Elixir Plug to proxy calls to Plausible through your server

Notifications You must be signed in to change notification settings

DockYard/plausible_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlausibleProxy

  1. Add plausible_proxy to your mix dependencies
def deps do
  [
    {:plausible_proxy, "~> 0.1.1"}
  ]
end
  1. Add PlausibleProxy.Plug to your Endpoint before your router:
defmodule MyAppWeb.Endpoint do
  ...
  plug PlausibleProxy.Plug
  ...
  plug MyAppWeb.Router
end
  1. Add a script tag to your site referencing the local path:
<script
  defer
  data-domain="{MyAppWeb.Endpoint.config(:url)[:host]}"
  src="/js/plausible_script.js"
></script>

See PlausibleProxy.Plug for optional configuration.

About

An Elixir Plug to proxy calls to Plausible through your server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages