Plugins View all plugins
Resources
Live demo ↗ Request a plugin Sign in feinwerk.io ↗ Get the connector
New

The Feinwerk Connector is now in the Matomo Marketplace. Install it right inside Matomo, no download, no FTP. Read the news · Here is how →

On this page
Plugin documentation

Data Exploration

Combine dimensions and metrics in one table, without creating a report and without waiting for archiving.

Plugin page Download ZIP Try the live demo ↗

Overview

Matomo's reports are archived: fast, but limited to the combinations someone set up in advance. Questions like "which browsers do visitors from our newsletter use?" or "which events happen on which page?" need a secondary dimension or a quick cross table, often just once.

Data Exploration answers them straight from your website's raw data. Pick up to three dimensions, optionally one more as columns (pivot) and up to ten metrics, and the table is ready. Matomo segments and row filters in groups narrow the result, segments and periods can be compared, a click on a column sorts it, and the export gives you CSV or TSV.

Dimensions and metrics

Choose from acquisition (channel type, referrer, campaign, keyword, referrer URL, AI assistant such as ChatGPT or Claude), visitor (continent, country, region, city, language, visitor type, visit number), technology (device type, device brand, device model, operating system and its version, browser and its version, screen resolution, AI agent where Matomo's AI Agents plugin is active), time (date, weekday, hour), visit (entry and exit pages) and behaviour dimensions (page URL, page title, events, downloads, outlinks, site search), plus your Custom Dimensions. Metrics cover visits, goals, ecommerce and actions: visits, unique visitors, bounce rate, visit duration, conversions, conversion rate and revenue of each goal, orders and average order value, pageviews, events, average event value, site searches, maximum actions in one visit and more. You can save an exploration with its segment, for yourself or for everyone who may use explorations on the website.

Reports and KPI cards

Every saved exploration is also a Matomo report: as a dashboard widget, with its own menu entry, in Matomo's scheduled email reports and in Email Reports Pro. A KPI card puts one number on your dashboard, compared with the average of the same weekday in the last four weeks and with a small line of the last 7 or 30 days. Matomo archives saved explorations like its own reports, so their reports cover any period, also weeks, months and years; after saving, Matomo builds the last 6 months in the background. KPI cards are calculated live from the raw data when shown.

Protection of your Matomo

Every exploration checks the data volume first, stops queries that run too long where the database supports it, runs at most twice at the same time and uses a read replica when one is configured. Saved explorations live in a table of their own, and Data Exploration changes neither Matomo itself nor other plugins.

Requirements

  • Matomo 6, or Matomo 5 from 5.12. The connector installs the matching version for you: 6.x for Matomo 6, 5.x for Matomo 5.
  • PHP 8.1 or newer
  • Optional: the free Marketing Campaigns Reporting plugin for campaign source and campaign medium, Channel Grouping for the channel group of every visit.

Installation

With one click through the Feinwerk connector or as a ZIP file, see Installing plugins.

License

Free plugin under GPL v3 or later.

Use cases

  • Secondary dimensions like in Google Analytics: Devices per campaign, events per page, countries per channel: up to three dimensions, one more as columns and up to ten metrics in one table.
  • Results at once: The table is built straight from the raw data. Nothing to set up, no archiving to wait for.
  • Table, chart or both: Bars per row or lines over time, with the metric of your choice.
  • Straight from your reports: The flask icon "Open in exploration" under the standard reports keeps the dimension, period and segment. "Explore this row" opens the visits of a report row, ready to break them down.
  • A menu on every row: Filter to its value, break it down by a second dimension, or see the visits behind it in the Visits Log.
  • Save and share: Keep an exploration with its segment, for yourself or for everyone who may use explorations on the website, and open it again at any time.
  • Gentle on your database: A size check before every query, a time limit, at most two queries at the same time, caching and read replica support.

Data Exploration answers questions about your Matomo data straight from the raw data: a free-form table with up to three dimensions, one more dimension as columns (pivot) and up to ten metrics. Matomo's reports are archived and only show the combinations set up in advance. With Data Exploration you combine freely, for example browsers per campaign or events per page, without creating a report and without waiting for archiving. Saved explorations become Matomo reports that Matomo archives like its own, for any period, and a KPI card puts one number on your dashboard.

Setup step by step

How to install and activate Data Exploration is described under Installing plugins. As a free plugin, Data Exploration is also in the Matomo Marketplace: under Administration → Platform → Marketplace, search for "Data Exploration" and install it. An exploration reads the raw data, and results are cached for at most an hour. Saved explorations live in a table of their own, and Matomo archives their reports like its own (step 7). Data Exploration runs on Matomo 6 and on Matomo 5 from 5.12.

1. Open an exploration

The reporting menu has the entry Explorations with the Free-form table. Or click the flask icon Open in exploration under a standard report. The exploration then takes the report's dimension, period and segment.

2. Choose dimensions and metrics

On the left, pick up to three dimensions, below them up to ten metrics. Both lists are grouped and searchable. The metrics include the visit metrics, each goal with its conversions, conversion rate and revenue (as many goals side by side as you like), the actions, and on ecommerce websites orders, revenue, products sold, average order value, ecommerce conversion rate, and abandoned carts and their value. The table updates on every change. Combinations that cannot give numbers, such as downloads next to the page title, are greyed out with the reason.

In tables with two or three dimensions, an action without a value of the second or third dimension shows under its first dimension with the name of the missing dimension and "not defined" (since version 6.6.0 or 5.10.0), for example pages without events under page URL and event category. When a visit dimension such as the browser comes first, only actions with a value of an action dimension count. KPI cards made from such tables count the same way.

Under Columns (pivot) one more dimension becomes columns: its top 3, 5 or 10 values, each with every chosen metric, followed by "Others" and "Total". A row has at most 60 cells; with many metrics, choose fewer values. Date and hour don't work as columns; weekday shows all seven days. While you compare segments or periods, the columns pause.

3. Period, segment, filters and comparisons

Choose the period and segment at the top of Matomo as usual; an exploration covers up to 31 days, and a period with at most 200,000 visits up to 12 months, such as a quarter or a whole year (since version 6.5.0 or 5.9.0, see step 9; the report of a saved exploration covers any period, see step 7). Under Filters you narrow the rows further: a dimension contains, does not contain, is, is not, starts with, does not start with, ends with or does not end with a text, matches a regular expression, or is empty or is not empty (empty is what the table shows as "not defined" or "Unknown"). While you type, the field suggests values from Matomo's reports of the period, the most visited first; weekday, hour, visitor type and channel type list all their values at once. A metric is greater than, at least, less than or at most a number. Conditions combine in groups: within each group all conditions or any of them apply, and a row meets all groups or any of them, for example (A and B) or C. You can use up to 10 conditions in up to 5 groups; Apply runs the filters. Enter bounce rate and conversion rate in percent, the visit duration in seconds.

To compare, click the compare icon next to a saved segment, or choose a period to compare with in the date picker. The table then shows one column per segment or period for every metric, for periods with the change in percent. Segments and periods also work together, with up to 4 columns per metric.

4. Chart or table

At the top of the result, choose Table, Chart or Both. Chart type offers three kinds. Bars shows one bar per row, with columns (pivot) one per value. Trend turns the first five rows into lines over the days of the period, over the hours for a single day. Donut shows the largest rows and "Others" as shares of the whole, for counts and sums. With date, hour or weekday as the first dimension, the chart shows lines over time, over every row of the period, even when the table stops earlier at its row limit. Metric in the chart selects which metric the chart shows.

5. Row menu and visits

At the end of each table row a menu offers three ways on: Filter to this value sets a filter on the row, Break down by a second dimension filters and opens the choice of the next dimension (until three are chosen), Show these visits opens the Visits Log with exactly this row's visits (within the page's segment). Under many standard reports each row also offers Explore this row: the exploration opens on that row's visits, ready to break them down.

