This Matomo plugin adds a future visits forecast based on the prophet time-series library. It predicts future visitor numbers for each of your sites and makes the results available as a dashboard widget, a dedicated report, and a public API method.

It supports two execution modes:

  • Local mode: Matomo calls a local Python script that runs Prophet.
  • Remote API mode: Matomo sends anonymised time-series data to a remote service that returns the forecast.

The resulting forecast is stored in a dedicated table and exposed via:

  • a Matomo widget (ForecastWidget)
  • a Matomo report (ForecastReport)
  • a public API method (Forecast.getForecastReport)

Please share