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",
"item_date": "2024-09-04",
"item_time": "16:30:00",
"guest_count": "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",
"item_date": "2024-09-04",
"item_time": "16:30:00",
"guest_count": "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",
"item_date": "2024-09-04",
"item_time": "16:30:00",
"guest_count": "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",
"item_date": "2024-09-04",
"item_time": "16:30:00",
"guest_count": "2"
}
]
})
Purchase
The purchase event occurs when a successful transaction is completed.
The "recommendation_booking" parameter will be included for any purchases resulting from a recommendation.
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",
"item_date": "2024-09-04",
"item_time": "16:30:00",
"guest_count": "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"
}
Custom dimensions
Please note that the below fields are custom parameters. As such, they need to be set up as custom dimensions in GA4 if you wish to include these fields in GA4 reporting.
Dimension name | Scope | Description | Item parameter |
Item date | Item-scoped | The item start date | item_date |
Item time | Item-scoped | The item start time | item_time |
Guest count | Item-scoped | The number of guests associated with the item | guest_count |
Recommendation booking | Event-scoped | Whether the purchase resulted from a recommendation | recommendation_booking |
Company | Event-scoped | The company for which the form was submitted | company |
Form name | Event-scoped | The name of the form submitted | form_name |
Form id | Event-scoped | The id for the form submitted | form_id |
Enquiry id | Event-scoped | The unique id associated with the enquiry | enquiry_id |
Comments
0 comments
Article is closed for comments.