On this page

Census

Connect Census reverse ETL with Statsig to sync audience segments and metric data between your data warehouse and Statsig for activation.

How the Census integration works

Enabling the Census integration for Statsig allows Statsig to receive events from Census. This enables you to ingest data into Statsig from any sources that Census supports.You can find all events that Statsig receives from Census in the Metrics tab in the Statsig console. Statsig automatically includes these events in Pulse and Experiment results for your feature gates and experiments respectively.

Configuring incoming events

  1. From the API Keys tab in the Statsig console, copy the Statsig “Server Secret Key”.
  2. From Census, create a new destination and select Statsig from the list of options.
  3. Paste the Statsig secret into the field and click save.

Census destination setup form with Statsig secret key input

  1. Create a Sync to the new Statsig destination (refer to the Sync Configuration section below)
  2. On the Statsig Integrations page, enable the Census integration.

Sync configuration

You must provide a sync key to uniquely identify each event.

Census sync configuration showing sync key selection

Map the following fields to Statsig events.

  • User ID -> userID
  • Event Name -> eventName
  • Timestamp -> timestamp
  • Value -> value

Field mapping table aligning Census columns to Statsig event fields

Statsig includes all other fields in the metadata section of the mapped event.

Custom ID mapping

The Census integration allows the mapping of arbitrary fields to Statsig Custom IDs. To do this, visit the Census panel on the Statsig Integrations page and look for the "Map Identifier" section. Here you can choose fields you would like mapped to a Custom ID.

The input Event Field must match the exact spelling as in the original Census event.

Statsig integration panel for Census custom ID mapping

Was this helpful?