安装Install Matomo - Self-Hosted Google Analytics Alternative - on Windows
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
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