New Matomo plugin: Enhanced Attribution shows where goals are reached
Enhanced Attribution, Carnaby’s first open-source plugin for Matomo, is free and now available in the Matomo Marketplace.
The plugin shows the page on which a goal was reached and where the converting visitor came from.
What Matomo’s goal reports don’t show
Matomo is good at counting conversions per goal. But if you want to see which page the conversion happened on, together with the channel, the campaign and the type of visitor behind it, things quickly get complicated.
You end up clicking between several reports, or writing your own database queries.
What Enhanced Attribution shows for each conversion
For each conversion, Enhanced Attribution fetches the address of the page where the goal was reached and adds:
- Traffic source: channel, source, medium and campaign
- The visitor: number of visits and whether it is a new or returning visitor
- Location: country, region and city
- Technology: operating system, browser, device type and screen resolution
Together, these fields show which parts of the site convert best, and which combinations of content and traffic source bring the most valuable visitors. Do your articles convert better for visitors from search than from social media, for example? The answer appears in a single table.
How to get the results as a report or through Matomo’s API
The results are available as a report in Matomo for anyone who wants a quick overview.
For your own analysis, in a spreadsheet, Looker Studio or a script of your own, you fetch the data through Matomo’s API with the method EnhancedAttribution.getGoalUrlsDetailed. It takes the same parameters as Matomo’s own reports: website, period, date and segment. A request for one day can look like this:
?module=API&method=EnhancedAttribution.getGoalUrlsDetailed&idSite=1&period=day&date=2025-06-24&format=json
The response is a list with one row per conversion.
How to install Enhanced Attribution in Matomo
The plugin works with Matomo 4 and 5. Install it directly from the Matomo Marketplace in the administration area, or copy the files to plugins/EnhancedAttribution/ and activate it with ./console plugin:activate EnhancedAttribution.
The campaign fields rely on Matomo’s free MarketingCampaignsReporting plugin, so install that too if you don’t already have it.
Enhanced Attribution is open source under GPL v3. The source code and issue tracker are on GitHub, where we welcome questions, bug reports and suggestions. There is more about the plugin on our plugin page.