Elixir product analytics installation

  1. Install

    Add the PostHog Elixir library to your mix.exs dependencies:

    mix.exs
    def deps do
    [
    {:posthog, "~> 1.1.0"}
    ]
    end
  2. Configure

    Add your PostHog configuration to your config file:

    config/config.exs
    config :posthog,
    api_url: "https://us.i.posthog.com",
    api_key: "<ph_project_api_key>"
  3. Next steps

    Recommended
    ResourceDescription
    Capturing eventsLearn how to capture custom events beyond autocapture
    Identifying usersAssociate events with specific users
    Creating insightsBuild trends, funnels, and retention charts
    Group analyticsTrack events at the company or account level

Community questions

Was this page useful?

Questions about this page? or post a community question.