
An Introduction to Google Cloud Vertex AI Search for Commerce: Import User Events Data — Part 5

- Real-time user events data is information about what the user is looking for now.
- Historical User event data is information about what the user did in the past.
- The Retail API can import historical User event data in bulk.
3 Ways to Record Real-Time User Events

Javascript
- You can use Javascript pixel to record a user event.
- The code must be added to your front-end application.
Google Tag Manager
- If you use Google Tag Manager to configure and fire tags on your website, you can use it for recording user events.
- Google Tag Manager enables you to update your tags without updating your front-end application code.
API
- You can all the userEvents.write method to send user events directly from your backend server.
5 Ways to Import Historical User Event Data

Import From Cloud Storage
- Upload files containing user event data to a Google Cloud Storage bucket.
Import from BigQuery
- If the user event data is already in BigQuery, you can directly import it into Retail API.
Import from Google Analytics 360
- This is a good option if you’re using Google Analytics to capture website analytics.
- If you integrate Google Analytics 360 with BigQuery and use Enhanced Ecommerce, then you can import Google Analytics 360 events into Retail API.
Import User Events Inline
- You can call the userEvents.import method and provide a JSON file with your user event data. This method is useful if you want to quickly import a handful of new events or add new events in real time.
Import Google Analytics 4 User Events with BigQuery
- You can import Google Analytics for user events if you integrated Google Analytics 4 with BigQuery and use Google Analytics Ecommerce.
References
- Google Cloud Skills Boost: Vertex AI Search for Commerce → Data Ingestion
- Configure user events
An Introduction to Google Cloud Vertex AI Search for Commerce: Import User Events Data — Part 5 was originally published in Google Cloud – Community on Medium, where people are continuing the conversation by highlighting and responding to this story.
Source Credit: https://medium.com/google-cloud/an-introduction-to-google-cloud-vertex-ai-search-for-commerce-import-user-events-data-part-5-51fe3aeaf550?source=rss—-e52cf94d98af—4