On this page

BigQuery

Configure Statsig data warehouse ingestion from Google BigQuery, including authentication, scheduled queries, and mapping to events and properties.

How BigQuery ingestion works

To set up a connection with BigQuery, you need to:

  • Grant permissions to a Statsig-owned service account
  • Provide your BigQuery Project ID

Enable the BigQuery source under Metrics > Ingestion > Add Source.

Grant permissions to Statsig's service account

Grant the following permissions from your Google Cloud console to allow Statsig to access your BigQuery data.

  1. In your BigQuery's IAM & Admin settings, add the Statsig service account you copied in the Statsig Console as a new principal for your project, and give it the following roles:
    • BigQuery User

BigQuery IAM permissions configuration

  1. Navigate to your BigQuery SQL Workspace, choose the dataset, click on "+ Sharing" -> "Permissions" -> "Add Principal" to give the same Statsig service account "BigQuery Data Viewer" role on the dataset.

    BigQuery dataset permissions setup

The service account now has the required permissions to export data from this dataset.

Find your BigQuery Project ID

  1. Click on your Project Dropdown inside your Cloud Console.

Frame 4

  1. Copy the relevant Project ID from the modal.

Frame 5

Was this helpful?