What is Matomo?
Matomo is the ethical alternative where you won't make privacy sacrifices or compromise your site. Matomo's the Google Analytics alternative that protects your data and your customer's privacy. A powerful web analytics platform with 100% data ownership. - https://matomo.org
Installation
- Download XAMPP Download
- Download Matomo Download
- Install Microsoft Visual C++
- Right click the downloaded XAMPP file > Extract All...
- Right click the downloaded Matomo .zip file > Extract All...
- Cut the matomo folder inside the XAMPP/htdocs directory
- Copy the extracted XAMPP directory to a safe location to run from, C:\Program Files for example
- Run XAMPP/setup_xampp.bat to update the configuration files with the new server location
- Run XAMPP/xampp-control.exe
- Click the Start button next to Apache and MySQL
- Navigate to XAMPP/mysql/bin
- Hold the SHIFT key and right click in the white space > Open PowerShell windows here...
- Type the following in the PowerShell window to setup the database
.\mysql -u root
CREATE DATABASE analytics DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'analytics_rw'@'localhost' IDENTIFIED BY 'An@lyt1c$!';
GRANT ALL ON analytics.* TO 'analytics_rw'@'localhost';
FLUSH PRIVILEGES;
exit; - Open a web browser and navigate to http://DNSorIP/matomo
- Click the Next button on the Welcome screen
- Click the Next button on the System Check screen
- Fill in the database connection form as follows and click the Next button
Database Server: 127.0.0.1
Login: analytics_rw
Password: An@lyt1c$!
Database Name: analytics
Table Prefix:
Adapter: MySQLI - Click Next on the Creating the Tables page
- Enter a Superuser login, password and email > Click Next
- Complete the form to setup the first site to start tracking analytics > Click Next
- Click Next then Continue to Matomo
- Login with the Superuser username and password created earlier
- Welcome to Matomo
Installing Dark Theme (Optional)
- Click the gear icon in the top right
- Select Platform > Marketplace from the left navigation menu
- Change the Show dropdown to Themes and search for Dark Theme
- Find Dark Theme and click the Install button
- Type the admin password to confirm the installation
- Click the Activate Theme button
Source: https://matomo.org/docs/installation/#getting-started