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

# Custom GA4 App

> Connect Google Analytics 4 through your own Google Cloud app (white-label) by pasting your client ID, client secret, and a refresh token.

Markifact supports two ways to connect Google Analytics 4: using the built-in **Markifact app** (Quick Connect) or connecting through your own **Google Cloud app** (Custom App). With a custom app, every request Markifact makes runs under your app in the property's access history, so your clients never see Markifact.

> [!NOTE]
>
> Custom app connections are available on the **Team** plan. See [White-label Connections](https://docs.markifact.com/core-concepts/white-label-connections.md) for the overview.

***

## What You Need

| Item | Value |
| :- | :- |
| **Scope** | `https://www.googleapis.com/auth/analytics.readonly`, `https://www.googleapis.com/auth/analytics.edit` |
| **APIs to enable** | Google Analytics Admin API and Google Analytics Data API |
| **Google account for the token** | a Google account with at least Viewer access to the GA4 properties you want to report on |

> [card] [Create the app and mint the refresh token](https://docs.markifact.com/core-concepts/custom-google-app.md)
>
> The Google Cloud setup (project, consent screen, OAuth client, OAuth Playground) is the same for every Google channel and lives on one page.

***

## Connect to Markifact

**1. Open the Custom App tab**

Go to the [Connections](https://app.markifact.com/connections) page, click **Connect** on **Google Analytics 4**, and select the **Custom App (White-label)** tab.

**2. Name the connection**

Enter a **Connection Name** (for example "Acme Agency GA4"). This is how the connection appears in nodes, agents, and MCP.

**3. Paste your credentials**

Paste the **Client ID**, **Client Secret**, and **Refresh Token** from your Google Cloud app.

**4. Verify & Connect**

Markifact refreshes an access token with your client and makes one read-only call to the Google Analytics Admin API. Nothing is saved unless both succeed.

Custom app connections show a **Custom app** badge on the Connections page and work everywhere a Quick Connect connection works.

***

## Rotating or Replacing the Token

Add the connection again with the **same connection name** and the new refresh token. Markifact replaces the stored credentials in place, so workflows and agents bound to the connection keep working.

***

## Troubleshooting

> [accordion] Verification passes but the property list is empty
>
> The Google account behind the token has no GA4 properties. Grant it Viewer access on the properties in GA4 Admin, then re-add the connection with the same name.

> [accordion] Client, token or scope errors
>
> See the shared [Custom Google Cloud App](https://docs.markifact.com/core-concepts/custom-google-app.md#troubleshooting) troubleshooting for `invalid_client`, `invalid_grant`, missing scopes and APIs that are not enabled.

***

## Related

> [card] [Custom Google Cloud App](https://docs.markifact.com/core-concepts/custom-google-app.md)
>
> Create the app and mint a refresh token

> [card] [Get Report](https://docs.markifact.com/nodes/ga4/ga4_get_report.md)
>
> Pull GA4 reports


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.