6. Sort, export, share

Click a column header to sort. Under Rows you choose how many rows appear, up to 1,000. When rows were cut, "Others" calculates the exact rest on request. When a long value such as a URL is shortened, Show full values at the foot of the table shows every value whole, and Shorten long values goes back (since version 6.6.0 or 5.10.0); the choice is kept in the link and in saved explorations. The reports of saved explorations show Matomo's own table without this link. Export as CSV or Export as TSV downloads the result. The whole exploration is part of the link: Copy link and send it to colleagues who can see the website.

7. Save, as a report and in the menu

Click Save at the top of the result, choose Exploration under Save as and give it a name. Under Who sees it choose Only me or Everyone who may use explorations on this website (this needs at least write access to the website). A saved exploration keeps its dimensions, columns, metrics, filters, sorting, view and segment. The period stays the one you have selected, so the same exploration works for last week as well as for today.

Every saved exploration is also a Matomo report: add it to a dashboard as a widget, send it with Matomo's scheduled email reports or with Email Reports Pro, and fetch it through the API. Under Show in menu you can give it its own menu entry under Visitors, Behaviour, Acquisition, Ecommerce, Goals or Explorations. A report with several dimensions shows the first one and opens each row into the next; in the flat view each dimension column carries its name.

Since version 6.3.0 (Matomo 6) and 5.7.0 (Matomo 5), Matomo archives saved explorations like its own reports: their reports, dashboard widgets and scheduled email reports cover any period, also weeks, months, years and date ranges. When you save an exploration, or change what it shows (dimensions, metrics, filters, segment, the dimension under Columns (pivot)), its last 6 months are built in the background within the next hours, a few explorations per hour; renaming it or moving it in the menu changes nothing. The history needs Matomo's archiving cron (core:archive); without the cron, a saved report covers the days archived after it was saved. While days are still missing, a period of up to 31 days is answered live as before, and a longer one shows how many of its days with visits the report already holds. On the exploration page, a period longer than 31 days links to the exploration's report, and Open in exploration under a saved report for such a period opens its last 31 days. KPI cards, explorations beyond the limit per website (default 50) and, with archiving switched off, all saved explorations stay live reports of at most 31 days.

