2020 update: There’s now a new Matomo Analytics WordPress plugin out called Matomo Analytics for WordPress. Plugin name: wp-matomo, not to be confused with the plugin mentioned below called WP-Matomo Integration (WP-Piwik). The difference between wp-matomo and WP-Matomo Integration (WP-Piwik) is that wp-matomo installs Matomo Analytics fully in your WordPress. Install now!
But if you are already using Matomo on our Cloud or On-Premise, we’d still highly recommend you use WP-Matomo Integration (WP-Piwik). So that you get an easier way of inserting the tracking code into your WordPress site and get insights faster.
WP-Matomo Integration (WP-Piwik)
WP-Matomo Integration (WP-Piwik) plugin uses the Matomo API to show your Matomo statistics in your WordPress.com or self-hosted WordPress dashboard. It’s also able to add the Matomo tracking code to your blog and to do some modifications to the tracking code. Additionally, WP-Matomo Integration (WP-Piwik) supports WordPress networks and manages multiple sites and their tracking codes. This plugin needs to be configured for it to work with Matomo.
Integrate Matomo Analytics to your WordPress website
To configure the plugin, follow these steps:
Log in to your WordPress site as the administrator
Click on “Plugins” from the left menu
Search for “WP-Matomo” and click on “Activate”
Click on “Connect to Matomo” tab, and in the “Matomo Mode” dropdown, choose the option “Self hosted (HTTP API, default)”. In the “Matomo URL” text field, enter your Matomo URL for example
If your Matomo is cloud hosted select Cloud-hosted (Innocraft Cloud, *.matomo.cloud) from the Matomo mode drop down, then enter your subdomain in the Matomo subdomain field. For example if your cloud domain is
mysite.matomo.cloud, just enter
mysitein this field.
In the “Auth token” text field, type your Matomo authentication token. How to find Auth Token
You should see “WP-Matomo is successfully connected to Matomo” message. If you do not see the message, make sure the values you provided in steps 5 to 7 are correct, and then try again
Click on “Enable Tracking” tab
Open your website in the browser and perform some actions (eg: navigate to different pages)
To view Matomo statistics for your site, in the left menu, click on Dashboard, then click WP-Piwik. The Matomo Statistics page appears with visitor statistics, site search statistics, and more. To view all the detailed reports please login to your Matomo instance
Congratulations, you should now be successfully tracking visitors with Matomo Analytics through your WordPress site! Happy Analytics.