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-02-28 UTC."],[[["This endpoint uses a GET request to write a single user event from the browser, primarily intended for the Discovery Engine API JavaScript pixel and Google Tag Manager, and is not meant for direct user invocation."],["The `parent` path parameter, a required string, specifies the resource name, with formatting that varies depending on whether the user event is applied at the DataStore level or at the Location level across multiple DataStores."],["The request requires three query parameters: a `userEvent` (a URL-encoded UserEvent proto with a 2,000,000 character limit), a `uri` (a URL excluding the hash fragment with a 5,000 character limit), and `ets` (an event timestamp in milliseconds to prevent browser caching)."],["The request body for this endpoint must be empty, and a successful request yields a generic HTTP response whose format is defined by the method."],["Authorization for this endpoint requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]