Stay organized with collections
Save and categorize content based on your preferences.
This article is for developers who want to move their Cloud Retail tag off
of the client and into a server container. Refer to the Google Cloud
documentation for the Cloud Retail web container tag.
Before you begin
This guide assumes that you have done the following:
Under Project Number, enter the Google Cloud Project number for your
Cloud Retail project.
Under Fields to Overwrite, set up a visitor ID:
Field Selector: visitorId
Field Value: Enter a variable that resolves into a unique
visitor ID from a GA4 event, for example, the client ID.
Optional: To measure search events:
Field Selector: searchQuery
Field Value: Enter a variable that extracts the search query.
The search event is constructed by combining the search event query
with the impressions for the query, which are sent in view_item_list.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["This guide helps developers move the Cloud Retail tag from client-side to a server-side container in Google Tag Manager."],["Before starting, ensure you have set up a server container, a tagging server, and the data flow between web and server containers in Tag Manager."],["The setup involves creating a new Cloud Retail tag in your server container, configuring it with your API key and project details, and mapping it to relevant triggers based on Google Analytics 4 events."],["It's crucial to provide a unique visitor ID and optionally include search queries for enhanced tracking in your Cloud Retail tag configuration."]]],["Developers moving Cloud Retail tags to a server container should first ensure they have a server container, tagging server, and data flow from web to server containers established. In the server container, create a new Cloud Retail tag, configuring it with a valid API key, project number, and a visitor ID variable (e.g., client ID). Optionally, configure search event measurement using a search query variable. Finally, select appropriate triggers based on GA4 event mappings and save the tag.\n"]]