UserActivity & UserEvent
The predefined event names and properties, and what the platform does automatically when you use them.
Your goal
Name your events with the predefined names, and fill the predefined properties, so that the platform's built-in processing - analytics, dashboards, funnels, consent handling - works on your data without extra effort.
Expected outcome
A tracking plan in which every event that has a predefined equivalent uses it, and where custom names are a deliberate choice rather than an accident.
What a UserActivity is
A UserActivity is an interaction with the user, online or offline. It can be the summary of an online visit, the detailed content of an in-store purchase, the summary of a call to a call centre, or a campaign interaction such as an opened email or a click on a banner.
A UserActivity is a collection of events done by a single user in a given period of time. A website activity is a session of no more than 30 minutes on a given site. An activity is also linked to its referrer, so a user who switches referrer and comes back to the same site starts a new activity. For each user, activities are ordered in a timeline.
The payload you send to record an activity, and its fields, are described in The UserActivity object.
What an event is
A UserEvent is the most granular level of interaction with a user. It is an object composed of an event name and a list of properties, each property being a name and a value. Events are what you send; the platform aggregates and encapsulates them into UserActivity objects.
{
"$ts": 3489009384393,
"$event_name": "$transaction_confirmed",
"$properties": {
"$items": [
{
"$id": "product_ID",
"$qty": 20,
"$price": 102.8,
"$brand": "Apple",
"$category1": "Category 1",
"$category2": "Category 2"
},
{
"$id": "product_ID2",
"$qty": 12,
"$price": 3.4,
"$brand": "Microsoft"
}
],
"$currency": "EUR"
}
}Predefined event names
Using a predefined event name gives you adapted automatic processing on that event.
$page_view
The user viewed a page. See the warning below - these events do not persist.
$home_view
The user viewed the home page.
$item_view
The user viewed an item.
$item_list_view
The user viewed a list of items.
$basket_view
The user viewed the basket.
$transaction_confirmed
The user completed a transaction.
$conversion
The user completed a conversion. Registered by the integrator, or created automatically by the platform when a goal is met.
$app_install
The user installed an app.
$app_update
The user updated an app.
$app_open
The user opened or resumed an app.
$ad_view
The user was exposed to a display ad.
$ad_click
The user clicked an ad.
$email_view
The user opened an email.
$email_click
The user opened a link in an email.
$set_user_choice
The user gave consent to, or objected to, a processing activity.
Predefined event properties
$items
An array of products associated with the event, mainly used in e-commerce product tracking. Example: [{"$id":"ProductID1"},{"$id":"ProductID2"}]. Each item supports $id, $ean, $qty, $price, $brand, $name, $category1, $category2, $category3, $category4.
$campaign_technical_name
Technical name of a campaign associated with the event, when tracking ads exposure.
$sub_campaign_technical_name
Technical name of a sub-campaign associated with the event, when tracking ads exposure.
$creative_technical_name
Technical name of a creative associated with the event.
$processing_token
Token of the processing activity concerned, when the event name is $set_user_choice.
$choice_acceptance_value
Acceptance value of the user choice, when the event name is $set_user_choice.
Properties used to declare an activity origin are listed in Collect data in real time.
Which events feed which analytics
Data entering your datamart is stored in a multi-model database optimised for different usages. To display performance analytics - session duration, conversions, funnels - the platform duplicates some user activities and optimises them. That duplication only happens for predefined events.
$transaction_confirmed
Home dashboards (E-Commerce Engagement), segment dashboards (E-Commerce Engagement), funnel analytics
$items - the products in the transaction; $items.$qty and $items.$price for conversion amounts; $items.$id for product IDs in funnel analytics; $items.$brand for the brand filter; $items.$category1 to $category4 for categorisation in funnel analytics
$item_view
Funnel analytics
$items - one product only; $items.$price for conversion amounts; $items.$id, $items.$brand, $items.$category1 to $category4 as above
$basket_view
Funnel analytics
$items - the products in the basket; $items.$qty and $items.$price for conversion amounts; $items.$id, $items.$brand, $items.$category1 to $category4 as above
If you already send custom events
You do not have to redo your tracking to benefit from analytics: events can be transformed on the way in. An event rule can rename or reshape an incoming event, so a custom event carrying the right information can become its predefined equivalent before it is stored.
Verify
Every event in your tracking plan that has a predefined equivalent uses it.
Product events carry
$itemswith$id,$price, and$qtywhere amounts are expected.You are not relying on
$page_viewfor anything queryable.Built-in dashboards show non-zero conversions and amounts after collection starts.
Related pages
Last updated
Was this helpful?