Matomo (formerly Piwik) is an open‑source analytics platform that provides detailed visitor statistics for your website. On ruachost.com, you can integrate Matomo with WordPress either by using a plugin or by editing your theme directly.
Why Use Matomo?
-
Full control over your analytics data (self‑hosted).
-
GDPR‑compliant and privacy‑focused.
-
Provides detailed visitor insights (traffic sources, search terms, conversions).
-
Alternative to Google Analytics with no data sharing.
Method 1: Use a WordPress Plugin (Recommended)
-
Install Matomo on your hosting account (via Softaculous or manual installation).
-
Log in to WordPress as administrator.
-
Go to Plugins → Add New.
-
Search for WP‑Matomo (WP‑Piwik).
-
Click Install Now, then Activate.
-
Go to Settings → WP‑Piwik.
-
Enter your Matomo URL (e.g.,
https://yourdomain.com/matomo). -
Enter your Auth Token (generated in Matomo under Administration → Personal → Security).
-
Save changes → WordPress will now connect to Matomo.
-
Enable tracking under Enable Tracking tab → Select Default tracking.
✅ You can now view visitor statistics directly in the WordPress dashboard.
Method 2: Edit the Theme Directly
-
Log in to your Matomo account.
-
Go to Administration → Websites → Tracking Code.
-
Copy the full JavaScript tracking code.
-
Log in to WordPress as administrator.
-
Go to Appearance → Theme Editor → footer.php.
-
Paste the tracking code just above the closing
</body>tag. -
Save changes.
✅ Matomo will now track all pages on your WordPress site.
Important Notes
-
Editing the theme directly may cause changes to be lost during theme updates. Use a child theme to avoid this.
-
Plugins are easier to manage and update, but may add slight overhead.
-
Always test tracking after setup to confirm data is being collected.