Google Analytics (GA4) events on Easol
When you set up Google Analytics on Easol, the platform will track the below actions that visitors take on your website and pass these to your Google Analytics account.
Page view
The pageView event tracks when a page is viewed.
gtag('event', 'page_view', {
page_title: 'Nomadic Festival',
page_location: 'https://www.nomadic-festival.com/'
})
Add an item to the cart
The addToCart event signifies when a product or experience is added to the shopping cart.
gtag("event", "add_to_cart", {
currency: "USD",
value: 7.77,
"items": [
{
"item_id": "dbdb87db-f1ac-4078-a7c6-7827204f94eb",
"item_name": "Nomadic Festival",
"affiliation": "Nomadic Festival",
"coupon": "FREE",
"discount": "-428.50",
"item_brand": "Nomadic",
"item_category": "experience",
"item_category2": "Festival",
"item_category3": "Music",
"item_variant": "VIP Pass",
"price": "428",
"quantity": "2"
}
]
})
Remove an item from the shopping cart
The removeFromCart event indicates the removal of items from the shopping cart.
gtag("event", "remove_from_cart", {
currency: "USD",
value: 7.77,
"items": [
{
"item_id": "dbdb87db-f1ac-4078-a7c6-7827204f94eb",
"item_name": "Nomadic Festival",
"affiliation": "Nomadic Festival",
"coupon": "FREE",
"discount": "-428.50",
"item_brand": "Nomadic",
"item_category": "experience",
"item_category2": "Festival",
"item_category3": "Music",
"item_variant": "VIP Pass",
"price": "428",
"quantity": "2"
}
]
})
Begin checkout
The beginCheckout event marks the initiation of the checkout process. For example, a user has proceeded to the /checkout page.
gtag("event", "begin_checkout", {
currency: "USD",
value: 7.77,
coupon: "SUMMER_FUN",
"items": [
{
"item_id": "dbdb87db-f1ac-4078-a7c6-7827204f94eb",
"item_name": "Nomadic Festival",
"affiliation": "Nomadic Festival",
"coupon": "FREE",
"discount": "-428.50",
"item_brand": "Nomadic",
"item_category": "experience",
"item_category2": "Festival",
"item_category3": "Music",
"item_variant": "VIP Pass",
"price": "428",
"quantity": "2"
}
]
})
Login
The login event is triggered when a user logs into their account.
gtag("event", "login")
Sign up
The signUp event is recorded when a user creates a new account on the platform.
gtag("event", "sign_up")
Add payment info
The addPaymentInfo event signifies the addition of payment information during checkout.
gtag("event", "add_payment_info", {
currency: "USD",
value: 7.77,
coupon: "SUMMER_FUN",
"items": [
{
"item_id": "dbdb87db-f1ac-4078-a7c6-7827204f94eb",
"item_name": "Nomadic Festival",
"affiliation": "Nomadic Festival",
"coupon": "FREE",
"discount": "-428.50",
"item_brand": "Nomadic",
"item_category": "experience",
"item_category2": "Festival",
"item_category3": "Music",
"item_variant": "VIP Pass",
"price": "428",
"quantity": "2"
}
]
})
Purchase
The purchase event occurs when a successful transaction is completed.
gtag("event", "purchase", {
transaction_id: "T_12345",
value: 25.42,
currency: "USD",
coupon: "SUMMER_SALE",
"items": [
{
"item_id": "dbdb87db-f1ac-4078-a7c6-7827204f94eb",
"item_name": "Nomadic Festival",
"affiliation": "Nomadic Festival",
"coupon": "FREE",
"discount": "-428.50",
"item_brand": "Nomadic",
"item_category": "experience",
"item_category2": "Festival",
"item_category3": "Music",
"item_variant": "VIP Pass",
"price": "428",
"quantity": "2"
}
]
})
Generate lead
The generateLead event occurs when a customer submits an enquiry form.
Note: This applies to forms set up using the Easol enquire feature only, not external integrations.
gtag("event", "generate_lead", {
company: "Nomadic",
form_name: "2024 event enquiry",
form_id: "00000000"
enquiry_id "12345678"
})
User Id
This data is passed alongside events if the user is signed in.
{
"userId": "00000000-0000-0000-0000-0000000000",
"userName": "First Last",
"userEmail": "email@easol.com",
"userCurrency": "USD"
}
Comments
0 comments
Please sign in to leave a comment.