# API vs BigQuery

## Overview

In the Daasity app, you have two options for integrating Google Analytics 4:

<div align="left"><figure><img src="/files/DnK0hBZv2vYzLHJc4Rlr" alt=""><figcaption></figcaption></figure></div>

Both integrations will populate your data warehouse with GA4 data, but they do so in different ways.&#x20;

The API integration will pull your data from the GA4 Data API. The BigQuery integration will pull data from [your GA4 BigQuery data export](https://support.google.com/analytics/answer/9358801?hl=en). The data from each of these integrations is used in different ways.

## Which should you set up?

The short answer is: Both. We are using API data and BigQuery data in different places of our data model.

We are using **API** data to populate:

* Traffic reporting
* PDP performance reporting
* Last-click transactions reporting
* Shopping stage reporting

We are using **BigQuery** data to get you non-last click (first click, last ad click, last marketing click, assisted) attribution models.&#x20;

We use BigQuery to get attribution information because this data is not made available in the GA4 API the same way that it was made available in the Universal Analytics API.


---

# Agent Instructions: 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://help.daasity.com/core-concepts/data-integrations/setup-guides/digital-integrations/google-analytics-4/api-vs-bigquery.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.
