Skip to content

Dataset

Matomo raw visit log datasets for AI training

A Matomo dataset is an export of the raw tracking tables behind a Matomo (formerly Piwik) install: one log_visit row per visit, the ordered log_link_visit_action rows inside it, the log_action lookup of URLs, page titles and event names, and log_conversion rows for goals and ecommerce orders, with the site, goal, segment and custom dimension definitions. SourceX sources it to a buyer's spec from established businesses that run Matomo, self-hosted on their own database or on Matomo Cloud. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Unsampled visit, action and conversion rows from a Matomo database, with the lookup and definition tables needed to read them
Typical systems
Matomo On-Premise on MySQL or MariaDB with Goals, Ecommerce, Events, Site Search and Custom Dimensions; Matomo Cloud and paid plugins such as Heatmaps and Session Recording or Form Analytics only by agreement
Typical history
Set per install by its raw-data deletion setting; archive tables may reach back further than raw logs. Specify raw and aggregated ranges separately
Modality
Structured relational rows; URLs, page titles, site search keywords and event names as short text; archived reports as serialized tables
Delivery formats
Parquet or CSV per log table with log_action resolved or shipped, a schema file stating the Matomo version and active plugins, and definition tables as JSON
Preparation
idvisitor, config_id and user_id rekeyed or dropped; location_ip removed; city and coordinates removed; URLs, titles, search keywords and custom dimension values screened
Licensing
Scoped per site ID and date range; permitted use agreed per license; each tracked site's consent basis and privacy notice checked with counsel; Matomo's terms checked by owner and buyer where Cloud or paid plugins are involved
Availability
Sourced to your spec; raw history depends on each install's retention settings, and supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
visit_refstringKeyed stand-in for idvisit in log_visit, shared by the visit's action and conversion rows.
site_refobjectidsite from log_visit with the Site's timezone, currency and ecommerce flag from the site table.
visitor_keystringKeyed pseudonym for log_visit.idvisitor, which Matomo takes from its first-party cookie or, without cookies, from config_id.
visit_timesobjectvisit_first_action_time and visit_last_action_time from log_visit in UTC, with visit_total_time and visit_total_actions.
visitor_historyobjectlog_visit's returning-visitor columns as written at the visit: visitor_returning, visitor_count_visits and time since the previous visit.
referrerobjectreferer_type, referer_name and referer_keyword from log_visit, with referer_url cut to its host.
deviceobjectconfig_os, config_browser_name, config_device_type and config_resolution from log_visit; config_id is dropped.
locationobjectlocation_country and location_region from log_visit; location_city, coordinates and location_ip removed.
actionsarrayThe visit's log_link_visit_action rows in server_time order, each resolved through log_action to a type, URL and page title, with time_spent_ref_action.
eventsobjectFor event actions, the category, action and name resolved from idaction_event_category, idaction_event_action and idaction_name through log_action.
custom_dimensionsobjectcustom_dimension_N columns from log_visit and log_link_visit_action, labeled with name and scope from the custom_dimensions table.
conversionsarraylog_conversion rows for the visit: idgoal with the Goal's name and match rule, server_time and revenue; idorder rekeyed.
ecommerce_itemsarraylog_conversion_item rows for an order or abandoned cart: SKU, name and category resolved through log_action, price and quantity.
tracking_metaobjectHow the row was collected (JavaScript tracker, server log import or Tracking API), with the install's IP masking setting.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
 "visit_ref": "v_7a31c9e2",
 "site_ref": {
  "idsite": 3,
  "ecommerce": true,
  "timezone": "UTC"
 },
 "visitor_key": "vk_c41f08",
 "visit_times": {
  "visit_first_action_time": "2025-05-14 18:02:11",
  "visit_last_action_time": "2025-05-14 18:11:47"
 },
 "visitor_history": {
  "visitor_returning": 1,
  "visitor_count_visits": 4
 },
 "referrer": {
  "referer_type": 3,
  "referer_name": "gardenforum.example"
 },
 "device": {
  "config_os": "AND",
  "config_browser_name": "CM",
  "config_device_type": 1
 },
 "location": {
  "location_country": "de"
 },
 "actions": [
  {
   "server_time": "2025-05-14 18:02:11",
   "type": "page_url",
   "url": "shop.example/garden/raised-beds",
   "page_title": "Raised beds"
  },
  {
   "server_time": "2025-05-14 18:03:47",
   "type": "site_search",
   "keyword": "cedar 120 cm",
   "search_count": 14,
   "time_spent_ref_action": 96
  },
  {
   "server_time": "2025-05-14 18:04:20",
   "type": "page_url",
   "url": "shop.example/p/cedar-bed-120",
   "time_spent_ref_action": 33
  },
  {
   "server_time": "2025-05-14 18:11:47",
   "type": "page_url",
   "url": "shop.example/checkout/complete",
   "time_spent_ref_action": 447
  }
 ],
 "conversions": [
  {
   "idgoal": 0,
   "goal": "ecommerce_order",
   "order_key": "o_2b77f0",
   "revenue": 189.0,
   "items": [
    {
     "sku": "CB-120",
     "price": 189.0,
     "quantity": 1
    }
   ]
  }
 ],
 "tracking_meta": {
  "method": "javascript_tracker",
  "ip_bytes_masked": 2
 }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Model navigation inside a visit

