> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rivvi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Google Workspace

> Drive, Sheets, and GA4 analytics — from one Google connection.

One Google connection lets Rivvi read your **Google Drive** files, **Google Sheets** data, and **GA4** web analytics. Pull a campaign tracker from Sheets or traffic metrics from Analytics into a report — and cross them with your [Meta Ads](/connectors/meta-ads) spend for a single paid-media view.

## What you'll need

A **Google OAuth client** with a self-consented refresh token, granted the Drive, Sheets, and Analytics read scopes:

* **Client ID** — Google Cloud Console → APIs & Services → Credentials → OAuth 2.0 Client ID
* **Client secret**
* **Refresh token** — obtained by consenting with the Drive, Sheets, and Analytics read scopes
* **Default GA4 property ID** — *(optional)* the property to report on when a request doesn't name one

<Card title="Google: OAuth 2.0 setup" icon="arrow-up-right-from-square" href="https://developers.google.com/identity/protocols/oauth2">
  Google's OAuth 2.0 documentation.
</Card>

## Connect it

<Steps>
  <Step title="Create an OAuth client in Google Cloud">
    Enable the Drive, Sheets, and Analytics APIs, create an OAuth 2.0 client, and generate a refresh token with the read scopes.
  </Step>

  <Step title="Open Rivvi's connector settings">
    **Settings → Connectors**, select **Google Workspace**, click **Connect**.
  </Step>

  <Step title="Paste your credentials">
    | Field                       | What to paste                       |
    | --------------------------- | ----------------------------------- |
    | **Client ID**               | Your OAuth 2.0 client ID            |
    | **Client secret**           | Your OAuth 2.0 client secret        |
    | **Refresh token**           | Your long-lived OAuth refresh token |
    | **Default GA4 property ID** | *(Optional)* e.g. `123456789`       |
  </Step>
</Steps>

## What Rivvi can do with Google Workspace

* **Drive** — list files and folders.
* **Sheets** — read a range of values from a spreadsheet.
* **Analytics (GA4)** — run a report on sessions, users, and conversions.

## Try it

```text theme={null}
Read our campaign tracker sheet and summarize this month.
How many conversions did we get from web traffic last month?
```

## Next

<Card title="Connectors overview" icon="plug" href="/connectors/overview">
  Back to all connectors.
</Card>