Saved explorations appear in the list at the top of the left column, your own first, then those shared by others. When you change an opened exploration, Save changes updates it and Save as new keeps a copy. If a change would lose days of the report's history that can no longer be built, because Matomo has deleted their raw data, the save panel says so and Save as new is preselected. Under Manage explorations, below the list, you see all of your own explorations, private and shared, and delete them or choose their place in the menu; administrators of the website also see the ones others shared. From Matomo 5.14 on you can also copy an exploration to your other websites. Only the person who saved an exploration, or a super user, can change it; administrators of the website can also delete shared ones. Each person can save up to 100 explorations per website.

8. KPI cards

A KPI card puts one number on your dashboard. When saving, choose KPI card under Save as and set:

  • Metric: one of the exploration's metrics, for the dashboard's period.
  • Compare with: the average of the last 4 same weekdays (default), the same weekday last week, the day, week or month before, or no comparison.
  • Line: a small line of the last 7 or 30 days (default), or none.
  • Change as: in percent (default) or as an absolute number.

Today counts up to the current time in the website's timezone, also on the days it is compared with, so half a day is compared with half days. Days without data are left out of the average. KPI cards are dashboard widgets and entries in email reports, but no menu entries.

9. Settings for super users

Under Administration → System → General settings → Feinwerk Data Exploration (FeinwerkDataExploration) super users set the longest period (up to 31 days), the row limit, the time limit per query, the largest number of visits in the chosen period, up to how many visits a longer period of up to 12 months is explored (Longer periods up to this many visits, default 200,000, never more than the largest number of visits; 0 turns longer periods off), whether to use the read replica, and the role that may use explorations (default: view access).

How Matomo archives saved explorations is set in config/config.ini.php, section [FeinwerkDataExploration], for example with ./console config:set --section=FeinwerkDataExploration --key=archive_history_months --value=12:

