AI-generated Key Takeaways
-
This page explains how to update attribution settings on a Google Analytics property using the
PATCH
HTTP request. -
The request requires specifying the
attributionSettings.name
as a path parameter and anupdateMask
as a query parameter. -
The request body should contain the updated AttributionSettings object, and a successful response will return the updated AttributionSettings object.
-
You'll need the
analytics.edit
OAuth scope to authorize this request.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Updates attribution settings on a property.
HTTP request
PATCH https://analyticsadmin.googleapis.com/v1alpha/{attributionSettings.name=properties/*/attributionSettings}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
attributionSettings.name |
Output only. Resource name of this attribution settings resource. Format: properties/{property_id}/attributionSettings Example: "properties/1000/attributionSettings" |
Query parameters
Parameters | |
---|---|
updateMask |
Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of AttributionSettings
.
Response body
If successful, the response body contains an instance of AttributionSettings
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/analytics.edit