Ordered action rows with page titles and time on each page give the full path through a site.

Learn search-to-purchase paths

Site search keywords, with result counts where the site sent them, followed by product views, carts and orders in the same visit.

Train analytics agents on an open schema

Matomo's table layout is public, so an agent's SQL over log tables can be scored against the install's archived report figures.

Predict conversion and cart abandonment

log_conversion holds goal conversions, orders and abandoned carts with revenue and items against the visit that led to them.

Evaluate bot and data-quality filters

Rows from server log imports and from the JavaScript tracker differ in known ways and can be labeled by method.

Use-case guides: Enterprise and computer-use agents, Private evaluation sets, Coding agents

What makes this data valuable

Raw rows, not archives

log_visit and log_link_visit_action rows for the whole range, with archives as a cross-check.

log_action complete

Every idaction in the action rows resolves to a string and type.

Schema and version stated

Matomo version, active plugins and the custom dimension index map delivered.

Collection method labeled

JavaScript tracker, log import and Tracking API rows told apart.

Stable visitor keys

Cookie-based idvisitor for the range, rekeyed consistently across visits.

Settings history disclosed

Dates of changes to IP masking, cookie use and raw-data deletion.

License terms

Matomo dataset

This page covers matomo self-hosted web analytics records.Illustrative

The raw clickstream is rows in the business's own database

A self-hosted Matomo install writes every tracking request into MySQL or MariaDB tables on a server the business controls. Nothing is sampled on the way in, and no vendor's export tool stands between the owner and the rows. One visit is one log_visit row. Each page view, download, outlink, site search and event in it is a log_link_visit_action row with a server_time. Goal conversions, ecommerce orders and abandoned carts are log_conversion rows, with order lines in log_conversion_item. A dump of a few tables is the whole clickstream.

The tables are normalized in a way a buyer has to plan for. Action rows hold no URL and no title, only integer references into log_action, which stores each distinct string once with a type code for page URL, page title, download, search keyword, event category, action or name, or product SKU. URLs are stored with the scheme and www stripped into a prefix code. Time on a page is written to the next row: time_spent_ref_action holds the seconds spent on the previous action, so a visit's last action has no duration there. Some installs also carry a time_spent column on the row itself, so ask which one the delivery used. Nor is the schema fixed. Plugins add columns to the log tables, custom dimensions fill numbered columns whose meaning sits in the custom_dimensions table, and installs that began as Piwik may keep the piwik_ table prefix.

Matomo has no visitor table. A person is the set of visits that share an idvisitor, and returning-visitor counts are copied onto each visit as it starts. A visit row is updated in place while the visit is open, so a visit-scope custom dimension keeps only its last value. Site, Goal and Segment rows are current definitions. A goal whose match rule was edited has conversions under both rules, and nothing in the log marks the change.

