LogoLogo
  • 🦩Overview
  • 💾Datasets
    • Overview
    • Core Concepts
      • Columns & Annotations
      • Type & Property Mappings
      • Relationships
    • Basic Datasets
      • dbt Integration
      • Sigma Integration
      • Looker Integration
    • SaaS Datasets
    • CSV Datasets
    • Streaming Datasets
    • Entity Resolution
    • AI Columns
      • AI Prompts Recipe Book
    • Enrichment Columns
      • Quick Start
      • HTTP Request Enrichments
    • Computed Columns
    • Version Control
  • 📫Syncs
    • Overview
    • Triggering & Scheduling
    • Retry Handling
    • Live Syncs
    • Audience Syncs
    • Observability
      • Current Sync Run Overview
      • Sync History
      • Sync Tracking
      • API Inspector
      • Sync Alerts
      • Observability Lake
      • Datadog Integration
      • Warehouse Writeback
      • Sync Lifecycle Webhooks
      • Sync Dry Runs
    • Structuring Data
      • Liquid Templates
      • Event Syncs
      • Arrays and Nested Objects
  • 👥Audience Hub
    • Overview
    • Creating Segments
      • Segment Priorities
      • Warehouse-Managed Audiences
    • Experiments and Analysis
      • Audience Match Rates
    • Activating Segments
    • Calculated Columns
    • Data Preparation
      • Profile Explorer
      • Exclusion Lists
  • 🧮Data Sources
    • Overview
    • Available Sources
      • Amazon Athena
      • Amazon Redshift
      • Amazon S3
      • Azure Synapse
      • ClickHouse
      • Confluent Cloud
      • Databricks
      • Elasticsearch
      • Kafka
      • Google AlloyDB
      • Google BigQuery
      • Google Cloud SQL for PostgreSQL
      • Google Pub/Sub
      • Google Sheets
      • Greenplum
      • HTTP Request
      • HubSpot
      • Materialize
      • Microsoft Fabric
      • MotherDuck
      • MySQL
      • PostgreSQL
      • Rockset
      • Salesforce
      • SingleStore
      • Snowflake
      • SQL Server
      • Trino
  • 🛫Destinations
    • Overview
    • Available Destinations
      • Accredible
      • ActiveCampaign
      • Adobe Target
      • Aha
      • Airship
      • Airtable
      • Algolia
      • Amazon Ads DSP (AMC)
      • Amazon DynamoDB
      • Amazon EventBridge
      • Amazon Pinpoint
      • Amazon Redshift
      • Amazon S3
      • Amplitude
      • Anaplan
      • Antavo
      • Appcues
      • Apollo
      • Asana
      • AskNicely
      • Attentive
      • Attio
      • Autopilot Journeys
      • Azure Blob Storage
      • Box
      • Bloomreach
      • Blackhawk
      • Braze
      • Brevo (formerly Sendinblue)
      • Campaign Monitor
      • Canny
      • Channable
      • Chargebee
      • Chargify
      • ChartMogul
      • ChatGPT Retrieval Plugin
      • Chattermill
      • ChurnZero
      • CJ Affiliate
      • CleverTap
      • ClickUp
      • Constant Contact
      • Courier
      • Criteo
      • Crowd.dev
      • Customer.io
      • Databricks
      • Delighted
      • Discord
      • Drift
      • Drip
      • Eagle Eye
      • Emarsys
      • Enterpret
      • Elasticsearch
      • Facebook Ads
      • Facebook Product Catalog
      • Freshdesk
      • Freshsales
      • Front
      • FullStory
      • Gainsight
      • GitHub
      • GitLab
      • Gladly
      • Google Ads
        • Customer Match Lists (Audiences)
        • Offline Conversions
      • Google AlloyDB
      • Google Analytics 4
      • Google BigQuery
      • Google Campaign Manager 360
      • Google Cloud Storage
      • Google Datastore
      • Google Display & Video 360
      • Google Drive
      • Google Search Ads 360
      • Google Sheets
      • Heap.io
      • Help Scout
      • HTTP Request
      • HubSpot
      • Impact
      • Insider
      • Insightly
      • Intercom
      • Iterable
      • Jira
      • Kafka
      • Kevel
      • Klaviyo
      • Kustomer
      • Labelbox
      • LaunchDarkly
      • LinkedIn
      • LiveIntent
      • Loops
      • Mailchimp
      • Mailchimp Transactional (Mandrill)
      • Mailgun
      • Marketo
      • Meilisearch
      • Microsoft Advertising
      • Microsoft Dynamics
      • Microsoft SQL Server
      • Microsoft Teams
      • Mixpanel
      • MoEngage
      • Mongo DB
      • mParticle
      • MySQL
      • NetSuite
      • Notion
      • OneSignal
      • Optimizely
      • Oracle Database
      • Oracle Eloqua
      • Oracle Fusion
      • Oracle Responsys
      • Orbit
      • Ortto
      • Outreach
      • Pardot
      • Partnerstack
      • Pendo
      • Pinterest
      • Pipedrive
      • Planhat
      • PostgreSQL
      • PostHog
      • Postscript
      • Productboard
      • Qualtrics
      • Radar
      • Reddit Ads
      • Rokt
      • RollWorks
      • Sailthru
      • Salesforce
      • Salesforce Commerce Cloud
      • Salesforce Marketing Cloud
      • Salesloft
      • Segment
      • SendGrid
      • Sense
      • SFTP
      • Shopify
      • Singular
      • Slack
      • Snapchat
      • Snowflake
      • Split
      • Sprig
      • Stripe
      • The Trade Desk
      • TikTok
      • Totango
      • Userflow
      • Userpilot
      • Vero Cloud
      • Vitally
      • Webhooks
      • Webflow
      • X Ads (formerly Twitter Ads)
      • Yahoo Ads (DSP)
      • Zendesk
      • Zoho CRM
      • Zuora
    • Custom & Partner Destinations
  • 📎Misc
    • Credits
    • Census Embedded
    • Data Storage
      • Census Store
        • Query Census Store from Snowflake
      • General Object Storage
      • Bring Your Own Bucket
        • Bring your own S3 Bucket
        • Bring your own GCS Bucket
        • Bring your own Azure Bucket
    • Developers
      • GitLink
      • Dataset API
      • Custom Destination API
      • Management API
    • Security & Privacy
      • Login & SSO Settings
      • Workspaces
      • Role-based Access Controls
      • Network Access Controls
      • SIEM Log Forwarding
      • Secure Storage of Customer Credentials
      • Digital Markets Act (DMA) Consent for Ad Platforms
    • Health and Usage Reporting
      • Workspace Homepage
      • Product Usage Dashboard
      • Observability Toolkit
      • Alerts
    • FAQs
