View Source Plausible (Plausible Analytics v0.0.2)

Status

Currently the project is under development. All contributions are welcome.

V0.1.0 Roadmap

  1. Add __using__/1 macro to Plausible so to allow usages like
  defmodule MyApp.Plausible do
    use Plausible, finch: MyApp.Finch
  end

with this you can use Plausible.create_event(opts) instead of Plausible.create_event/3

  1. Add documentation for Plausible.FinchSupervisor and 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

Link to this function

create_event(endpoint \\ "https://plausible.io/api/event", finch_process, opts)

View Source

Create 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