View Source Plausible.Stats.Funnel (Plausible v0.0.1)

Module responsible for funnel evaluation, i.e. building and executing ClickHouse funnel query based on Plausible.Funnel definition.

Link to this section Summary

Link to this section Functions

Link to this function

funnel(site, query, funnel_id)

View Source
@spec funnel(
  Plausible.Site.t(),
  Plausible.Stats.Query.t(),
  Plausible.Funnel.t() | pos_integer()
) ::
  {:ok, map()} | {:error, :funnel_not_found}