Setting Default Meaning
archive_reports 1 0: saved explorations are not archived, their reports cover at most 31 days
archive_history_months 6 months built for a new or changed exploration; 0: none
archive_history_segments 0 1: build the history for pre-processed segments too (more work for core:archive)
archive_segments 0 1: build the reports in the core:archive runs for pre-processed segments too
archive_history_batch 5 explorations whose history is queued per hour
archive_max_explorations_per_site 50 archived explorations per website (shared ones first, then the most recently changed); 0: no limit
archive_max_rows 1000 rows per day on a report's first level
archive_max_rows_subtable 100 rows per row below it (second and third dimension, columns)
archive_query_seconds 300 time limit in seconds of one exploration's query for one day in core:archive
archive_memory_mb 512 memory in MB one exploration may use for one day while Matomo archives it, never more than 80 % of what PHP's memory_limit leaves (see Good to know)

Examples

Devices per campaign. Dimension Campaign name, Device type as columns, metrics Visits and Conversions. You see at once whether a campaign converts worse on smartphones.

Events per page. Dimensions Page URL and Event category, metric Events. No standard Matomo report shows pageviews and events per page URL side by side.

Goals per channel. Dimension Channel type or, with Channel Grouping, the Channel group, metrics Visits and, per goal, Conversions and Conversion rate. You compare newsletter sign-ups and contact requests per channel in one table.

Orders today. An exploration with the metric Orders as a KPI card on the dashboard, compared with the average of the last four same weekdays. At 11 am you see whether the day is going better or worse than usual up to 11 am.

Country and channel. Dimensions Country and Channel type, metrics Visits, Bounce rate and Revenue.

With other plugins

  • Marketing Campaigns Reporting: campaign source and campaign medium become dimensions, and the campaign name comes from the plugin's campaign data, lower-cased when its setting says so.
  • Channel Grouping: the channel group of each visit becomes a dimension.
  • Email Reports Pro: saved explorations and KPI cards can be sent as reports by email.
  • Custom Dimensions: every active Custom Dimension of the website is available, visit or action scope.

Good to know

  • Visits next to actions: when a visit metric stands next to an action dimension, it counts the visits with that action. A visit with three pages counts on three rows, so the sum over all rows is larger than the number of visits. The column header says so.
  • Large websites and long periods: an exploration reads the raw data of the period. With visit dimensions (channel, country, device) that is the visits, with pages, events, downloads or outlinks the actions, often many times more. Before exploring, the page counts the visits of the period: above a quarter of the threshold (default 2 million) it warns, above the threshold the page offers the most recent days that fit. After a slow exploration the page says how to make it faster.
  • When the time limit stops an exploration: choose a shorter period or a segment, or use a visit dimension instead of pages or events. Super users can let explorations run on a read replica ([database_reader] in config.ini.php) and raise the time limit when the database has room for it. On large instances, enough memory for temporary tables (MariaDB: tmp_table_size and max_heap_table_size, MySQL 8: temptable_max_ram) and a buffer pool that holds the indexes of the log tables help. For questions you ask regularly over long periods, save the exploration: Matomo archives its report, and it covers any period.
  • Protection of your instance: every exploration checks the number of visits in the period first, stops queries after 30 seconds (where the database supports it: MySQL 5.7.8 and newer, MariaDB 10.1 and newer) and runs at most twice at the same time. Results, visit counts and filter values are cached, one hour for past periods, five minutes when today is included. A few quick changes start only one query.
  • Saved reports over long periods: unique visitors and unique pageviews cannot be added up across days, so a period longer than 31 days leaves them out. A condition on a metric (for example visits greater than 100) applies to the whole period. The archive keeps at most 1,000 rows per day on the first level and 100 per row below it, the rest as "Others". A wider exploration keeps fewer rows per day so that it fits the memory of archive_memory_mb, those with the most of its first metric; what it leaves out is then missing from "Others" too. A day that still does not fit is tried again in the next hours with the archiving cron, up to three times, and otherwise left out; the report then says how many of the period's days it holds. Days before Matomo deleted their raw data cannot be built.
  • Deleted raw data: if Matomo deletes old raw data (Privacy → Anonymize data), the page shows the earliest complete day and the table covers only the days after it.
  • Signed-in users only: anonymous users never use explorations, even when they may see a website's reports.
  • Event value and OR segments: when a segment combines a goal condition and an action condition with OR, the sum and the average of event values can be too high.
  • Period too large: instead of only refusing, the page offers the most recent days of the period that fit the threshold. One click loads them.
  • System Check: under Administration → Diagnostic → System Check administrators see whether a read replica is used, whether the database stops long queries, whether old raw data is deleted and the limits in force.
  • Roll-up sites: they have no raw data of their own, so there are no explorations.
  • Feedback and support: below the result you can tell us whether the exploration is helpful (thumbs up or down). Your Matomo server sends the answer to Feinwerk with the plugin and Matomo version, the browser family and major version and the language of Matomo, nothing about you, your website or your visitors. feedback = 0 in the [FeinwerkDataExploration] section of config/config.ini.php switches the question off; with enable_internet_features = 0 in Matomo's [General] section nothing is sent either. "Support" opens the Feinwerk contact form in a new tab.
  • No changes to Matomo: Data Exploration changes neither Matomo itself nor other plugins, so it survives Matomo updates.

Technical reference

PropertyValue
Technical nameFeinwerkDataExploration
Current version6.6.0
Matomo≥ 6.0.0, < 7.0.0-b1
PHP≥ 8.1.0
Licensefree
Database changesnone in the current version

FAQ

How is Data Exploration different from archived reports?

Archived reports are lasting and have a long history. Data Exploration is for questions you ask now or once: no setup, no waiting, up to 31 days, and up to 12 months for periods with at most 200,000 visits. Save an exploration, and it becomes an archived report itself: Matomo builds it in the background like its own reports and shows it on dashboards, in the menu and in email reports for any period.

Why at most 31 days, and when longer?

Explorations read raw data, and their time grows with the visits and actions they read, not with the days. Every website gets up to 31 days. A longer period of up to 12 months is explored when it has at most 200,000 visits, so smaller websites can look at a quarter or a whole year at once; larger ones are offered the most recent days that fit. Super users can change that number or turn longer periods off (0) in the plugin settings. For long periods on large websites, save the exploration: its report is archived and covers any period.

Who can use explorations?

Signed-in users with view access to the website. Super users can require a higher role. Anonymous users never use explorations.

What does a saved exploration keep, and who sees it?

Its dimensions, columns (pivot), metrics, filters, sorting, number of rows, view and segment, not the period: it opens with the period you have selected. A private exploration is seen only by you, a shared one by everyone who may use explorations on the website (never by anonymous users). Only the person who saved it, or a super user, can change it; administrators of the website can also delete shared ones. Under "Manage explorations" you see all of your own explorations, delete them or choose their place in the menu. Sharing needs at least write access to the website; with view access you save explorations for yourself.

What is a KPI card?

A saved exploration with a single number for your dashboard, for example orders. It compares with the average of the last four same weekdays (or the day, week or month before) and shows a small line of the last 7 or 30 days. Today counts up to the current time, also on the days it is compared with.

What happens on large websites and long periods?

The page counts the visits first and warns about large periods. When a period is too large, it offers the most recent days that fit. Queries are stopped at the time limit where the database supports it, and after a slow query the page says what makes it faster: a shorter period, a segment, or a visit dimension instead of pages. Matomo's System Check shows administrators how explorations run on their server.

Does it work with campaigns and channels?

Yes. With the free Marketing Campaigns Reporting plugin you get campaign source and campaign medium, with Channel Grouping the channel group of every visit.

Can I export or share results?

As CSV or TSV, and every exploration lives in its link. Send it to colleagues who can see the website.

Which Matomo version do I need?

Matomo 6, or Matomo 5 from 5.12, and PHP 8.1 or newer.