|
@@ -0,0 +1,87 @@
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
+ <head>
|
|
|
+ <title>Install Matomo - Self-Hosted Google Analytics Alternative - on Windows</title>
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Alternative To Google Analytics,Analytics,FOSS,Google Analytics,Google Analytics Alternative,Homelab,MariaDB,Matomo,MySQL,Self-hosted Web Analytics,Windows,Microsoft Windows,XAMPP,PHP,How To,Tutorial,i12bretro">
|
|
|
+ <meta name="author" content="i12bretro">
|
|
|
+ <meta name="description" content="Install Matomo - Self-Hosted Google Analytics Alternative - on Windows">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <meta name="revised" content="12/23/2023 09:21:10 AM" />
|
|
|
+ <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
|
|
|
+ <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
|
|
|
+ <script type="text/javascript" src="includes/js/steps.js"></script>
|
|
|
+ <link href="css/steps.css" rel="stylesheet" type="text/css" />
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div id="gridContainer">
|
|
|
+ <div class="topMargin"></div>
|
|
|
+ <div id="listName" class="topMargin">
|
|
|
+ <h1>Install Matomo - Self-Hosted Google Analytics Alternative - on Windows</h1>
|
|
|
+ </div>
|
|
|
+ <div></div>
|
|
|
+ <div id="content">
|
|
|
+ <h2>What is Matomo?</h2>
|
|
|
+
|
|
|
+<p><em>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.</em> - <a href="https://matomo.org/" rel="noopener" target="_blank">https://matomo.org</a></p>
|
|
|
+
|
|
|
+<h2>Installation</h2>
|
|
|
+
|
|
|
+<ol>
|
|
|
+ <li>Download XAMPP <a href="https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/" target="_blank">Download</a></li>
|
|
|
+ <li>Download Matomo <a href="https://github.com/matomo-org/matomo/releases/latest" target="_blank">Download</a></li>
|
|
|
+ <li><label for="cb_li_917989_0">Download Microsoft Visual C++ </label><label for="cb_li_917989_0"><a href="https://aka.ms/vs/16/release/vc_redist.x64.exe" target="_blank">Download</a></label></li>
|
|
|
+ <li>Install Microsoft Visual C++</li>
|
|
|
+ <li>Right click the downloaded XAMPP file > Extract All...</li>
|
|
|
+ <li>Right click the downloaded Matomo .zip file > Extract All...</li>
|
|
|
+ <li>Cut the matomo folder inside the XAMPP/htdocs directory</li>
|
|
|
+ <li>Copy the extracted XAMPP directory to a safe location to run from, C:\Program Files for example</li>
|
|
|
+ <li>Run XAMPP/setup_xampp.bat to update the configuration files with the new server location</li>
|
|
|
+ <li>Run XAMPP/xampp-control.exe</li>
|
|
|
+ <li>Click the Start button next to Apache and MySQL</li>
|
|
|
+ <li>Navigate to XAMPP/mysql/bin</li>
|
|
|
+ <li>Hold the SHIFT key and right click in the white space > Open PowerShell windows here...</li>
|
|
|
+ <li>Type the following in the PowerShell window to setup the database
|
|
|
+ <div class="codeBlock">.\mysql -u root<br />
|
|
|
+ CREATE DATABASE analytics DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;<br />
|
|
|
+ CREATE USER 'analytics_rw'@'localhost' IDENTIFIED BY 'An@lyt1c$!';<br />
|
|
|
+ GRANT ALL ON analytics.* TO 'analytics_rw'@'localhost';<br />
|
|
|
+ FLUSH PRIVILEGES;<br />
|
|
|
+ exit;</div>
|
|
|
+ </li>
|
|
|
+ <li>Open a web browser and navigate to http://DNSorIP/matomo</li>
|
|
|
+ <li>Click the Next button on the Welcome screen</li>
|
|
|
+ <li>Click the Next button on the System Check screen</li>
|
|
|
+ <li>Fill in the database connection form as follows and click the Next button
|
|
|
+ <p>Database Server: 127.0.0.1<br />
|
|
|
+ Login: analytics_rw<br />
|
|
|
+ Password: An@lyt1c$!<br />
|
|
|
+ Database Name: analytics<br />
|
|
|
+ Table Prefix:<br />
|
|
|
+ Adapter: MySQLI</p>
|
|
|
+ </li>
|
|
|
+ <li>Click Next on the Creating the Tables page</li>
|
|
|
+ <li>Enter a Superuser login, password and email > Click Next</li>
|
|
|
+ <li>Complete the form to setup the first site to start tracking analytics > Click Next</li>
|
|
|
+ <li>Click Next then Continue to Matomo</li>
|
|
|
+ <li>Login with the Superuser username and password created earlier</li>
|
|
|
+ <li>Welcome to Matomo</li>
|
|
|
+</ol>
|
|
|
+
|
|
|
+<h2>Installing Dark Theme (Optional)</h2>
|
|
|
+
|
|
|
+<ol>
|
|
|
+ <li>Click the gear icon in the top right</li>
|
|
|
+ <li>Select Platform > Marketplace from the left navigation menu</li>
|
|
|
+ <li>Change the Show dropdown to Themes and search for Dark Theme</li>
|
|
|
+ <li>Find Dark Theme and click the Install button</li>
|
|
|
+ <li>Type the admin password to confirm the installation</li>
|
|
|
+ <li>Click the Activate Theme button</li>
|
|
|
+</ol>
|
|
|
+
|
|
|
+<p>Source: <a href="https://matomo.org/docs/installation/#getting-started" target="_blank">https://matomo.org/docs/installation/#getting-started</a></p> </div>
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+ </html>
|
|
|
+
|