Switch to Google Analytics 4
Events - Summaryhttps://developers.google.com/analytics/devguides/migration/ecommerce/ecommerce-gtag - E-commerce (GA4) Developer Guide
https://developers.google.com/analytics/devguides/migration/ecommerce/gtagjs-compatibility - Ecommerce event compatibility and translation reference (gtag.js)
event: "view_item_list",
view_item_list
a user sees a list of items/offerings
event: "select_item",
select_item
a user selects an item from a list
event: "view_item",
view_item
a user views an item
event: "add_to_cart",
add_to_cart
a user adds items to cart
Data layer Google Analytics 4 Events - Summary
Google Analytics 4 Events - Guidelines | SecuTix Ticket shop events available | Description |
---|---|---|
event: "view_item_list", | view_item_list | a user sees a list of items/offerings on Landing page |
event: "select_item", | select_item | a user selects an item from a list on Landing page |
event: "view_item", | view_item | a user views an item after selecting it from Landing page |
event: "add_to_cart", | add_to_cart | a user adds items to cart |
event: "add_to_wishlist", | - | a user adds items to wishlist |
event: "view_cart", | -view_cart | a user views their cart |
event: "remove_from_cart", | remove_from_cart | a user removes items from a cart |
event: "begin_checkout", | -begin_checkout | a user begins checkout |
event: "add_shipping_info", | add_shipping_info | a user adds shipping info |
event: "add_payment_info", | add_payment_info | a user adds payment info |
event: "purchase", | -purchase | a user completes a purchase |
event: "refund", | - | a user receives a refund |
event: "view_promotion", | view_promotion | a user sees a promotion itemon Landing page |
event: "select_promotion", | select_promotion | a user clicked a promotion item on Landing page |
How to
useactivate Google Analytics 4 Enhanced E-commerce
Expand |
---|
1. Activate GA4 Enhanced E-commerce for the Point of SalesLogin to your SecuTix back-office, and activate enhanced e-commerce for the corresponding Internet point of sales via the screen Organisation > Initialisation > Organisation Parameters > Sales Channels > Point of Sale > Internet Parameters. Wait for a few minutes for the corresponding PoS to be updated with the latest parameters. |
Google Analytics 4 E-commerce tracking
Product impression and action data
Expand | |||||||
---|---|---|---|---|---|---|---|
Info | |||||||
| |||||||
|
Expand |
---|
1. Activate GA4 Enhanced E-commerce for the Point of SalesLogin to your SecuTix back-office, and activate enhanced e-commerce for the corresponding Internet point of sales via the screen Organisation > Initialisation > Organisation Parameters > Sales Channels > Point of Sale > Internet Parameters. Wait for a few minutes for the corresponding PoS to be updated with the latest parameters. |
Google Analytics 4 E-commerce tracking
Product impression and action data
Expand | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Impressions and clicks
1. Product impressionPush product impression data to datalayer.
2. Promotion impression (Advantage)Push Promotion impression data to datalayer on
3. Product details impressionData pushed when :
4. Product clickPush Product details' data when user clicks a product, includes the additional data
5. Promotion clickPush Product details' data when user clicks a product
|
Cart and Check-out
Expand | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1. Add or Remove products from CartPush data when a product is added to cart, or remove from cart
2.Check outData are sent to datalayer in check out process with 2 steps: Delivery and Order confirmation (after the payment page)
When user choose a delivery mode and click on Continue Code Block | | |||||||||||||||||||||||
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"event": "view_cart",
"ecommerce": {
"currency": "EUR", // Currency code used for the PoS
"action":"add"
"items": [{
"item_name": "Museum Pass", // Product Name
"item_id": "1234-567-987", // Unique SKU of the product item, i.e. product id - item id (if product is non-dated product) - performance id (if product is of event or parking or visit type) - seat category id - tarrif type id - timeslot id (if product is timeslot) - advantage id (if any) (same as enhanced e-commerce dataLayer)
"date":"03-01-2023 - 06:00" // Date time of performance/match
"price": "15.25", // Unit Price
"item_brand":"Visit Pass / Exhibition", // Product Family Type / Topic of the product (if set) (same as enhanced e-commerce dataLayer)
"item_category":"Cat A", // Seat category
"item_category2":"Full price", // tarrif type
"item_variant": "SALE",
"quantity": 1 // Quantity for this product item
"url": "https://mosa.int1-shop.secutix.com/selection/timeslotpass?productId=101047223156" // URL pointing to the corresponding product item selection page which can be used by 3rd-party email retargeting tools
"imgUrl": "https://mosa.int1-shop.secutix.com/api/1/dl/product/101047223156/logo" // Image URL of the corresponding product item which can be used by 3rd-party email retargeting tools
"type": "Sport", // Product Type
}]
}
} |
3. Check out
Data are sent to datalayer in check out process with 3 steps: Begin the Checkout, Delivery and Order confirmation (after the payment page)
Info | ||
---|---|---|
| ||
Please note that the payment page cannot push any data in the data layer, as this is a secure page and pushing data externally in a secure page is forbidden by the PCI certification. |
When user start the Check-out process (event 'begin_checkout')
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"event": "begin_checkout",
"ecommerce": {
"step": 0, //check out step, (0: Begin, 1: Delivery, 2: Summary)
"id":15284, // File ID
"option":"begin_checkout"
"items": [{ //List of productFieldObjects inside the order.
"item_name" |
When user choose a delivery mode and click on Continue (event 'add_shipping_info')
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"event": "add_shipping_info",
"ecommerce": {
"step": 1, //check out step, (0: Begin, 1: Delivery, 2: Summary)
"id":15284, // File ID
"option":"summary" //order summary page - where the step 1 is pushed (additional information)
"shipmentID": "E-ticket", //shipment mode name
"shipmentMode": "E-ticket", //shipment mode name
"shipping": 8 //shipment fee
"items": [{ //List of productFieldObjects inside the order.
"item_name": "Triblend Android T-Shirt", //Product Name (mandatory).
"item_id": 12345, //Product Id (mandatory).
"date":"13-01-2023 - 05:00"
"price": "15.25", //Unit Price (mandatory) (same as the basic e-commerce tag).
"item_brand": "Visit Pass / Exhibition", // Product Family Type / Topic of the product (if set)
"item_category":"Cat A", // Seat category
"item_category2":"Full price", // tarrif type
"item_variant": "SALE",
"quantity": 1, // same as the basic e-commerce tag
"coupon": "PartnerCUBE" // advantage name / advantage id
"type": "Sport", // Product Type
}]
}
}
|
When user input a voucher, select a payment method, then click on Continue to Payment (event 'add_payment_info')
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "event": "add_payment_info", "ecommerce":{ "step": 2, //check out step, (0: Begin, 1: Delivery, 2: Summary) "option":"order-confirmation" //order confirmation page - where the step 2 is pushed (additional information) "option": "VISA", //Listselected ofpayment productFieldObjectsmethod insidename the order. "id":1000463, 'item_name': 'Triblend Android T-Shirt', //Product Name (mandatory).File ID 'item_id': 12345"shipmentID": "1111111", //Product Id (mandatory). shipment ID, get from Delivery step 'date':'13-01-2023 - 05:00' 'price': '15.25', "shipmentMode": "E-ticket", // shipment mode name "shipping": 8, //Unitshipment Pricefee (mandatory) (same as the basic e-commerce tag). "paymentFee": 4, 'item_brand': 'Visit Pass / Exhibition', //payment Productoverhead Familyfee Type / Topic of the product (if set) "revenue": 35, 'item_category':'Cat A', // Seat category //total amount to pay "coupon": "PROMO" 'item_category2':'Full price', //promotional tarrifcode typeor voucher code "items": [{ 'item_variant': 'SALE', // List of productFieldObjects inside the order. 'quantity': 1, "item_name": "Triblend Android T-Shirt", // sameProduct as the basic e-commerce tag Name (mandatory). "item_id":12345, 'coupon': 'PartnerCUBE' // Product advantage name / advantage id 'type': 'Sport', Id (mandatory). "date":"13-01-2023 - 05:00" "price": "15.25", // Product Type// Unit Price (mandatory) (same as the basic e-commerce tag). }] } } }); </script> |
When user input a voucher, select a payment method, then click on Continue to Payment
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<script> dataLayer.push({ 'event': 'add_payment_info', 'ecommerce':{ 'checkout':{ 'actionField':{ 'step': 2, //check out step, (1: Delivery, 2: Summary) 'option':'order-confirmation' "item_brand": "Visit Pass / Exhibition", // Product Family Type / Topic of the product (if set) "item_category":"Cat A", // Seat category "item_category2":"Full price", // tarrif type "item_variant": "SALE", "quantity": 1, //order confirmation page - wheresame as the stepbasic 2 is pushed (additional information)e-commerce tag 'option': 'VISA',"coupon": "PartnerCUBE" //selected payment method name advantage name / advantage id 'id':1000463"type": "Sport", //File IDProduct Type }] 'shipmentID': '1111111', // shipment ID, get from Delivery step 'shipmentMode': 'E-ticket'} } |
When user completes an order (event 'purchase')
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "event": "purchase", "ecommerce":{ "transaction_ID": "1234", //file shipmentID mode name '"shipping'": 8, //shipment fee 'payment fee'"paymentFee": 4, //payment overhead fee "affiliation":"SHOP", 'revenue': 35, //sales channel name "tax": 4, //totaltax amountfee to pay 'coupon'"value": 'PROMO'35, //promotionaltotal codeamount orto voucherpay code }, "currency": "EUR" '"items'": [{ // List of productFieldObjects inside the order. '"item_name'": '"Triblend Android T-Shirt'", // Product Name (mandatory). '"item_id'":12345, // Product Id (mandatory). '"date'":'"13-01-2023 - 05:00'" '"price'": '"15.25'", // Unit Price (mandatory) (same as the basic e-commerce tag). '"item_brand'": '"Visit Pass / Exhibition'", // Product Family Type / Topic of the product (if set) '"item_category'":'"Cat A'", // Seat category '"item_category2'":'"Full price'", // tarrif type '"item_variant'": '"SALE'", '"quantity'": 1, // same as the basic e-commerce tag '"coupon'": '"PartnerCUBE'" // advantage name / advantage id '"type'": '"Sport'", // Product Type }] } } }); </script> |
Info | ||
---|---|---|
| ||
The 'purchase' event name can be customized by using the config key config.googleanalytic.GA4purchase at po Currently, this is the only event that provides this customization option. |