Activities analytics
How the platform duplicates activities for performance analytics, and how to make custom events count.
Your goal
Understand what the platform builds from your activities so that session duration, conversions, and funnels are populated - and get your custom events counted when renaming your tracking is not an option.
Expected outcome
Built-in dashboards and funnel analytics showing your real volumes, not zeros.
Why a separate store exists
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 information and optimises them.
That duplication is what analytics reads. And it only happens for predefined events.
A sample event that analytics can use:
{
"$ts": 3489009384393,
"$event_name": "$transaction_confirmed",
"$properties": {
"$items": [
{
"$id": "product_ID",
"$qty": 20,
"$price": 102.8,
"$brand": "Apple",
"$category1": "Category 1",
"$category2": "Category 2",
"$category3": "Category 3",
"$category4": "Category 4"
}
],
"$currency": "EUR"
}
}Which events feed which analytics, and which properties matter, is tabulated in UserActivity & UserEvent.
Retention
This is not configurable. If you need a longer analytical history, extract it - see Export your data and Data retention.
Transforming your custom events
If you already send custom events and cannot change your tracking, you can declare an event transformation so analytics still works.
The transformation
A transformation is linked to a datamart:
datamart_id
Integer
The datamart where the transformation applies.
channel_id
Integer
The channel where it applies.
source_event_name
String
The name of your custom event.
target_event_name
String
The predefined event it becomes. Allowed values: $transaction_confirmed, $item_view, $basket_view, $list_item_view.
mapping_id
Integer
The property mapping to apply.
Manage them with:
The property mapping
A mapping decides which property of your custom event becomes which property of the predefined event. Each entry pairs a target_attribute_name with a source_attribute_path, and paths can be nested through sub_path.
Verify
Built-in dashboards show non-zero conversions and amounts.
Funnel analytics can filter by product ID, brand, and category.
After declaring a transformation, new events appear in analytics - and you have not expected old ones to.
Related pages
Last updated
Was this helpful?