Data & Analytics solution
Run Matomo Locally with FlyEnv
Matomo commonly uses PHP, a MySQL-compatible database, and a web server for local analytics development. FlyEnv manages those local services around the Matomo project.
Local project stack
Services FlyEnv can manage around Matomo
About Matomo
Matomo is a self-hosted web analytics platform focused on keeping analytics data under the operator’s control. It records visits through a tracking endpoint and turns stored events into reports for websites, campaigns, goals, e-commerce activity, and privacy-aware measurement.
Local Matomo development uses PHP, a MySQL-compatible database, and a web server, with the archive process running on a schedule for production-like reporting. A test site or tracking client is needed to generate events; Redis, a tag manager setup, or a proxy should be used only when the selected installation enables them.
Core capabilities
- JavaScript tracker
- Goals and conversions
- E-commerce analytics
- Custom reports
- Privacy controls
- Scheduled archiving
Common use cases
- Self-hosted website analytics
- Campaign attribution testing
- E-commerce conversion reporting
- Privacy-sensitive measurement deployments
Matomo needs both tracking traffic and report archiving
The analytics application and database are core, but reports are most representative when local visits and scheduled archive jobs are exercised.
- PHP web application
- Serves the Matomo UI and the tracking endpoint used by test websites.
- MySQL or MariaDB
- Stores configuration, visit logs, conversions, and processed report data.
- Archive cron job
- Runs `core:archive` on a schedule to build reports rather than relying only on browser-triggered archiving.
- Test tracker origin
- A local site or test client supplies realistic tracking requests and consent behavior.
Project resources
For installation commands, supported versions, and project-specific configuration, refer to the official Matomo documentation.
Typical local stack
The exact services depend on the project, its release, and its local configuration. This is a common local setup, not a fixed requirement.
How FlyEnv helps
Select the PHP runtime
Match the runtime to the Matomo release.
Run analytics storage locally
Manage MySQL or MariaDB beside the application.
Configure a local analytics URL
Use a local domain and HTTPS for browser-based testing.
Add optional services only when used
Keep Redis available for installations that configure it.
Set up the local environment
Project installation stays with the upstream documentation. FlyEnv manages the runtimes, databases, web servers, and supporting services around it.
- 1Use the Matomo documentation for installation and current requirements.
- 2Select the PHP version supported by the Matomo release.
- 3Start MySQL or MariaDB for the analytics database.
- 4Start Redis only when the selected installation uses it.
- 5Configure a local domain, web server, and HTTPS in FlyEnv.
- 6Keep the project services in a Startup Group when useful.
Related solutions
Ready to run Matomo locally?
Use FlyEnv to manage the runtimes, databases, web servers, and services around your local Matomo environment.