Google Analytics 4
Version
This integration utilizes the Google Analytics 4 User Deletion API v3.
Base URL
The base URL used for all Google Analytics 4 API endpoints:https://www.googleapis.com/analytics/v3
Authentication & Authorization
The DataGrail Google Analytics 4 integration connects using OAuth 2.0.
Scopes
The Google Analytics 4 integration requires specific scopes that must be granted in order to function for a given capability.
| Scope | Deletion |
|---|---|
https://www.googleapis.com/auth/analytics.user.deletion | ✅ |
Endpoints Utilized
DataGrail uses the following endpoints to authorize and test the connection:
| Method | Endpoint | Purpose | Docs |
|---|---|---|---|
| GET | https://accounts.google.com/o/oauth2/v2/authorize | Request authorization | |
| POST | https://www.googleapis.com/oauth2/v4/token | Get and refresh access token |
Limits
Limits in Google Analytics 4 are calculated using the leaky
bucket algorithm. All requests that are made after rate limits have been
exceeded are throttled and an HTTP 429 Too Many Requests error is returned.
Requests succeed again after enough requests have emptied out of the bucket.
- DataGrail supports requests throttling to stay within 70-80% of specified service rate limits.
- DataGrail processes API responses with HTTP 429 status to interrupt requests, waiting and retrying (using an exponential backoff strategy).
Capabilities
Deletion
DataGrail's Google Analytics 4 integration provides Asynchronous (Whole Record) Deletion capabilities for the following supported identifier category: User ID.Data Interactions
For Deletion requests, DataGrail will take the following actions:
- Request data deletion for a given user.
Endpoints Utilized
Disclaimer: The information contained in this message does not constitute as legal advice. We would advise seeking professional counsel before acting on or interpreting any material.