Skip to main content
Connectors

PostHog connector

Set up the PostHog connector in Kaivo: authentication, configuration, the 7 BigQuery tables it syncs, and answers to common questions.

Written By Lauri Raivio

Last updated 16 days ago

Kaivo is a fully managed data platform that syncs your PostHog data into a Google BigQuery warehouse and keeps it up to date automatically. There is no pipeline to build and no infrastructure to run, so you can spend your time analysing your marketing and sales data instead of moving it.

What is the PostHog connector

Sync your PostHog events and user data into BigQuery with Kaivo to analyse product usage and conversion alongside the rest of your data.

CategoryTech, Marketing & Sales
AuthenticationAPI key
SetupSelf-service

Getting started with the PostHog connector

  1. Sign up for Kaivo and create a workspace.
  2. Connect your PostHog account.
  3. Choose which tables to sync.
  4. Wait for the initial sync to finish.
  5. Query your data in BigQuery or your favourite AI or BI tool.

Authenticating PostHog

Authenticate with your API Key.

FieldDescription
API Key

Configuring the PostHog connector

When you set up the connector, you provide:

FieldDescription
Base URL

Base PostHog URL. This will be different depending on whether you use PostHog Cloud or are self-hosting PostHog. For US Cloud users the URL is https://app.posthog.com and for EU users it is https://eu.posthog.com

Start Date

Any data before this date will not be fetched.

Tables and columns synced from PostHog

Kaivo syncs 7 tables from PostHog into a dedicated dataset in your BigQuery warehouse. Click any table to see its columns and types.

ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idINT64
contentSTRING
date_markerTIMESTAMP
creation_typeSTRING
dashboard_itemSTRING
created_by__idINT64
created_by__uuidSTRING
created_by__distinct_idSTRING
created_by__first_nameSTRING
created_by__emailSTRING
created_atTIMESTAMP
updated_atTIMESTAMP
deletedBOOL
scopeSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idINT64
nameSTRING
deletedBOOL
is_calculatingBOOL
created_by__idINT64
created_by__uuidSTRING
created_by__distinct_idSTRING
created_by__first_nameSTRING
created_by__emailSTRING
created_atTIMESTAMP
last_calculationSTRING
errors_calculatingINT64
countINT64
is_staticBOOL
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: cohorts__groups

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
daysSTRING
action_idSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: cohorts__groups__properties

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idSTRING
distinct_idSTRING
eventSTRING
timestampTIMESTAMP
person__is_identifiedBOOL
elements_chainSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: events__person__distinct_ids

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: events__elements

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idINT64
nameSTRING
keySTRING
rollout_percentageINT64
deletedBOOL
activeBOOL
created_by__idINT64
created_by__distinct_idSTRING
created_by__first_nameSTRING
created_by__emailSTRING
created_atTIMESTAMP
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: feature_flags__filters__properties

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
short_idSTRING
nameJSON
filters__displaySTRING
filters__insightSTRING
filters__intervalSTRING
filters__date_fromSTRING
filters_hashSTRING
orderSTRING
deletedBOOL
last_refreshSTRING
refreshingBOOL
created_atSTRING
created_by__idFLOAT64
created_by__uuidSTRING
created_by__distinct_idSTRING
created_by__first_nameSTRING
created_by__emailSTRING
descriptionSTRING
updated_atSTRING
favoritedBOOL
savedBOOL
last_modified_atSTRING
last_modified_by__distinct_idSTRING
last_modified_by__emailSTRING
last_modified_by__first_nameSTRING
last_modified_by__idFLOAT64
last_modified_by__uuidSTRING
is_sampleBOOL
effective_restriction_levelFLOAT64
effective_privilege_levelFLOAT64
timezoneSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: insights__result

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
action_idSTRING
average_conversion_timeSTRING
converted_people_urlSTRING
countFLOAT64
custom_nameSTRING
nameSTRING
median_conversion_timeSTRING
orderFLOAT64
typeSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: insights__tags

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idSTRING
nameSTRING
created_atTIMESTAMP
uuidSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

Subtable: persons__distinct_ids

ColumnTypeDescription
_kaivo_parent_idSTRINGForeign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo.
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
valueSTRING
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.
ColumnTypeDescription
_kaivo_idSTRINGPrimary key that uniquely identifies the row. Auto-generated by Kaivo.
idFLOAT64
uuidSTRING
organizationSTRING
api_tokenSTRING
nameSTRING
completed_snippet_onboardingBOOL
ingested_eventBOOL
is_demoBOOL
timezoneSTRING
access_controlBOOL
effective_membership_levelFLOAT64
_kaivo_extracted_atTIMESTAMPTimestamp that shows when the row was extracted. Auto-generated by Kaivo.

How the PostHog sync works

After the first load, Kaivo keeps your BigQuery warehouse up to date for you. Where PostHog supports it, each sync pulls only new and changed records so it stays fast; otherwise it refreshes the whole table. Every record keeps its original ID, so you won't get duplicate rows.

Frequently asked questions

How long does the initial sync take for PostHog?

It depends on how much history is in your PostHog account. Most initial syncs finish within minutes, while large accounts can take a few hours. After that, syncs only fetch new and changed records, so they're much faster.

Can I sync only some tables or columns?

Yes. You pick which tables to sync when you set up the connection and can change the selection later. Tables you don't select are never copied to your warehouse.

What happens when PostHog's schema changes?

New fields are never added automatically. You choose which fields to sync, so data you haven't selected (sensitive personal data, for example) never lands in your warehouse. When a new field appears, it becomes available for you to add. What happens to removed or renamed fields depends on a table's sync mode: full-refresh tables always match what's currently in PostHog, so dropped fields disappear, while incremental tables keep their existing columns and history, so an old field stays and newly added fields fill in over time.

How do I handle GDPR or data deletion requests?

Your data lives in your own Kaivo-managed BigQuery warehouse, so the most direct option is to delete or anonymise specific records right in BigQuery. If you delete data in PostHog instead, full-refresh tables drop it on the next sync, while incremental tables keep it, so you would remove the row in BigQuery or ask us to run a full refresh. To remove everything, delete the PostHog connector in Kaivo and all of its synced data is deleted with it.

Common use cases for PostHog data

Funnel and retention

Analyse events to measure activation, conversion, and retention.

Feature usage

Break events down by type to see which features get used and by whom.

Track active users and sessions over time to monitor engagement.

Product and revenue together

Join PostHog events with billing data in BigQuery to connect usage to revenue.

Use PostHog data in your AI and BI tools

Once PostHog data lands in your Kaivo-managed BigQuery warehouse, you can explore it with AI tools or any BI tool that connects to BigQuery. Here's how the most common destinations work with PostHog data.

Claude

Use Kaivo's MCP server to give Claude secure, workspace-scoped access to your data. Setup guide →

Power BI

Microsoft's BI tool with a native BigQuery connector. Supports direct query and scheduled refresh. Setup guide →

Data Studio

Free Google BI tool with native BigQuery support. One-click connection to your Kaivo warehouse; great for SMB teams on Google Workspace. Setup guide →

Tableau

The premium analytics standard, with native BigQuery integration. Setup guide →

Google Sheets

Use Connected Sheets to query BigQuery directly from a spreadsheet, with no SQL. Setup guide →

Excel

Connect via Power Query's BigQuery connector. Setup guide →

Metabase

Open-source BI tool with strong BigQuery support. Setup guide →

See our pricing page for PostHog connector pricing and plan details.

Was this helpful?

Still need help? Share an idea