Event Model and Markup
Summary
The application does not know what the user is doing. It is taught to send events to an analytics server — this is the event model.
What is an Event
An event is a signal about a user action: a button click, adding to the cart, payment.
{
"event_name": "payment_success",
"properties": {
"price": 1500,
"category": "shoes"
}
}
Event Model
This is a standard table (specification for developers) where all events are described:
- event_name — name of the event (
button_clicked,item_added_to_cart). - properties — parameters (
button_color: red,price: 1500).
Checking Markup
The analyst opens a tool (Charles/Fiddler or developer console) and checks if the correct event with the correct price and without duplicates is sent when the 'Buy' button is pressed.
Where Events Are Sent
- Amplitude, Mixpanel, PostHog
- Yandex.Metrica