Google Analytics 4 gtag documentation
List of Events
List of events sent to Shoptet during the implementation of Google Analytics 4:
• page_view
• generate_lead
• login
• sign_up
• search
• view_item_list
• view_item
• add_to_cart
• remove_from_cart
• view_cart
• begin_checkout
• add_shipping_info
• add_payment_info
• checkout_progress
• purchase
page_view Event
The event is triggered upon script loading. Along with the ‘page_view’ event, additional information about the loaded page is also sent.
Items Object
A unified ‘items’ object is used for events and is automatically processed within Google Analytics 4
item_list_id, item_list_name Codelist
Codelist for parameters with standardized values.
Content_group Codelist
The codelist corresponds to the values that are passed within the data layer in the shoptet.page.Type variable.
view_item Event
It’s triggered upon loading the product detail page, also known as the product card. If the product has multiple variants, an initial ‘view_item’ event is sent with an empty ‘item_variant’ field. Then, upon selecting a variant, another ‘view_item’ event is sent with the selected variant filled in.
view_cart Event
The event is triggered upon entering the /kosik/ page. If a coupon has been entered from a previous cart visit, it will be displayed here.
begin_checkout Event
The event is triggered upon entering the /order/step-1/ page. If a coupon has been entered from a previous cart visit, it will be displayed here.
add_shipping_info Event
It’s sent during the second step of the cart process (on the /step-2/ page) when default values have already been selected. By examining individual events, you can evaluate the popularity of different shipping options and compare them to the actual shipping methods chosen for purchases (for example, many may initially select “Balíkovna,” but most end up choosing „Zásilkovna”).
add_payment_info Event
It’s sent during the second step of the cart process (on the /step-2/ page) when default values have already been selected. By examining individual events, you can evaluate the popularity of different payment methods and compare them to the actual payment methods chosen for purchases (for example, many may initially select “cash on delivery,” but most end up paying via “ShoptetPay”
checkout_progress Event
Follows on from add_shipping_info and add_payment_info. It includes both the shipping and payment types simultaneously, so you can perform an analysis from a single variable within Google Analytics 4.
view_item_list Event
It offers the capability to work with impression data, serving as a valuable resource for both product sorting and monitoring product rankings across various categories.
generate_lead Event
No additional parameters. Newsletter subscriptions through native integration.
login Event
When logging in, the ‘login’ event is triggered and the user is simultaneously identified via their user_id.
sign_up Event
Upon registration, the ‘sign_up’ event is triggered, and identification is carried out via the user_id at the same time.
search Event
When using the native search feature and opening it on a new page (not yet implemented for the autocomplete feature), a ‘search’ event is sent along with the standardized search term.
purchase Event
Occurs when an order is submitted.
view_promotion and select_promotion Event
Not currently implemented.
consents default
consents update
The update_consent event is triggered within the data layer, allowing for the subsequent firing of events for additional tags at the GTM level.
Server-Side Integration (Premium Feature)
For clients with a premium plan, we support data transfer to Server-Side Google Tag Manager (SS GTM). This feature provides enhanced data security and greater control over data processing.
We implement this configuration using the server_container_url parameter as shown below:
gtag('config', 'TAG_ID', {
'server_container_url': 'https://analytics.example.com',
});