On this page

Assignment Sources

Configure assignment sources in Statsig Warehouse Native so experiment exposures from your warehouse map to the correct experiment and variant.

Assignment Sources define the schema for your assignment data in Statsig. They serve as the input for determining which users are in an experiment and which treatment each user received.

Creating an assignment source

To create an assignment source, navigate to the data tab in Statsig and open the Assignment Sources pane.

An Assignment Source is defined as a SQL query and a mapping of the output columns to specific fields Statsig requires (user identifiers, a timestamp, an experiment identifier, and a group identifier).

Assignment Source

Scanning assignment sources

Statsig scans assignment sources on-demand or on a schedule to find experiment data. These jobs run quickly and identify unique groups, the ID types present in the experiment, and the estimated number of users per group.

After the scan is complete, you can view and create experiments from the assignment source. The assignment data also populates the Experiment creation flow.

Assignment source scan results showing detected experiments

Manage assignment sources

In the Assignment Source tab, you can see your Assignment sources and the experiments they're being used in.

Assignment Source Tab

Example data

For experiment assignment sources, Statsig requires the following information: which users received an exposure, when, and to which experiment:

For example, you could pull from exposure event logging directly:

Was this helpful?