Connect PostHog

Visitor and signup milestones from your app's analytics.

2 minAll plansRead-only

What it unlocks

  • Visitor milestones, like your first 1,000 visitors in a week
  • Signup milestones, if you tell Loudcode your signup event
  • Your traffic on Home, and better post ideas from your numbers

Connect it

  1. Create a personal API key
    In PostHog, open Settings, then Personal API keys, and create a key named Loudcode.
  2. Give it one scope
    Give it access to your project and only the Query: Read scope. Copy it (it starts with phx_).
  3. Find your project ID
    It's in Project settings, and in the address after /project/. It's a number, like 12345.
  4. Paste it into Loudcode
    In Loudcode, open Settings in the sidebar, find PostHog under Analytics and click Connect. Paste the key and project ID. Add your signup event too if you want signup milestones (see below).

The signup event

The event your app sends to PostHog when someone signs up, like user_signed_up. Copy the exact name from PostHog's Activity or Events list. Leave it empty to track visitors only.

What Loudcode can see

Loudcode can
  • Count weekly visitors (unique people)
  • Count your signup event, if you set one
Loudcode can't
  • See who your visitors are
  • Change dashboards, flags or data
  • Read session recordings

Troubleshooting

  • Signups show 0. Check the event name matches PostHog exactly, including capitals and underscores.
  • "This key can't run queries on that project." Edit the key in PostHog: give it access to the project and the Query Read scope.
  • "Couldn't find that project ID." Use the number from Project settings, not the project name.
  • EU cloud? Both US and EU PostHog cloud work with the same steps.
Was this page helpful?