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
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










