Acknowledge GA4 user data collection terms
google-analytics.x.analyticsadmin-properties-acknowledgeuserdatacollectionproperties.acknowledgeUserDataCollection — Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.
- Price
- freeAt list price
- Success rate
- —No success-rate data yetLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-acknowledgeuserdatacollectionBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
property | string | Required | Required. The property for which to acknowledge user data collection. | |
- Path parameters
propertystringRequiredRequired. The property for which to acknowledge user data collection.
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-acknowledgeuserdatacollection' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-acknowledgeuserdatacollection",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-acknowledgeuserdatacollection", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.