View Source Hedgex (hedgex v0.2.0)

General methods for the Posthog API.

Options

Common options

  • :hedgex - a Hedgex.Env containing API configuration. Defaults to a context constructed by application config.

Summary

Types

@type event() :: %{
  :event => String.t(),
  :distinct_id => any(),
  optional(:properties) => map(),
  optional(:timestamp) => DateTime.t()
}

Functions

Link to this function

batch(events, opts \\ [])

View Source

See Hedgex.Api.batch/2.

Link to this function

capture(event, opts \\ [])

View Source

See Hedgex.Api.capture/2.

Link to this function

decide(distinct_id, opts \\ [])

View Source

See Hedgex.Api.decide/2.

Link to this function

identify(distinct_id, properties, opts \\ [])

View Source

Add metadata properties to users in PostHog.

See: https://posthog.com/docs/api/capture#identify