AI-generated Key Takeaways
-
The content provides a guide on how to submit a request for user deletion for a property in Google Analytics.
-
It details the HTTP request, including the URL structure and path parameters.
-
The request body schema outlines the possible identifiers for the user to be deleted, such as user ID, client ID, app instance ID, or user-provided data.
-
The response body confirms the submission and includes the timestamp of the deletion request.
-
Submitting a user deletion request requires the
https://www.googleapis.com/auth/analytics.edit
OAuth scope.
Submits a request for user deletion for a property.
HTTP request
POST https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*}:submitUserDeletion
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the property to submit user deletion for. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field user . The user to submit a deletion request for user can be only one of the following: |
|
userId |
Google Analytics user ID. |
clientId |
Google Analytics client ID. |
appInstanceId |
Firebase application instance ID. |
userProvidedData |
User-provided data. May contain either one email address or one phone number. Email addresses should be normalized as such:
Phone numbers should be normalized as such:
|
Response body
Response message for properties.submitUserDeletion RPC.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "deletionRequestTime": string } |
Fields | |
---|---|
deletionRequestTime |
Marks the moment for which all visitor data before this point should be deleted. This is set to the time at which the deletion request was received. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/analytics.edit