Raw history and identifiability are settings of each install

Matomo's privacy settings include a scheduled task that deletes raw log rows older than a chosen age, and a separate one for old reports. Many installs run only the first. What remains for the deleted period is the archive tables, one archive_numeric and one archive_blob table per month, holding metrics and compressed report tables per site, period and segment. Those are aggregates, and capped ones: a report keeps a configured number of rows and folds the rest into an Others row, so the long tail of pages and keywords cannot be recovered.

Identifiability is also a per-install choice, and it can change mid-history without marking the rows. IP anonymization masks a configured number of bytes of location_ip before the row is written, and some installs mask none. The idvisitor comes from a first-party cookie. Where cookies are disabled Matomo falls back to config_id, a hash of IP address, operating system, browser and plugin settings that is not built to persist, and a returning visitor can then look new. The user_id column holds whatever the site passed as a User ID, often an email address or a customer number.

To test a sample, count visits per site per month and look for one hard floor across sites, the deletion setting at work. A share of returning visits near zero points to cookieless tracking. Look for visits with no screen resolution: rows built by importing server logs lack what only the JavaScript tracker sees. Join every action to log_action and count the misses. Then compare raw visit counts for a few days with the archived figures, remembering that log times are UTC and reports cut days in the site's timezone.

What to check before licensing

  • Ask for the install's anonymization settings and the dates they changed: how many IP bytes are masked and whether masked addresses were used for geolocation.
  • Confirm idvisitor, config_id, user_id and location_ip were removed or rekeyed, and that city and coordinates are gone.
  • Have counsel confirm the consent basis and privacy notice of each tracked site and which law applies to its visitors. Some sites run Matomo without a consent banner under an audience-measurement exemption, which may limit other uses.
  • Ask whether the task that deletes old raw data is on, and for the first date with raw rows per site.
  • Ask how visits were collected, by the JavaScript tracker, server log import or the Tracking API, and how bots were excluded.
  • Have the data owner and your counsel check which vendor terms apply. Self-hosted Matomo is open-source software the business runs, while Matomo Cloud and paid plugins come with their own terms on exported data and API use.
  • Review how URLs with query strings, page titles, site search keywords and custom dimension values were screened, and confirm session recording tables are excluded unless agreed.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Is Matomo data sampled?

No, not at collection. Matomo stores a row for every visit and every action it tracks, so raw tables are complete for traffic that reached the tracker. Two limits apply. Visitors who opted out, blocked the tracker or declined consent are absent, and archived reports cap their row counts and fold the remainder into an Others row.

How much raw history does a Matomo install hold?

It depends on one setting. An install can delete raw visit logs older than a chosen age while keeping aggregated reports, and many do. Where that task runs, visit-level data exists only for the retained window and older periods exist as archives. Ask for the earliest raw date per site.

Can visitors be followed across visits in Matomo logs?

Usually, within one site and one browser. Visits share an idvisitor taken from a first-party cookie, and each visit row records how many visits came before it. Where the site disabled cookies, the ID rests on config_id, a hash of IP address and browser settings that is not built to persist, and returning visitors can look new. Sites with logins may also set a User ID, which links devices.

What can be delivered from Matomo Cloud instead of a self-hosted install?

Less directly. A Cloud customer does not run the database server, so the business cannot dump the tables itself. Visit-level rows come through Matomo's Live API, which returns visits with their actions as nested JSON, or through whatever export or database copy the hosted service provides to that account. Ask which route produced the files and which vendor terms cover it.

Is Matomo data free of personal data because Matomo is a privacy-focused tool?

No. Each install decides how to use Matomo's privacy settings. Raw rows can hold full or partly masked IP addresses, persistent visitor IDs, User IDs, city-level location and URLs or search terms naming people. De-identification removes or rekeys those columns and screens the text. No method is perfect, so review a sample.

Is SourceX affiliated with Matomo or InnoCraft?

Matomo is named to identify the system the records come from. That does not imply a partnership with or endorsement by Matomo or InnoCraft. The records belong to the business that runs Matomo, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies