Skip to main content

Matomo protocol

This schema document is auto-generated for the matomo protocol.

NameDisplay NameScopeTypeDescription
idEvent IDeventStringA unique event identifier, generated server-side when the hit is received, used to deduplicate events.
nameEvent NameeventStringThe name of the event. This identifies the action the user performed (e.g., 'page_view', 'click', 'purchase', 'sign_up').
property_idProperty IDeventStringThe unique identifier for the property that sent this event, used to distinguish between different tracked properties and route data to appropriate destinations.
property_nameProperty NameeventStringThe name of the property that sent this event, used for display and reporting purposes, mapped from configuration, not tracked directly from the event data.
date_utcEvent Date (UTC)eventDateThe date when the event occurred in the UTC timezone, formatted as YYYY-MM-DD.
timestamp_utcEvent Timestamp (UTC)eventDatetime (s, UTC)The precise UTC timestamp of when the event occurred, with second-level precision. This represents the time recorded when the hit is received by the server.
client_idClient IDeventStringThe Client ID is a unique, randomly generated identifier assigned to each device-browser pair or app installation. It is stored client-side and sent with every event, enabling the analytics system to calculate the number of unique users. It is also used as one of the identifiers that merge events into a session.
user_idUser IDeventStringAn optional, user-provided identifier for authenticated users. It is set by the tracking implementation when a user is logged in (and can be identified) and enables tracking across devices and sessions for the same user.
ip_addressIP AddresseventStringThe IP address (IPv4 or IPv6) from which the tracking request originates, used as the source for geolocation data.
page_locationPage LocationeventStringThe complete URL of the page where the event occurred, including protocol, domain, path, and query parameters (e.g., 'https://www.example.com/products/shoes?color=red&size=10'). Tracking parameters (UTM, click IDs) are excluded once extracted into dedicated columns.
page_hostnamePage HostnameeventStringThe hostname of the page where the event occurred, as specified in the URL (e.g., 'www.example.com', 'shop.example.com').
page_pathPage PatheventStringThe path of the page where the event occurred, as specified in the URL (e.g., '/products/shoes', '/blog/article-name').
page_titlePage TitleeventStringThe title of the page where the event occurred, as specified in the action_name parameter.
page_referrerPage ReferrereventStringThe URL of the page that referred the user to the current page, set to empty string for direct traffic or when referrer information is not available.
platformPlatformeventStringThe platform from which the event was sent. Identifies whether the event originated from a website, mobile app, or another source (e.g., 'web', 'ios', or 'android').
utm_campaignUTM CampaigneventStringThe campaign name from the 'utm_campaign' URL parameter, used to identify specific marketing campaigns (e.g., 'summer_sale', 'product_launch_2024').
utm_sourceUTM SourceeventStringThe traffic source from the 'utm_source' URL parameter, identifies where the traffic originated (e.g., 'google', 'facebook', 'newsletter').
utm_mediumUTM MediumeventStringThe traffic medium from the 'utm_medium' URL parameter, identifies the marketing medium (e.g., 'cpc', 'email', 'social', 'organic').
utm_contentUTM ContenteventStringThe content identifier from the 'utm_content' URL parameter, used to differentiate similar content or links within the same campaign (e.g., 'banner_top', 'button_cta').
utm_termUTM TermeventStringThe search term from the 'utm_term' URL parameter, used primarily for paid search campaigns to identify the keywords that triggered the ad.
utm_idUTM IDeventStringThe campaign ID from the 'utm_id' URL parameter, used to identify a specific campaign with a unique identifier for integration with advertising platforms.
utm_source_platformUTM Source PlatformeventStringThe source platform from the 'utm_source_platform' URL parameter, identifies the platform of the traffic source (e.g., 'Google Ads', 'Display & Video 360', 'Meta Ads').
utm_creative_formatUTM Creative FormateventStringThe creative format from the 'utm_creative_format' URL parameter, identifies the format of the creative asset.
utm_marketing_tacticUTM Marketing TacticeventStringThe marketing tactic from the 'utm_marketing_tactic' URL parameter, describes the targeting criteria (e.g., 'remarketing', 'prospecting').
click_id_gclidGoogle gclideventStringGoogle Click ID from Google Ads campaigns, extracted from the 'gclid' parameter in the page URL, used for tracking ad clicks and linking conversions to Google Ads.
click_id_dclidGoogle dclideventStringGoogle Click ID from Google Display & Video 360 campaigns, extracted from the 'dclid' parameter in the page URL, used for tracking display ad clicks and conversions.
click_id_gbraidGoogle gbraideventStringGoogle Click ID for iOS app-to-web conversions, extracted from the 'gbraid' parameter in the page URL, used for privacy-preserving attribution from iOS apps.
click_id_srsltidGoogle srsltideventStringGoogle Shopping Result Click ID, extracted from the 'srsltid' parameter in the page URL, used for tracking clicks from Google Shopping results.
click_id_wbraidGoogle wbraideventStringGoogle Click ID for iOS web-to-app conversions, extracted from the 'wbraid' parameter in the page URL, used for privacy-preserving attribution to iOS apps.
click_id_fbclidFacebook fbclideventStringMeta Click ID from Meta Ads campaigns (Facebook, Instagram, WhatsApp), extracted from the 'fbclid' parameter in the page URL, used for tracking ad clicks and linking conversions to Meta Ads.
click_id_msclkidMicrosoft msclkideventStringMicrosoft Click ID from Microsoft Advertising campaigns, extracted from the 'msclkid' parameter in the page URL, used for tracking Bing/Microsoft ad clicks and conversions.
geo_cityCityeventStringStub column, always returns null, since your geolocation provider does not implement this column.
geo_regionRegioneventStringStub column, always returns null, since your geolocation provider does not implement this column.
geo_metroMetro AreaeventStringStub column, always returns null, since your geolocation provider does not implement this column.
geo_countryCountryeventStringStub column, always returns null, since your geolocation provider does not implement this column.
geo_continentContinenteventStringStub column, always returns null, since your geolocation provider does not implement this column.
geo_sub_continentSub-ContinenteventStringStub column, always returns null, since your geolocation provider does not implement this column.
device_categoryDevice CategoryeventStringThe type of device used to access the site, extracted from the User-Agent header (e.g., 'smartphone', 'desktop', 'tablet', ...).
device_languageDevice LanguageeventStringThe language setting of the user's device, extracted from the lang query parameter or Accept-Language header, based on ISO 639 standard for languages and ISO 3166 for country codes (e.g., 'en-us', 'en-gb', 'de-de').
device_mobile_brand_nameDevice Brand (mobile)eventStringThe brand name of the mobile device, populated only for mobile devices, extracted from User-Agent header (e.g., 'Apple', 'Samsung', 'Google').
device_mobile_model_nameDevice Model (mobile)eventStringThe model name of the mobile device, populated only for mobile devices, extracted from User-Agent header (e.g., 'iPhone 13', 'Galaxy S21').
device_operating_systemOperating SystemeventStringThe operating system running on the user's device, extracted from the User-Agent header (e.g., 'iOS', 'Android', 'Windows', 'macOS', 'GNU/Linux').
device_operating_system_versionOperating System VersioneventStringThe version of the operating system running on the user's device, extracted from the User-Agent header (e.g., '26.0.1', '18.7').
device_web_browserWeb BrowsereventStringThe browser used to access the site, extracted from the User-Agent header (e.g., 'Chrome', 'Safari', 'Firefox', 'Mobile Safari').
device_web_browser_versionWeb Browser VersioneventStringThe version of the browser used to access the site, extracted from the User-Agent header (e.g., '141.0.0.0', '26.0.1').
tracking_protocolTracking ProtocoleventStringThe tracking protocol implementation used to send this event. Identifies which protocol parser processed the incoming hit (e.g., 'ga4_gtag', 'ga4_firebase').
ignore_referrerIgnore ReferrereventBooleanWhether the referrer should be ignored for this hit. True when ignore_referrer or ignore_referer query parameter is set to "1".
params_site_idSite IDeventStringThe Matomo website id tracking identifier, extracted from the idsite query parameter.
params_page_view_idPage View IDeventStringThe page view identifier, extracted from the pv_id query parameter.
params_goal_idGoal IDeventStringThe goal identifier, extracted from the idgoal query parameter.
params_categoryCategoryeventStringThe category of the event, extracted from the e_c query parameter.
params_actionActioneventStringThe action of the event, extracted from the e_a query parameter.
params_link_urlLink URLeventStringThe URL of an outbound link clicked by the user, extracted from the link query parameter.
params_download_urlDownload URLeventStringThe URL of a file downloaded by the user, extracted from the download query parameter.
params_search_termSearch TermeventStringThe keyword used in a site search, extracted from the search query parameter.
params_valueValueeventNumeric (Float64)The numeric value of the event, extracted from the e_v query parameter.
params_media_asset_idMedia Asset IDeventStringThe raw media asset identifier, extracted from the ma_id query parameter.
params_media_typeMedia TypeeventStringThe raw media type or context, extracted from the ma_mt query parameter.
params_content_interactionContent InteractioneventStringThe content interaction name, extracted from the c_i query parameter. To track a content interaction, set c_i (typically together with c_n/c_p/c_t).
params_content_nameContent NameeventStringThe content name, extracted from the c_n query parameter. To track a content impression, set c_n and optionally c_p and c_t.
params_content_pieceContent PieceeventStringThe content piece, extracted from the c_p query parameter.
params_content_targetContent TargeteventStringThe content target, extracted from the c_t query parameter.
params_product_priceProduct PriceeventNumeric (Float64)The price of the product being viewed, extracted from the _pkp query parameter.
params_product_skuProduct SKUeventStringThe SKU of the product being viewed, extracted from the _pks query parameter.
params_product_nameProduct NameeventStringThe name of the product being viewed, extracted from the _pkn query parameter.
params_product_category_1Product Category 1eventStringThe first product category, extracted from the _pkc query parameter.
params_product_category_2Product Category 2eventStringThe second product category, extracted from the _pkc query parameter.
params_product_category_3Product Category 3eventStringThe third product category, extracted from the _pkc query parameter.
params_product_category_4Product Category 4eventStringThe fourth product category, extracted from the _pkc query parameter.
params_product_category_5Product Category 5eventStringThe fifth product category, extracted from the _pkc query parameter.
params_search_keywordSearch KeywordeventStringThe site-search keyword extracted from the search query parameter. This is not the external referrer keyword (for example, not referer_keyword).
params_search_categorySearch CategoryeventStringThe search category used in a site search, extracted from the search_cat query parameter.
params_search_countSearch CounteventNumeric (Int64)The number of search results displayed, extracted from the search_count query parameter.
custom_variablesCustom VariableseventArray<item: Object<name: String, value: String>, nullable>Matomo custom variables from the cvar query parameter.
custom_dimensionsCustom DimensionseventArray<item: Object<slot: Numeric (Int64), value: String>, nullable>Matomo custom dimensions from query parameters like dimension1, dimension2, and so on.
ecommerce_purchase_revenueEcommerce Purchase RevenueeventNumeric (Float64)The grand total for the ecommerce order, extracted from the revenue query parameter.
ecommerce_shipping_valueEcommerce Shipping ValueeventNumeric (Float64)The shipping cost of the ecommerce order, extracted from the ec_sh query parameter.
ecommerce_subtotal_valueEcommerce Subtotal ValueeventNumeric (Float64)The subtotal of the ecommerce order excluding shipping, extracted from the ec_st query parameter.
ecommerce_tax_valueEcommerce Tax ValueeventNumeric (Float64)The tax amount of the ecommerce order, extracted from the ec_tx query parameter.
ecommerce_discount_valueEcommerce Discount ValueeventNumeric (Float64)The discount offered for the ecommerce order, extracted from the ec_dt query parameter.
ecommerce_order_idEcommerce Order IDeventStringThe order ID for the ecommerce order, extracted from the ec_id query parameter.
ecommerce_itemsEcommerce ItemseventArray<item: Object<sku: String, name: String, category_1: String, category_2: String, category_3: String, category_4: String, category_5: String, price: Numeric (Float64), quantity: Numeric (Float64)>, nullable>An array of ecommerce item snapshots extracted from the ec_items query parameter.
ecommerce_items_total_quantityEcommerce Items Total QuantityeventNumeric (Int64)The total quantity of ecommerce items, calculated by summing quantity values from ecommerce_items.
session_hit_numberSession Hit Numbersession-scoped-eventNumeric (Int64)The sequential number of this event within its session, starting from 0. This is the index position of the event in the chronological sequence of all events in the same session.
session_page_numberSession Page Numbersession-scoped-eventNumeric (Int64)The sequential page number within the session, starting from 0. Increments when the page location changes. Tracks which page view in the session this event occurred on.
time_on_pageTime On Pagesession-scoped-eventNumeric (Int64)Time spent on a particular page, calculated as the interval between subsequent page view events in seconds, or using other events timestamps if no subsequent page view was recorded.
session_is_entry_pageSession Is Entry Pagesession-scoped-eventNumeric (Int64)An integer flag indicating whether this event is the first page view in the session. Returns 1 for the first page view event in the session, 0 for all other events. Returns 0 if there are no page views in the session.
session_is_exit_pageSession Is Exit Pagesession-scoped-eventNumeric (Int64)An integer flag indicating whether this event is the last page view in the session. Returns 1 for the last page view event in the session, 0 for all other events. Returns 0 if there are no page views in the session.
traffic_filter_nameTraffic Typesession-scoped-eventStringName of the traffic filter that matched this event in testing mode. If the filter were active, this event would have been excluded.
next_page_locationNext Page Locationsession-scoped-eventStringThe URL of the next page viewed in the session after the current page. Only populated when a page transition is detected. Returns nil for the last page or when no page change has occurred.
next_page_titleNext Page Titlesession-scoped-eventStringThe title of the next page viewed in the session after the current page. Only populated when a page transition is detected. Returns nil for the last page or when no page change has occurred.
previous_page_locationPrevious Page Locationsession-scoped-eventStringThe URL of the previous page viewed in the session before the current page. Only populated when a page transition is detected. Returns nil for the first page or when no page change has occurred.
previous_page_titlePrevious Page Titlesession-scoped-eventStringThe title of the previous page viewed in the session before the current page. Only populated when a page transition is detected. Returns nil for the first page or when no page change has occurred.
session_idSession IDsessionStringA unique identifier for the session, derived from the first event's ID in the session, used to group all events that belong to the same user session.
session_sourceSession SourcesessionStringTraffic origin (e.g., google, facebook, direct) detected from referrer, click IDs, or UTM parameters. For details, see the D8A documentation on traffic attribution.
session_mediumSession MediumsessionStringMarketing channel (e.g., organic, cpc, social, email, referral) classifying how traffic arrived. For details, see the D8A documentation on traffic attribution.
session_termSession TermsessionStringSearch keyword or campaign term extracted from referrer query parameters or UTM tags. For details, see the D8A documentation on traffic attribution.
session_referrerSession ReferrersessionStringThe referrer of the session. Collected from the first event in the session.
session_durationSession DurationsessionNumeric (Int64)The duration of the session in seconds, calculated as the difference between the last event time and the first event time. Zero for single-event sessions.
session_total_eventsSession Total EventssessionNumeric (Int64)The total number of events that occurred during this session. Includes all event types (page views, clicks, custom events, etc.).
session_first_event_timeSession First Event TimesessionDatetime (s, UTC)The timestamp of the first event in the session. Marks the beginning of the user's session and is used as the baseline for calculating session duration.
session_last_event_timeSession Last Event TimesessionDatetime (s, UTC)The timestamp of the last event in the session. Marks the end of the user's session and is used along with first_event_time to calculate session duration.
session_entry_page_locationSession Entry Page LocationsessionStringThe URL of the first page view in the session.
session_second_page_locationSession Second Page LocationsessionStringThe URL of the second page view in the session.
session_exit_page_locationSession Exit Page LocationsessionStringThe URL of the last page view in the session.
session_entry_page_titleSession Entry Page TitlesessionStringThe title of the first page view in the session.
session_second_page_titleSession Second Page TitlesessionStringThe title of the second page view in the session.
session_exit_page_titleSession Exit Page TitlesessionStringThe title of the last page view in the session.
session_utm_campaignSession UTM CampaignsessionStringThe UTM campaign from the first page view event in the session.
session_utm_sourceSession UTM SourcesessionStringThe UTM source from the first page view event in the session.
session_utm_mediumSession UTM MediumsessionStringThe UTM medium from the first page view event in the session.
session_utm_contentSession UTM ContentsessionStringThe UTM content from the first page view event in the session.
session_utm_termSession UTM TermsessionStringThe UTM term from the first page view event in the session.
session_utm_idSession UTM IDsessionStringThe UTM ID from the first page view event in the session.
session_utm_source_platformSession UTM Source PlatformsessionStringThe UTM source platform from the first page view event in the session.
session_utm_creative_formatSession UTM Creative FormatsessionStringThe UTM creative format from the first page view event in the session.
session_utm_marketing_tacticSession UTM Marketing TacticsessionStringThe UTM marketing tactic from the first page view event in the session.
session_click_id_gclidSession Click ID GCLIDsessionStringThe Google Click ID (gclid) from the first page view event in the session.
session_click_id_dclidSession Click ID DCLIDsessionStringThe Google Display & Video 360 Click ID (dclid) from the first page view event in the session.
session_click_id_gbraidSession Click ID GBRAIDsessionStringThe Google Click ID for iOS app-to-web conversions (gbraid) from the first page view event in the session.
session_click_id_srsltidSession Click ID SRSLTIDsessionStringThe Google Shopping Result Click ID (srsltid) from the first page view event in the session.
session_click_id_wbraidSession Click ID WBRAIDsessionStringThe Google Click ID for iOS web-to-app conversions (wbraid) from the first page view event in the session.
session_click_id_fbclidSession Click ID FBCLIDsessionStringThe Meta Click ID (fbclid) from the first page view event in the session.
session_click_id_msclkidSession Click ID MSCLKIDsessionStringThe Microsoft Advertising Click ID (msclkid) from the first page view event in the session.
session_total_page_viewsTotal Page ViewssessionNumeric (Int64)The total number of page views (event name: page_view) in the session.
session_unique_page_viewsUnique Page ViewssessionNumeric (Int64)The unique number of page views (event name: page_view) in the session. Deduplicated by page_location.
session_total_purchasesTotal PurchasessessionNumeric (Int64)The total number of completed ecommerce orders (event name: ecommerce_order) in the session. Detected via idgoal=0 with a non-empty ec_id parameter.
session_total_scrollsTotal ScrollssessionNumeric (Int64)Not supported in the Matomo protocol. Scroll depth tracking has no standard query-parameter mapping and is always null.
session_total_outbound_clicksTotal Outbound ClickssessionNumeric (Int64)The total number of outbound link clicks (event name: outlink) in the session.
session_unique_outbound_clicksUnique Outbound ClickssessionNumeric (Int64)The unique number of outbound link clicks (event name: outlink) in the session. Deduplicated by params_link_url.
session_total_site_searchesTotal Site SearchessessionNumeric (Int64)The total number of site searches (event name: site_search) in the session.
session_unique_site_searchesUnique Site SearchessessionNumeric (Int64)The unique number of site searches (event name: site_search) in the session. Deduplicated by params_search_term.
session_total_form_interactionsTotal Form InteractionssessionNumeric (Int64)Not supported in the Matomo protocol. Form interaction tracking has no standard query-parameter mapping and is always null.
session_unique_form_interactionsUnique Form InteractionssessionNumeric (Int64)Not supported in the Matomo protocol. Form interaction tracking has no standard query-parameter mapping and is always null.
session_total_video_engagementsTotal Video EngagementssessionNumeric (Int64)The total number of video play events (event name: video_play) in the session.
session_total_file_downloadsTotal File DownloadssessionNumeric (Int64)The total number of file download events (event name: download) in the session.
session_unique_file_downloadsUnique File DownloadssessionNumeric (Int64)The unique number of file downloads (event name: download) in the session. Deduplicated by params_download_url.
session_split_causeSession Split CausesessionStringThe cause of the split of the session. If the session was not split, this will be null. Possible values: null, utm_campaign_changed, user_id_changed, max_events_reached, max_time_since_first_event_reached.
session_custom_variablesSession Custom VariablessessionArray<item: Object<name: String, value: String>, nullable>Merged Matomo custom variables from the _cvar query parameter across session events.
session_custom_dimensionsSession Custom DimensionssessionArray<item: Object<slot: Numeric (Int64), value: String>, nullable>Merged Matomo custom dimensions from query parameters like dimension1, dimension2, and so on across session events.
session_total_goal_conversionsTotal Goal ConversionssessionNumeric (Int64)The total number of goal conversions (event name: goal_conversion) in the session.
session_total_content_impressionsTotal Content ImpressionssessionNumeric (Int64)The total number of content impressions (event name: content_impression) in the session. Uses Matomo content tracking semantics: set c_n and optionally c_p and c_t. See https://matomo.org/guide/reports/content-tracking/.
session_total_content_interactionsTotal Content InteractionssessionNumeric (Int64)The total number of content interactions (event name: content_interaction) in the session. Uses Matomo content tracking semantics: set c_i for interaction tracking. See https://matomo.org/guide/reports/content-tracking/.
session_returning_userSession Returning UsersessionNumeric (Int64)Returning user indicator derived from Matomo _idn on the first event in the session. Set to 1 when _idn=0, otherwise 0.