> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/integrations/other-integrations/data-warehouse/big-query---daily-exports-from-ab-tasty-to-big-query.md).

# Big Query - Daily exports from AB Tasty to Big Query

Google BigQuery is a serverless, highly scalable and fully managed data warehouse that comes with a built-in query engine. BigQuery enables scalable analysis of petabytes of data.

The Google BigQuery integration allows you to export any data collected by AB Tasty’s tracking system to a Google BigQuery dataset, daily.

We will now proceed to configure the connector and the export.

## The connector <a href="#h_01htftc133np3w928jmtpj6tkd" id="h_01htftc133np3w928jmtpj6tkd"></a>

### Step 1: Activate BigQuery <a href="#h_01htftc133m9sndwxrbhnvfx6s" id="h_01htftc133m9sndwxrbhnvfx6s"></a>

Go to your [BigQuery](https://console.cloud.google.com/bigquery) console and activate BigQuery.

<img src="/files/NJSrvFoURI1EhBqifJsS" alt="" width="563">

### Step 2: Create a service account <a href="#h_01htftdhm2fysayp1mrrg5vtch" id="h_01htftdhm2fysayp1mrrg5vtch"></a>

The service account is used to generate your credentials (in JSON format). More information on service accounts [here](https://cloud.google.com/iam/docs/service-account-overview?hl=fr).

1. Go to the service account

<figure><img src="/files/mRi5GIjCWzzQVws2jRTy" alt="" width="563"><figcaption></figcaption></figure>

2. Click on create Service account

<img src="/files/wnPCbya0JczG4lymua7x" alt="" width="375">

3. Enter a name and a description
4. Add a role: you must add “BigQuery User” and “BigQuery Data Editor”

<img src="/files/Xt2KmaPP5YN7sRvbg5kN" alt="" width="375">

5. Click on “done” to validate.

### Step 3: Create and export keys <a href="#h_01htftdhm2syghvp7b1x29ffyt" id="h_01htftdhm2syghvp7b1x29ffyt"></a>

Now that the service account is created, we will create the credential keys and export them.

1. Click on the new services account created<br>

   <figure><img src="/files/icsIkOZLLSehRJCzIZno" alt="" width="375"><figcaption></figcaption></figure>
2. Go into your service account, then “Keys” and click “add key” > “create new key”
3. Select “JSON” and click “create”.
4. Download the key.

<img src="/files/UzdznSnH4HRkNpFLKhmg" alt="" width="563">

The content of the key should look like this:

<img src="/files/JXvRevb5N2VH0BEbIYJW" alt="" width="563">

### Step 4: Create a new dataset <a href="#h_01htftkb6ezdz7wkw232pp61x6" id="h_01htftkb6ezdz7wkw232pp61x6"></a>

1. Go back to BigQuery
2. In the Explorer menu choose your GCP project and click the three dots, then click “Create dataset”

<img src="/files/30Xxn2eEuSmvFFktrEol" alt="" width="563">

<img src="/files/7jtR2ICURhIzH6lAjkXQ" alt="" width="375">

3. Give it an ID and a location (no other mandatory options)
4. Click “create dataset”

Your dataset is now created and should appear in the Explorer menu. By clicking on your dataset you should be able to display its details.

More information on how to create a BigQuery dataset can be found [here](https://cloud.google.com/bigquery/docs/datasets).

<img src="/files/bIUatQCPteCRgeEtjfuQ" alt="" width="375">

### Step 5: Set up the connector in AB Tasty <a href="#h_01htftmzp9g7z4ged90p9raqck" id="h_01htftmzp9g7z4ged90p9raqck"></a>

1. In AB Tasty, go to the Integration Hub page > Data Warehouse > BigQuery > setup connector
2. Enter a name for the connector
3. Enter the dataset location (info can be found in the details of the created dataset)
4. Enter the dataset ID (info can be found in the details of the created dataset). **Copy and paste the part to the right of the ". (see the above screenshot)**
5. Enter the project ID where your dataset is located. **Copy and paste the part to the left of the ". (see the above screenshot)**
6. Choose Service account as the Authorization Method
7. JSON credentials: paste the content of the key (JSON file) that was downloaded when you created the credentials.
8. Click on “Test connection”
9. Validate by clicking on “Next step”.

Your connector is now set up, and you can proceed to **set up your Export**.

You will get an error message, if one of the fields contains an error.

## The export <a href="#h_01htfts8thynbwsjzkdnwg5964" id="h_01htfts8thynbwsjzkdnwg5964"></a>

To set up your daily export, please refer to the guide: [Data Warehouse integrations: General information](/integrations/other-integrations/data-warehouse/data-warehouse-integrations-general-information.md).

### Step 1: Generate your payload <a href="#h_01htftvzacsaxx146x4t0aw90e" id="h_01htftvzacsaxx146x4t0aw90e"></a>

Refer to the [Data Warehouse](/integrations/other-integrations/data-warehouse/data-warehouse-integrations-general-information.md) article to create your payload.

### Step 2: Set up the export <a href="#h_01htftw5bsbfcrzrm89mzbnj1f" id="h_01htftw5bsbfcrzrm89mzbnj1f"></a>

<img src="/files/FtmOH13tcoP4EwhYrdgV" alt="" width="375">

1. Export name: the name of your export, give an explicit name to easily retrieve it in AB Tasty
2. Name of the table: the name of the table we will create in your BigQuery
3. Data exporter query: paste here the payload of your data explorer query
4. Click save and create.

The Google BigQuery integration is now complete, and you will soon see the data flowing into your dedicated Data Warehouse (It can take up to 2–3 hours, depending on the size of your report).

The export is activated upon creation, and new data will be appended to the current one, daily. The following screenshot shows that the export is activated on creation:&#x20;

<figure><img src="/files/IZdiqJMTlNJyNFz32PHH" alt="" width="375"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.abtasty.com/integrations/other-integrations/data-warehouse/big-query---daily-exports-from-ab-tasty-to-big-query.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
