Linking GrowthBook as a source

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

PostHog Wizard hedgehog

The GrowthBook connector syncs your feature flag, experimentation, and A/B testing data into the PostHog data warehouse. GrowthBook is an open-source feature flagging and experimentation platform.

Prerequisites

You need a GrowthBook account with API access and a secret API key.

Creating an API key

  1. Sign in to your GrowthBook account.
  2. Go to Settings > API Keys.
  3. Create a new API key with read access to the resources you want to sync.
  4. Copy the secret key.

Adding a data source

  1. In PostHog, go to the Sources tab of the data pipeline section.
  2. Click + New source and click Link next to this source.
  3. Enter your credentials (see Configuration below) and click Next.
  4. Select the tables you want to sync, choose a sync method and frequency, then click Import.

Once the syncs are complete, you can start querying this data in PostHog.

When linking GrowthBook, you'll need:

  • API key – the secret key created under Settings > API Keys in your GrowthBook dashboard.

Available tables

TableDescriptionSync method
featuresFeature flags with default values, targeting rules, environments, and revision metadataFull refresh
experimentsExperiments with hypotheses, variations, phases, analysis settings, and statusFull refresh
metricsLegacy metric definitions with data sources, query settings, and measurement behaviorFull refresh
fact_tablesFact table definitions with SQL, identifier columns, and data source referencesFull refresh
fact_metricsMetrics built from fact tables, including numerator, denominator, and analysis settingsFull refresh
segmentsReusable experiment populations defined by queries or fact table filtersFull refresh
dimensionsQuery-based dimensions for grouping experiment resultsFull refresh
projectsProjects that organize feature flags, experiments, and access settingsFull refresh
environmentsFeature flag environments and their default states, project scopes, and parent environmentsFull refresh
saved_groupsReusable targeting groups defined by attribute values or conditionsFull refresh
data_sourcesData source definitions with identifier types and experiment assignment queriesFull refresh
membersOrganization members with global roles, project roles, and environment accessFull refresh
teamsTeams with their members, global roles, project roles, and environment accessFull refresh
namespacesNamespaces that split traffic so experiments in the same namespace stay mutually exclusiveFull refresh
holdoutsHoldouts that keep a persistent control group out of features and experimentsFull refresh
experiment_resultsThe latest completed results snapshot for each experiment, with per-variation metric resultsFull refresh
feature_revisionsFeature flag revisions across all features, with their status, author, rules, and publish stateFull refresh
saved_group_revisionsSaved group revisions with their proposed changes, reviews, and publish stateFull refresh
reportsSaved experiment reports with their analysis settings, sharing level, and latest resultsFull refresh
contextual_banditsContextual bandits with their variations, contextual attributes, decision metric, and allocation settingsFull refresh
contextual_bandit_resultsThe latest stats engine output for each contextual bandit, with overall variation weights and per-leaf resultsFull refresh

Sync modes

Each table can be synced in one of several modes, depending on what the source supports:

  • Webhook (when available) – the source pushes changes to PostHog in real time. Fastest freshness, lowest ongoing cost, and the only mode that reliably captures updates and deletes.
  • Incremental – only new or updated rows are synced on each run, using a cursor field (such as an updated_at timestamp). Cheaper than a full refresh, but deletes aren't captured.
  • Append only – new rows are appended using a cursor field; existing rows are never updated. Ideal for immutable, append-only tables like event logs.
  • Full refresh – the whole table is reloaded on every sync. Use it when a table has no reliable cursor or when you need deletions reflected.

See sync methods for a full explanation of how each mode works and how to choose between them.

All GrowthBook tables are full refresh only. The GrowthBook API doesn't expose server-side timestamp filters, so each sync reloads the full dataset.

Configuration

OptionDescription
API key
Type: password
Required: True
API base URL
Type: text
Required: False

For self-hosted GrowthBook, enter your public HTTPS API URL including /api.

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
features

Feature flags with default values, targeting rules, environments, and revision metadata.

Full refresh——
experiments

Experiments with hypotheses, variations, phases, analysis settings, and status.

Full refresh——
metrics

Legacy metric definitions with data sources, query settings, and measurement behavior.

Full refresh——
fact_tables

Fact table definitions with SQL, identifier columns, and data source references.

Full refresh——
fact_metrics

Metrics built from fact tables, including numerator, denominator, and analysis settings.

Full refresh——
segments

Reusable experiment populations defined by queries or fact table filters.

Full refresh——
dimensions

Query-based dimensions for grouping experiment results.

Full refresh——
projects

Projects that organize feature flags, experiments, and access settings.

Full refresh——
environments

Feature flag environments and their default states, project scopes, and parent environments.

Full refresh——
saved_groups

Reusable targeting groups defined by attribute values or conditions.

Full refresh——
data_sources

Data source definitions with identifier types and experiment assignment queries.

Full refresh——
members

Organization members with global roles, project roles, and environment access.

Full refresh——
teams

Teams with their members, global roles, project roles, and environment access.

Full refresh——
namespaces

Namespaces that split traffic so experiments in the same namespace stay mutually exclusive.

Full refresh——
holdouts

Holdouts that keep a persistent control group out of features and experiments, with their linked experiments, features, and lifecycle stage.

Full refresh——
experiment_results

The latest completed results snapshot for each experiment, with per-variation metric results and analysis settings.

Full refresh——
feature_revisions

Feature flag revisions across all features, with their status, author, rules, and publish state.

Full refresh——
saved_group_revisions

Saved group revisions with their proposed changes, reviews, and publish state.

Full refresh——
reports

Saved experiment reports with their analysis settings, sharing level, and latest results.

Full refresh——
contextual_bandits

Contextual bandits with their variations, contextual attributes, decision metric, and allocation settings.

Full refresh——
contextual_bandit_results

The latest stats engine output for each contextual bandit, with overall variation weights and per-leaf results.

Full refresh——

Troubleshooting

  • 401 error – your GrowthBook API key is invalid or has been revoked. Create a new key in your GrowthBook dashboard and reconnect.
  • 403 error – your API key lacks read permissions for the requested resource. Check that the key has the appropriate access in GrowthBook.

If your sync is failing or data looks wrong, see the Data warehouse troubleshooting guide. If that doesn't help, contact support – we're happy to help.

Still have questions?

Was this page useful?