Skip to main content

user_events

Creates, updates, deletes, gets or lists a user_events resource.

Overview

Nameuser_events
TypeResource
Idgoogle.discoveryengine.user_events

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_collections_data_stores_user_events_writeexecprojectsId, locationsId, collectionsId, dataStoresIdwriteAsyncWrites a single user event.
projects_locations_collections_data_stores_user_events_collectexecprojectsId, locationsId, collectionsId, dataStoresIduserEvent, uri, etsWrites a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
projects_locations_collections_data_stores_user_events_purgeexecprojectsId, locationsId, collectionsId, dataStoresIdDeletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.
projects_locations_collections_data_stores_user_events_importexecprojectsId, locationsId, collectionsId, dataStoresIdBulk import of user events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.
projects_locations_data_stores_user_events_writeexecprojectsId, locationsId, dataStoresIdwriteAsyncWrites a single user event.
projects_locations_data_stores_user_events_collectexecprojectsId, locationsId, dataStoresIduserEvent, uri, etsWrites a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
projects_locations_data_stores_user_events_purgeexecprojectsId, locationsId, dataStoresIdDeletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.
projects_locations_data_stores_user_events_importexecprojectsId, locationsId, dataStoresIdBulk import of user events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.
projects_locations_user_events_writeexecprojectsId, locationsIdwriteAsyncWrites a single user event.
projects_locations_user_events_collectexecprojectsId, locationsIduserEvent, uri, etsWrites a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
projects_locations_user_events_importexecprojectsId, locationsIdBulk import of user events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
collectionsIdstring
dataStoresIdstring
locationsIdstring
projectsIdstring
etsstring (int64)
uristring
userEventstring
writeAsyncboolean

Lifecycle Methods

Writes a single user event.

EXEC google.discoveryengine.user_events.projects_locations_collections_data_stores_user_events_write 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@collectionsId='{{ collectionsId }}' --required,
@dataStoresId='{{ dataStoresId }}' --required,
@writeAsync={{ writeAsync }}
@@json=
'{
"eventType": "{{ eventType }}",
"conversionType": "{{ conversionType }}",
"userPseudoId": "{{ userPseudoId }}",
"engine": "{{ engine }}",
"dataStore": "{{ dataStore }}",
"eventTime": "{{ eventTime }}",
"userInfo": "{{ userInfo }}",
"directUserRequest": {{ directUserRequest }},
"sessionId": "{{ sessionId }}",
"pageInfo": "{{ pageInfo }}",
"attributionToken": "{{ attributionToken }}",
"filter": "{{ filter }}",
"documents": "{{ documents }}",
"panel": "{{ panel }}",
"searchInfo": "{{ searchInfo }}",
"completionInfo": "{{ completionInfo }}",
"transactionInfo": "{{ transactionInfo }}",
"tagIds": "{{ tagIds }}",
"promotionIds": "{{ promotionIds }}",
"attributes": "{{ attributes }}",
"mediaInfo": "{{ mediaInfo }}",
"panels": "{{ panels }}"
}';