Skip to content

Connect PostHog to Infograph

What it brings in: projects, persons, group types, groups, cohorts and 18 more.

What you need

  • A PostHog account with access to the projects you want. Infograph reads with your key's access, and syncs every project the key can see, each as its own set of tables.
  • Where your PostHog lives: US Cloud (us.posthog.com), EU Cloud (eu.posthog.com), or your own self-hosted address, which must be reachable from the internet over https.

Steps

  1. Open Personal API keys in PostHog

    In PostHog, click your avatar at the bottom left, choose Account settings, then Personal API keys. Or open /settings/user-api-keys on your PostHog address.

  2. Create a key for Infograph alone

    Click Create a personal API key and label it Infograph. PostHog counts its rate limits per key, so a key used only by Infograph does not slow down your other tools. Under organisation and project access, keep all access or choose the projects you want synced.

  3. Give it read scopes

    Set Read on every scope. Infograph only reads, and uses: organization, project, user, person, group, cohort, feature flag, experiment, annotation, insight, dashboard, action, event definition, property definition, survey, query (survey responses need it) and early access feature. If you will sync raw events, persons export or sessions, also set Batch export to Write: it lets Infograph start PostHog's file exports, and changes nothing in your project.

  4. Copy the key

    Click Create key and copy it straight away. It starts phx_, and PostHog shows it only once.

  5. Paste it in Infograph and choose your tables

    Open PostHog in Infograph. Choose your Region: US Cloud, EU Cloud, or Self-hosted, where you also type your PostHog address. Paste the key into Personal API key and press Connect. Each project gets its own tables, named after it. Pick the ones you want and Infograph starts loading them. Raw events (UTC), Persons (export) and Sessions (UTC) start unticked, because PostHog bills them: read the next section before you tick them.

What it syncs

Each becomes a table in Infolake that you can chart, report on or ask about. You choose which to sync.

Projectsprojects

Every project the key can read, with its name, time zone and when it was created. Every other table is per project.

Ask: “Which PostHog projects does this connection read?”

Personspersons

Every person in the project, with their distinct ids, properties as JSON (email, plan, anything you set) and when they were created. Read whole on every sync, so a person deleted in PostHog drops out.

Ask: “How many people signed up each week this quarter?”

Group typesgroup_types

The kinds of group you track, such as company or team. Needs group analytics in PostHog.

Ask: “What group types do we track?”

Groupsgroups

Every group, such as each company, with its key, properties as JSON and when it was created.

Ask: “Which companies were created this month?”

Cohortscohorts

Your cohorts, with their name, description, size, whether static, and their filters. Members are not synced.

Ask: “Which cohorts are the largest?”

Show all 23 tables
Feature flagsfeature_flags

Every feature flag, with its key, name, whether active, rollout and variants as JSON, and when it was created, changed and last called.

Ask: “Which feature flags are still active but have not been called this month?”

Experimentsexperiments

Every experiment, with its name, start and end dates, feature flag, metrics, status and conclusion. Results are not synced.

Ask: “Which experiments ran this quarter, and how were they concluded?”

Experiment metricsexperiment_saved_metrics

The shared metrics your team defined for experiments.

Ask: “Which saved metrics do our experiments use?”

Experiment holdoutsexperiment_holdouts

The holdout groups your team keeps out of experiments, with their name and filters.

Ask: “Which holdouts do we have?”

Annotationsannotations

The notes your team added to charts, such as a release or a campaign, with their date. Explains spikes and dips.

Ask: “Did last month's release change signups?”

Insights (definitions)insights

Every saved insight in the project, with its name, its query as JSON, the dashboards it is on, and when it was created and changed. The definitions only: each insight's numbers are in its own table.

Ask: “Which insights are on our main dashboard?”

Dashboardsdashboards

Every dashboard, with its name, description, tags, whether pinned and when it was last viewed.

Ask: “Which dashboards has nobody viewed this month?”

Actionsactions

Your actions, named groups of events such as Signed up, with the steps that match them. Explains what each action counts.

Ask: “Which events make up our Signed up action?”

Event definitionsevent_definitions

Every event PostHog has seen in the project, with its description, tags, whether verified and when it was last seen. Tells you, and the AI, what is tracked.

Ask: “Which events have not been seen for 30 days?”

Event property definitionsevent_property_definitions

Every event property, with its name and type. Explains what you can read inside an event's properties.

Ask: “Which event properties are numbers?”

Person property definitionsperson_property_definitions

Every person property, with its name and type.

Ask: “What person properties do we track?”

Surveyssurveys