Powered by GitBook
On this page
  • Getting Started
  • Prerequisites
  • 1. Grab your PostHog Project API Key
  • 2. Connect Census to PostHog
  • 3. Connect to your Data Warehouse
  • 4. Create your first Model
  • 5. Create your first Sync
  • 6. Confirm the data is in PostHog
  • Supported Objects and Sync Behaviors
  • Need help connecting to PostHog?

Was this helpful?

  1. Destinations
  2. Available Destinations

PostHog

This page describes how to use Census with PostHog.

PreviousPostgreSQLNextPostscript

Last updated 2 months ago

Was this helpful?

Getting Started

In this guide, we will show you how to connect PostHog to Census and create your first sync.

Prerequisites

  • Have your Census account ready. If you need one, now.

  • Have the proper credentials to access your data source. See our for each supported data source for further information.

1. Grab your PostHog Project API Key

PostHog provides a write-only key.

In PostHog's left navigation bar, click Project Settings.

Then, scroll down to Project Variables > Project API Key.

Copy your Project API Key. We'll use that in a minute

2. Connect Census to PostHog

Great! Now let's pull it all together.

  1. In the page, click on New Destination, and select "PostHog"

  2. You can provide whatever name you like for the connection

  3. Paste your PostHog Project API Key

  4. Enter your PostHog custom domain if you're using one, otherwise leave it blank.

  5. Click Connect

3. Connect to your Data Warehouse

4. Create your first Model

Here you will have to write SQL queries to select the data you want to see in PostHog. Here are some ideas of data you should select:

  • Event data like event id, event name, contact id, contact name

Once you have created your model, click Save Model.

5. Create your first Sync

In the "What data do you want to sync?" section

  • For the Connection, select the data warehouse you connected in step 3

  • For the Source, select the model you created in step 4

Next up is the "Where do you want to sync data to?" section

  • Pick PostHog as the Connection

  • For Object, Event will automatically be chosen

For the " How do you want to update the destination?" section

  • Send will automatically be chosen

  • Choose the Unique ID Column

  • Decide if you'd like to turn on Use timestamp column to identify new data.

Finally, select the properties you want to update in the Mapper in the "Which properties should be updated?" section

  • Choose to update Specific Properties or Sync All Properties.

  • Map the required fields Person's Distinct ID and Event Name fields

  • Map the rest of the fields from PostHog to the columns from your model

In the "Should existing data be synced?" section

  • Chooses whether you want to backfill records or only sync new records going forward

The end result should look something like this

Click the Next button to see the final preview which will have a recap of what will happen when you start the sync

6. Confirm the data is in PostHog

Now go back to your PostHog account and view the event data that should have been created. If everything went well, you should see your data in PostHog.

That's it! In 6 steps, you connected Census to PostHog and started syncing event data from your warehouse to PostHog 🎉

Supported Objects and Sync Behaviors

Census currently supports syncing to the following PostHog objects.

Object Name

Supported?

Sync Keys

Behaviors

Event

✅

Event ID

Send

Person

✅

ID, Email

Update or Create, Update Only

Page

✅

Distinct ID

Send

Need help connecting to PostHog?

Census will test your API key and show a green checkmark when successful.

See our for each supported data source and follow the appropriate short guide depending on your data warehouse technology.

Now navigate to the

Now head to the and click the Create a Sync button

This can be more efficient for large or frequently changing data sets. More info can be found in this .

Learn more about all of our sync behaviors in our documentation.

if you want Census to support more Posthog objects and/or behaviors

via support@getcensus.com or start a conversation with us via the chat.

🛫
✅
create a Free Trial Census account
docs
Destinations
docs
Model page in Census
Sync page
Syncs
Contact us
Contact us
in-app
doc