Heap Connect for BigQuery

Heap Connect lets you directly access your Heap data in BigQuery. You can run ad-hoc analyses, connect to BI tools such as Tableau, or join the raw Heap data with your own internal data sources.

Best of all, we automatically keep the SQL data up-to-date and optimize its performance for you. Define an event within the Heap interface, and in just a few hours, you'll be able to query it retroactively in a clean SQL format.


In order to start accessing Heap Connect data through BigQuery, you'll require an existing Google Cloud project. After some initial setup of your project, all that needs to be done is to add our Heap service account as a BigQuery user, and share your Project ID with us. All of these steps are detailed in our Connection Requirements document.

Connection Requirements


Before starting the Heap Connect BigQuery connection process, you'll need to:

  1. Have a Google Cloud Platform (GCP) project. If you don't already have a project created, you can learn how to do so here.
  2. Enable billing in the GCP project. If you haven't already done so, you can follow instructions available here.
  3. Enable the BigQuery API. If you haven't already done so, you can begin the process here.

These three prerequisites are also outlined in GCP's quick-start guide.

Once you've completed the prerequisites, to connect Heap to BigQuery, proceed as follows:

1. Authorize Heap access to BigQuery

Within the GCP dashboard for your selected project, please visit IAM & admin settings and click + Add.

In the subsequent view, add heap-sql@heap-204122.iam.gserviceaccount.com as a BigQuery User and save the new permission.

We would prefer to be added as a BigQuery user per the steps above. At minimum, we need to be assigned to a dataEditor role, and additionally, have permissions for bigquery.jobs.create. See BigQuery's access control doc to learn more about the different roles in BigQuery, and see this StackOverflow response for steps to grant individual permissions to create a custom IAM role for Heap.

2. Provide Heap Your GCP Project ID

Once the GCP project is configured, you'll need to provide your Heap account team with your Project ID. You can find the Project ID within Project info on your GCP project dashboard (make sure you're in the correct project). In the screenshot below, our project ID is heap-204419.

That's it! Your Heap account team will follow up once the initial connection has been made. Please don't hesitate to reach out your account team or support@heap.io with any questions.

Heap Connect for BigQuery

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.