Every survey, with its name, type, questions as JSON, and start and end dates.

Ask: “Which surveys are running now?”

Survey responsessurvey_responses

Every survey response, one row each, with the survey, the person's distinct id, when it was submitted and the answers as JSON. Two years of history on the first load, then new responses.

Ask: “What was our average NPS score each month this year?”

Early access featuresearly_access_features

Your early access features, with their name, stage and the feature flag behind them.

Ask: “Which features are in beta right now?”

Events (billed by PostHog)events

Every event, one row each, through PostHog's file export: its id, name, distinct id, person id, timestamp and when PostHog received it, and its properties as JSON. Starts with the last 30 days. Starts unticked: PostHog bills exported rows past a million a month.

Ask: “Which pages do people visit before they sign up?”

Persons (export, billed by PostHog)persons_export

Persons through PostHog's file export, one row per distinct id, with the person id, properties as JSON, when created, and is_deleted for persons deleted in PostHog. Reads only what changed, so it suits a large project. Starts unticked: PostHog bills exported rows.

Ask: “How many persons were deleted this year?”

Sessions (billed by PostHog)sessions

Every session, one row each, through PostHog's file export: start and end times, duration, entry and exit pages, pageview count, whether it bounced, and its UTM tags and click ids. Starts with the last 30 days. Starts unticked: PostHog bills exported rows.

Ask: “Which traffic source brings the longest sessions?”

Saved insight resultsinsight

One table per saved insight, named after the project and the insight, holding its result as PostHog last computed it: one row per point of a trend, per step of a funnel, or per cohort and period of retention, with computed_at saying when. Read whole on every sync.

Ask: “How has the conversion of our signup funnel changed this month?”

Troubleshooting

Each entry is the message Infograph shows when a connection fails. Open it for the fix.

Those credentials were not accepted.

PostHog did not accept the key. Check you copied all of it, from phx_ to the end, and that it is a personal API key, not the project's public key that starts phc_. Then check the Region: a key from EU Cloud is refused on US Cloud, and the other way round. A key that was deleted or rolled, or whose user was deleted in PostHog, stops working too: create a new one under Account settings, Personal API keys, open the connection in Infograph, choose Edit configuration and paste it.

Common problems

These happen in PostHog itself, where Infograph cannot see them.

Events, persons export and sessions cost money on your PostHog bill
These three tables come through PostHog's file exports, the bulk route PostHog asks tools like Infograph to use, and PostHog bills every row exported past the first million in a month. That is why they start unticked. Events read the last 30 days on the first load, then only new events. Persons (export) reads two years of changed persons on the first load. Persons (export) and Sessions read the last day again on every sync, so those rows count again. Check PostHog's pricing page, and your billing limits, before you tick them on a busy project. Raw events also take about 150 MB of your Infolake per million.
A table fails saying the key cannot read it
The key is missing a scope, so only that table fails and the rest keep syncing. The message names the scope. In PostHog, open Account settings, Personal API keys, edit the Infograph key, add the scope and save. Then retry the table in Infograph. The three export tables need Batch export set to Write.
Insights and insight are different tables
Insights is one table per project listing every saved insight: its name, query, the dashboards it is on, and who changed it when. Each saved insight then also has its own table, named after the project and the insight, holding its result: a trend's points, a funnel's steps or a retention grid. Those numbers are PostHog's own, as last computed. Infograph never asks PostHog to recompute, so the computed_at column says how fresh they are. An insight nobody has opened has no result yet, and its table fails until someone opens it in PostHog. A new insight or project gets its tables after you press Re-discover streams.
Persons is slow on a large project
PostHog's persons list has no way to ask for recent changes, so Persons is read whole on every sync, 100 at a time, inside PostHog's limit of 1,200 requests an hour per key. That is about 120,000 persons an hour. For a larger project, untick Persons and use Persons (export), which reads only what changed and marks deleted persons with is_deleted.
Events arrive about an hour late
Exports are by when PostHog received each event, up to an hour ago. An event sent late, or imported, shows in the hour it arrived, under its own timestamp. Each export takes a few minutes, so a long first load is spread over several syncs.
A self-hosted PostHog does not connect
Infograph must reach your PostHog over the internet on https. An address on a private network, a VPN or localhost is refused. If your PostHog sits behind a firewall, let in 51.222.152.247.
Some fields are not synced
IP addresses and precise location (latitude, longitude, postal code) are removed from the properties of events, persons, sessions and survey responses. Events leave out the autocapture element chain and the person properties copied onto each event: join Events to Persons by person id instead. Cohort members and experiment results are not synced.