Plugin „Simple Matomo Tracking Code“

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.

Simple Matomo Tracking Code in the WordPress Plugin Directory.
Simple Matomo Tracking Code development on GitHub.

7 Gedanken zu „Plugin „Simple Matomo Tracking Code“

  1. Piotr


    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

    1. Roland Bär Beitragsautor

      Hi Piotr
      Have you seen the FAQ on the Plugin Page of Simple Matomo Tracking Code on

      There are two possible solutions for your problem:

      Q: The Matomo Web Analytics javascript code does not show up.
      A1: Make sure your theme has a call to wp_footer() in the footer.php file
      A2: Make sure you’re not logged in as admin.

      Does one of these answers solve your problem?

  2. Alex

    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


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert