This is a unofficial, basic WordPress plugin for the Matomo web analytics software platform.
It adds the Matomo javascript code into every page of your website, so
you don’t have to code PHP to add it to your templates.
It is based quite heavily on the (no more supported) Piwik Analytics WordPress plugin which
itself is based on the (no more available) Google Analytics wordpress plugin by Joost de Valk.
The following options are supported:
- matomo hostname
- matomo path
- site ID
- option to control download tracking
- option to exclude the admin user (probably you)
Please note, this plugin requires a running Matomo installation somewhere under
your control. It does not include Matomo itself.
See also the Matomo Website.
Links
Simple Matomo Tracking Code in the WordPress Plugin Directory.
Simple Matomo Tracking Code development on GitHub.
Hello,
I have installed your Matomo code plugin in the latest version of WordPress. I gave the website ID, statistics address and path as (/) – without parentheses of course. I also tried not to enter anything in the place of the path.
The plug-in is active, but nothing is displayed in the HTML.
I can only see „“ but nothing else.
A plug would be very helpful, but won’t work. Have you tested it in the latest WP version?
Would you have any advice?
Cheers, Piotr
Hi Piotr
Have you seen the FAQ on the Plugin Page of Simple Matomo Tracking Code on wordpress.org?
There are two possible solutions for your problem:
Does one of these answers solve your problem?
Vielen Dank für das coole Plugin. Es ist schnell und unkompliziert und funktioniert. Genau das was ich gesucht habe.
Great, a simple plugin, with optimal code, excellent for performance.
Multisite is not supported.
Thanks for your Feedback!
Hi,
I want to add WP_user in Matomo like this
var _paq = window._paq = window._paq || [];
_paq.push([’setUserId‘, ‚USER_ID_HERE‘]);
Can you tell me what i have to put in ‚USER_ID_HERE‘
With Regards
Hi Alex
The Plugin Simple Matomo Tracking Code doesn’t support the tracking of the user id.
If you are for a Solution to track the user id on a wordpress site, the article „Set up User ID tracking in Matomo“ on the matomo website could be helpful for you: https://matomo.org/faq/reports/set-up-user-id-tracking-in-matomo/
Kind Regards
Roland