How to Replace Google Analytics with Matomo @TonyTeachesTech
How to Replace Google Analytics with Matomo  @TonyTeachesTech
Uploaded July 2026 | Updated November 2026, 36 minutes ago
Learn how to self-host Matomo Analytics and replace Google Analytics with a privacy-focused analytics platform that you control. Whether you’re a blogger, business owner, developer, or self-hosting enthusiast who wants website analytics without sending visitor data to Google, this step-by-step Matomo tutorial will walk you through the full setup.
In this guide, we deploy Matomo on Cloudways using a Custom PHP application, connect the project to GitHub for Git-based deployments, point a custom analytics subdomain to the server, install a free SSL certificate, run the Matomo web installer, add the tracking code to a real website, verify real-time visitor tracking, and configure background archiving with a cron job so Matomo reports process properly.

Cloudways sponsored this video. I earn commissions when you use the links below at no additional cost to you.
πŸ”— 30% off 3 Months with Cloudways: https://ttt.do/CloudwaysMatomo
πŸ”— Full written guide on my website: https://ttt.do/bye-ga4

What You’ll Learn
βœ… How to self-host Matomo Analytics
βœ… How to deploy a PHP app via Git on Cloudways
βœ… How to add the Matomo tracking code to your website
βœ… How to set up Matomo background archiving with cron

⏱️ Chapters
00:00 Introduction
00:47 Download Matomo
01:26 Create a Local Git Repository
02:14 Create a GitHub Repository
02:39 Push Matomo to GitHub
03:14 Create a Custom PHP App on Cloudways
04:08 Deploy Matomo from GitHub to Cloudways
05:36 Point Your Analytics Subdomain to Cloudways
06:32 Install SSL Certificate
07:18 Run the Matomo Web Installer
09:14 Add the Matomo Tracking Code to Your Website
10:40 Verify Real-Time Visitor Tracking
11:14 Set Up Background Archiving with Cron
13:50 Enable Server Backups
14:05 Next Steps
How to Replace Google Analytics with MatomoHow to Make a Free Website (with Site123)How to Set Up Novashare Social Sharing Buttons for Your WordPress SiteHow to Setup Your Own iRedMail Email ServerHow to VNC on Mac (with the native Screen Sharing app)Best Web Hosting in 2025How to Host a FREE Website with Google FirebaseWindows VPS for Beginners: Run a Windows Remote Desktop in the CloudHow to Set Up a Free, Self-Hosted Newsletter and Email List ManagerHow To Install WordPress on Rocky Linux (Apache LAMP server)Self-Host the Right Way (Docker + Cloudflare Tunnels)How to Use the Django Admin Site (create super user and login)
Tony Teaches Tech |

How to Replace Google Analytics with Matomo

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER