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

Dashboard Segment

Give every dashboard widget its own view of your data: a segment and a time range per widget, with a dashboard-wide default that filters the whole dashboard.

Plugin page Download ZIP Try the live demo ↗

Overview

Dashboard Segment lets you choose a Matomo segment per dashboard widget, with a dashboard-wide default that individual widgets can override or opt out of.

Matomo's dashboards apply one segment to every widget at once: the one chosen in the segment selector at the top. That makes mixed dashboards impossible, for example an "LLM / AI analysis" dashboard where most widgets should use an AI referrer segment, but the AI chatbot widgets must show all data (they have no AI referrer by definition). Dashboard Segment fixes that.

Features

  • Per-widget segment: pick a saved segment for any individual widget from a button in its header.
  • Dashboard default: set one default segment for the whole dashboard; widgets inherit it.
  • Three states per widget: inherit the default, use a specific segment, or show all data without a segment, which wins even over a dashboard default.
  • Per widget instance: the same widget can appear twice on a dashboard with different segments, useful for side-by-side comparison.
  • Time range per widget: fix a widget to today, yesterday, the last 7 or 30 days, this week, this month or this year, or let it follow the dashboard's period.
  • Per website: segments and time ranges are chosen and applied separately for each website; only the segments available for the current website are offered.
  • Visible at a glance: a slim bar under the widget header shows the active segment and time range, each with an × to remove it.

Order of precedence: the widget's own choice, then the dashboard default, then Matomo's segment selector.

Dashboard sharing is now the separate free plugin Dashboard Sharing. Install it to share dashboards with your team. With Dashboard Segment installed too, it carries each widget's segment and time range.

How it works

Dashboard Segment only adds to Matomo: it changes no files of Matomo or of the bundled Dashboard plugin.

  • The segment list comes from your saved segments in Matomo's segment editor. To use a new segment (e.g. AI referrer), create it there once; it then appears in the picker.
  • Choices are personal: they are stored per user, dashboard and website.
  • The plugin works for signed-in users with at least view access to the website. For viewers who are not signed in it stays idle.

Requirements

  • Matomo 6 or Matomo 5. The connector installs the matching version for you: 6.x for Matomo 6, 5.x for Matomo 5.
  • The bundled Dashboard and SegmentEditor plugins (active by default).

Installation

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

Usage

  1. Open a dashboard.
  2. Click the segment button in a widget's header and pick a segment, "No segment (all data)" or "Inherit dashboard default".
  3. Optionally, use the calendar button next to it to set a time range for this widget.
  4. Use the Dashboard default segment control above the widgets to set a default for the whole dashboard.
  5. Switch websites to manage each website's selection independently.

Known limitations

  • A dashboard-wide default filters the whole dashboard, including widgets that load in the browser (real-time, maps, sparklines, evolution graphs). What stays impossible is a per-widget exception on those widgets, so their per-widget buttons are hidden; standard report widgets support per-widget choices fully.
  • If you change a segment's conditions later in the segment editor, widgets keep the conditions they were set with, and the bar shows "Custom segment" instead of the name. Pick the segment again in that case.

License

Free plugin under GPL v3 or later.

Use cases

  • Mixed dashboards, finally: Build boards like an "AI traffic" dashboard where most widgets use an AI-referrer segment, while the chatbot widgets keep showing all data.
  • Set once, applies everywhere: A dashboard-wide default segment covers every widget; individual widgets can override it or opt out.
  • A default that filters everything: A dashboard-wide default segment filters the whole dashboard, including the live widgets, maps and graphs that load in the browser, not only the standard report widgets.
  • No duplicate dashboards: Stop cloning boards per segment or updating copies. One dashboard tells the whole story and is maintained in one place.

Dashboard Segment gives every widget on a Matomo dashboard a segment of its own and, if you like, a time range of its own, plus a default for the whole dashboard. To share dashboards, use the separate free plugin Dashboard Sharing, which carries each widget's choices along (section 6).

Step-by-step setup

How to install and activate Dashboard Segment is described in Installing plugins. As a free plugin, Dashboard Segment is also in the Matomo Marketplace: under Administration → Platform → Marketplace, search for "Dashboard Segment" and install it. There is no settings page: everything happens right on the dashboard. You need to be signed in to Matomo with at least view access to the website. The bundled Dashboard and SegmentEditor plugins must be active, which they are by default.

1. Create your segments

Dashboard Segment works with your saved Matomo segments. Create any missing segment once via the segment selector at the top of Matomo with Create new segment and save it. A segment set to "this website only" in the segment editor appears only for that website; one set to "all websites" appears everywhere.

2. Pick a segment for a single widget

Open your Dashboard. Every supported widget gets a segment icon in its header with the tooltip Segment for this widget. Clicking it opens the list:

  • Inherit dashboard default: the widget follows the dashboard default.
  • No segment (all data): the widget always shows all data, even if a default or a segment at the top of Matomo is selected.
  • your saved segments for the current website.

The widget reloads right away. A slim bar below its header shows the active segment, with an × to remove it.

3. Set the dashboard default

In the bar at the top, next to the date and Matomo's segment selector, the button Dashboard segment: shows the current value. Click it to open the same list. The segment you choose applies to the whole dashboard: while the dashboard is open, the plugin sets the default in Matomo's segment selector at the top. That way it also filters widgets that load their data in the browser, such as Visits in real-time, the visitor maps, sparklines and evolution graphs. When you leave the dashboard, your previous segment applies again. If you pick a different segment at the top by hand, your choice applies until you open the dashboard again. Subscribed, read-only dashboards do not show the button.

If the button shows Dashboard segment: No default (in the list No default (segment chosen at the top)), no default is set, and the widgets follow Matomo's segment selector at the top as usual. So the order is: the widget's own choice, then the dashboard default, then Matomo's segment selector.

4. Optional: a time range per widget

Next to the segment icon sits a calendar icon (Time range for this widget). Use it to fix a widget to Today, Yesterday, Last 7 days, Last 30 days, This week, This month or This year. Inherit dashboard range brings back the dashboard's period.

5. Work per website

The plugin stores segment and time range choices per website. When you switch websites, the same dashboard shows the choices you made for that website and offers only the segments available there.

6. Share a dashboard with Dashboard Sharing

Since version 0.7.0, sharing is no longer part of Dashboard Segment but of the separate free plugin Dashboard Sharing. Dashboard Segment works without it. With both installed, a shared dashboard carries each widget's segment and time range, so your colleagues see it filtered exactly like you do. If you later change a widget's segment or time range, they see it the next time they open the dashboard (from Dashboard Sharing 1.0.3 and Dashboard Segment 0.7.1). On a subscribed, read-only dashboard the picker buttons are hidden, while the bar with segment and time range stays visible. Sharing and subscribing are described in the Dashboard Sharing documentation.

If you shared dashboards with an older version, that data is kept. As long as it exists and Dashboard Sharing is not active, super users see a notice recommending Dashboard Sharing.

Practical examples

AI traffic dashboard. You create a segment for visits with an AI referrer and set it as the dashboard default. The widgets about your AI chatbot are set to No segment (all data), because that data has no AI referrer and would be empty in the segment. One dashboard shows both side by side.

Compare segments directly. You add a widget such as Channel Type twice and give one the segment "Smartphone" and the other "Desktop". Both versions sit next to each other, without switching the segment at the top.

Yesterday and the monthly view. The same widget shows Yesterday once and Last 30 days once, while the rest of the dashboard follows the selected period.

One dashboard for the whole team. You build a campaign dashboard with fixed segments per widget and share it with Dashboard Sharing. Your team sees the same segments and time ranges without setting them up.

Good to know

  • Stored data: the plugin keeps, in a table of its own, the chosen segment and time range per user, dashboard, website and widget, plus the dashboard default. When a user is deleted, their entries are removed. When you delete a dashboard with Matomo's Remove dashboard, its segment and time range choices are removed as well (from version 0.7.1). Shares and subscriptions belong to Dashboard Sharing.
  • Personal choices: your choices apply only to your login. Others only see them if you share the dashboard with Dashboard Sharing.
  • The × on the bar: removing the segment there makes the widget show all data, even if a dashboard default is set. To return to the default, pick Inherit dashboard default.
  • Segments changed later: the plugin keeps the segment's conditions as they were when you picked it. If you change the conditions later in the segment editor, the widget keeps using the old ones and the bar shows Custom segment. Pick the segment again in that case.
  • Widgets that load in the browser: Visits in real-time, the visitor maps, sparklines and evolution graphs, and combined widgets such as Visits Overview (with graph) or Goals Overview load their data themselves in the browser. A per-widget exception is not possible for them, so they show no picker of their own. They still take over the dashboard default, because it applies as the segment at the top of Matomo.
  • Not signed in: for visitors of a public dashboard who are not signed in, the plugin applies no choices.
  • Existing dashboards: as long as you pick nothing, every dashboard behaves as before.

Technical reference

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

FAQ

Does it change my existing dashboards?

No. Until you pick a segment for a widget or set a dashboard default, everything behaves exactly like stock Matomo.

Which segments can I use?

Any saved Matomo segment that is available to you for the current website. The picker sits right in the widget header.

Are my choices persistent?

Yes. Segment and time range choices are stored per dashboard and website and applied every time the widgets load.

Can I still share dashboards?

Yes. Dashboard sharing is now the separate free plugin Dashboard Sharing. Install it to share dashboards with your team. With Dashboard Segment installed too, a shared dashboard also carries each widget's segment and time range.