Fetching stats for Group of sites

Hi All,

For example I have 5 sites under a group Group1. Is there a way to fetch - through API - the stats (e.g. visits) collectively for all these 5 site under Group1?

Thanks,
Imran

Not yet possible, this is a feature request: Aggregate data for multiple (groups) of websites · Issue #2541 · matomo-org/matomo · GitHub

Thanks matt.

Is there any other way around to get the stats (unique visitors) collectively for a particular category of pages?

This use case is usually implemented with custom variables see Custom Variables Analytics - Analytics Platform - Matomo

Jullien, thanks for your reply.

Per my understanding custom variables are related to a specific site. Please correct me if I am wrong.

What I have did to achieve this:

  1. Assign a group to every site: piwik_site.group
  2. Deployed a Sinatra application on PIWIK server which queries the piwik tables directly to fetch the unique visitors against a particular group

My mistake, In 301 Moved Permanently I thought you wanted to track groups of pages within one website.

We’ve just released a new plugin which could really helpful to you: Roll-Up Reporting aggregates data from multiple websites, mobile apps and shops into a Roll-Up site to gain new insights and save time.

Roll-Up ReportingRoll-Up Reporting lets you aggregate data from multiple websites and apps into one single site. It lets you answer questions like “How many visits happened on all of my websites and apps?” and “Which campaigns contributed the most across several of my websites?” or “How do my various Brands overall compare with each other?” When you have several shops (eg white-labels) it is very valuable to see how your ecommerce shops are performing overall. Or when you are a web agency and you are serving many customers and want to provide each customer with a single aggregate view of all their web properties. Roll-Up Reporting lets you analyze this aggregated data in one site so easily. It saves you lots of time and helps you gain the insights you need instantly.

The Roll-Up Reporting User Guide and the
Roll-Up Reporting FAQ cover how to get the most out of this plugin.

For any other question feel free to contact us.