Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ten artykuł jest przeznaczony dla deweloperów, którzy chcą przenieść tag Cloud Retail z klienta do kontenera serwera. Informacje o tagu kontenera internetowego Cloud Retail znajdziesz w dokumentacji Google Cloud.
Zanim zaczniesz
W tym przewodniku przyjęto założenie, że zostały już przez Ciebie wykonane te czynności:
W sekcji Numer projektu wpisz numer projektu Google Cloud dla projektu Cloud Retail.
W sekcji Pola do zastąpienia skonfiguruj identyfikator wizyty:
Field Selector (Selektor pól): visitorId
Wartość pola: wpisz zmienną, która zwraca unikalny identyfikator wizyty z zdarzenia GA4, np. identyfikator klienta.
Opcjonalnie: aby mierzyć zdarzenia wyszukiwania:
Field Selector (Selektor pól): searchQuery
Wartość pola: wpisz zmienną, która wyodrębnia zapytanie.
Zdarzenie wyszukiwania jest tworzone przez połączenie zapytania zdarzenia wyszukiwania z wyświetleniami zapytania, które są wysyłane w zdarzeniu view_item_list.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-11-15 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"]]