View Source Plausible (Plausible Analytics v0.0.2)
Status
Currently the project is under development. All contributions are welcome.
V0.1.0 Roadmap
- Add
__using__/1macro toPlausibleso to allow usages like
defmodule MyApp.Plausible do
use Plausible, finch: MyApp.Finch
endwith this you can use Plausible.create_event(opts) instead of Plausible.create_event/3
- Add documentation for
Plausible.FinchSupervisorand the usage so the host app can create a finch process and the supervision for the finch process on the app instead of under library supervision, which will help when in umbrella app case, where two or more apps in the umbrella can have this library as dependency, but the finch processes will be spawn and supervised seperately on host apps
Summary
Functions
Create Plausible Event
Functions
Link to this function
create_event(endpoint \\ "https://plausible.io/api/event", finch_process, opts)
View SourceCreate Plausible Event
Currently only returns :ok
Examples
iex> create_event("https://plausible.io/api/event", MyApp.Finch, user_agent: user_agent, x_forward_for: x_forwarded_for, url: url, domain: domain)
:ok