0325.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Matomo - Self-Hosted Google Analytics Alternative - on Windows</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Matomo - Self-Hosted Google Analytics Alternative - on Windows">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="12/23/2023 09:21:10 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install Matomo - Self-Hosted Google Analytics Alternative - on Windows</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Matomo?</h2>
  26. <p><em>Matomo is the ethical alternative where you won&#39;t make privacy sacrifices or compromise your site. Matomo&#39;s the Google Analytics alternative that protects your data and your customer&#39;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>
  27. <h2>Installation</h2>
  28. <ol>
  29. <li>Download XAMPP <a href="https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/" target="_blank">Download</a></li>
  30. <li>Download Matomo <a href="https://github.com/matomo-org/matomo/releases/latest" target="_blank">Download</a></li>
  31. <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>
  32. <li>Install Microsoft Visual C++</li>
  33. <li>Right click the downloaded XAMPP file &gt; Extract All...</li>
  34. <li>Right click the downloaded Matomo .zip file &gt; Extract All...</li>
  35. <li>Cut the matomo folder inside the XAMPP/htdocs directory</li>
  36. <li>Copy the extracted XAMPP directory to a safe location to run from, C:\Program Files for example</li>
  37. <li>Run XAMPP/setup_xampp.bat to update the configuration files with the new server location</li>
  38. <li>Run XAMPP/xampp-control.exe</li>
  39. <li>Click the Start button next to Apache and MySQL</li>
  40. <li>Navigate to XAMPP/mysql/bin</li>
  41. <li>Hold the SHIFT key and right click in the white space &gt; Open PowerShell windows here...</li>
  42. <li>Type the following in the PowerShell window to setup the database
  43. <div class="codeBlock">.\mysql -u root<br />
  44. CREATE DATABASE analytics DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;<br />
  45. CREATE USER &#39;analytics_rw&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;An@lyt1c$!&#39;;<br />
  46. GRANT ALL ON analytics.* TO &#39;analytics_rw&#39;@&#39;localhost&#39;;<br />
  47. FLUSH PRIVILEGES;<br />
  48. exit;</div>
  49. </li>
  50. <li>Open a web browser and navigate to http://DNSorIP/matomo</li>
  51. <li>Click the Next button on the Welcome screen</li>
  52. <li>Click the Next button on the System Check screen</li>
  53. <li>Fill in the database connection form as follows and click the Next button
  54. <p>Database Server: 127.0.0.1<br />
  55. Login: analytics_rw<br />
  56. Password: An@lyt1c$!<br />
  57. Database Name: analytics<br />
  58. Table Prefix:<br />
  59. Adapter: MySQLI</p>
  60. </li>
  61. <li>Click Next on the Creating the Tables page</li>
  62. <li>Enter a Superuser login, password and email &gt; Click Next</li>
  63. <li>Complete the form to setup the first site to start tracking analytics &gt; Click Next</li>
  64. <li>Click Next then Continue to Matomo</li>
  65. <li>Login with the Superuser username and password created earlier</li>
  66. <li>Welcome to Matomo</li>
  67. </ol>
  68. <h2>Installing Dark Theme (Optional)</h2>
  69. <ol>
  70. <li>Click the gear icon in the top right</li>
  71. <li>Select Platform &gt; Marketplace from the left navigation menu</li>
  72. <li>Change the Show dropdown to Themes and search for Dark Theme</li>
  73. <li>Find Dark Theme and click the Install button</li>
  74. <li>Type the admin password to confirm the installation</li>
  75. <li>Click the Activate Theme button</li>
  76. </ol>
  77. <p>Source: <a href="https://matomo.org/docs/installation/#getting-started" target="_blank">https://matomo.org/docs/installation/#getting-started</a></p> </div>
  78. </div>
  79. </body>
  80. </html>