Required. The parent resource name. If the collect user event action is applied in DataStore level, the format is: projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. If the collect user event action is applied in Location level, for example, the event with Document across multiple DataStore, the format is: projects/{project}/locations/{location}.
Query parameters
Parameters
userEvent
string
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
uri
string
The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for third-party requests.
The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
Request body
The request body must be empty.
Response body
If successful, the response is a generic HTTP response whose format is defined by the method.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis webpage details the process of writing a single user event from a browser using a \u003ccode\u003eGET\u003c/code\u003e request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGET\u003c/code\u003e request is directed to \u003ccode\u003ehttps://discoveryengine.googleapis.com/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:collect\u003c/code\u003e and adheres to gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe required path parameter is \u003ccode\u003eparent\u003c/code\u003e, specifying the resource name, and it could be applied either at the \u003ccode\u003eDataStore\u003c/code\u003e level or at the \u003ccode\u003eLocation\u003c/code\u003e level.\u003c/p\u003e\n"],["\u003cp\u003eMandatory query parameters include \u003ccode\u003euserEvent\u003c/code\u003e, a URL-encoded UserEvent, \u003ccode\u003euri\u003c/code\u003e, representing the full URL, and \u003ccode\u003eets\u003c/code\u003e, which is the event timestamp.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must remain empty, and the request requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e for authorization.\u003c/p\u003e\n"]]],[],null,[]]