Skip to main content

Census

Overview​

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 will automatically include 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. Follow the steps in the Census Webhook Guide to create a new Webhook Destination. Enter https://api.statsig.com/v1/webhooks/census_webhook?statsig_api_key={<SERVER_SECRET_KEY>} as the Webhook URL.
  3. Map the fields that Statsig will receive from Census. See below for configuration options.
  4. On the Statsig Integrations page, enable the Census integration.

Mapping Configuration​

Set up mappings for top-level fields that Statsig requires using the following keys:

  • event
  • userID
  • value

All other fields will be included in the metadata section of the mapped Statsig event.