Title: Simple Matomo Tracking Code
Author: rbaer
Published: <strong>December 23, 2020</strong>
Last modified: August 27, 2025

---

Search plugins

![](https://ps.w.org/simple-matomo-tracking-code/assets/icon.svg?rev=2445616)

# Simple Matomo Tracking Code

 By [rbaer](https://profiles.wordpress.org/rbaer/)

[Download](https://downloads.wordpress.org/plugin/simple-matomo-tracking-code.1.1.1.zip)

[Live Preview](https://pcd.wordpress.org/plugins/simple-matomo-tracking-code/?preview=1)

 * [Details](https://pcd.wordpress.org/plugins/simple-matomo-tracking-code/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/simple-matomo-tracking-code/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/simple-matomo-tracking-code/#installation)
 * [Development](https://pcd.wordpress.org/plugins/simple-matomo-tracking-code/#developers)

 [Support](https://wordpress.org/support/plugin/simple-matomo-tracking-code/)

## Description

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 self-contained Matomo installation somewhere
under your control. It does not include Matomo itself.

See also [The Matomo Website](https://matomo.org/).

## Installation

 1. Install and activate the plugin as you normally would.
     (You can find more details
    and instructions [here](https://wordpress.org/support/article/managing-plugins/).)
 2. Visit the “Simple Matomo Tracking Code” page in the “Settings” section and adjust
    the parameters.
     Don’t forget to click “Update Settings” when you’re done.

## FAQ

### The Matomo Web Analytics javascript code does not show up.

 1. Make sure your theme has a call to wp_footer() in the footer.php file
 2. Make sure you’re not logged in as admin.

### How can I report security bugs?

You can report security bugs through the Patchstack Vulnerability Disclosure
 Program.
The Patchstack team help validate, triage and handle any security vulnerabilities.
[Report a security vulnerability.](https://patchstack.com/database/vdp/simple-matomo-tracking-code)

Or you send them directly to [info@rolandbaer.ch](https://pcd.wordpress.org/plugins/simple-matomo-tracking-code/info@rolandbaer.ch?output_format=md).

## Reviews

![](https://secure.gravatar.com/avatar/34ea5eaca7ba54c3e0c1c6d9be60e24ef5ccfb82f89f4dc4c360a074d95a6a3d?
s=60&d=retro&r=g)

### 󠀁[Super effective](https://wordpress.org/support/topic/super-effective-10/)󠁿

 [polev](https://profiles.wordpress.org/polev/) October 14, 2023

I like this, minimal code: pure and effective.Does not support multisite.

![](https://secure.gravatar.com/avatar/ccc9bae1ff393ff8707146e9e80a12d6d00df4dfb63f6e655a5b2675d3bb9f91?
s=60&d=retro&r=g)

### 󠀁[Simple and effective](https://wordpress.org/support/topic/simple-and-effective-1399/)󠁿

 [ernexto](https://profiles.wordpress.org/ernexto/) May 16, 2022

Does what it says. Nice and easy!

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/simple-matomo-tracking-code/reviews/)

## Contributors & Developers

“Simple Matomo Tracking Code” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ rbaer ](https://profiles.wordpress.org/rbaer/)

“Simple Matomo Tracking Code” has been translated into 5 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/simple-matomo-tracking-code/contributors)
for their contributions.

[Translate “Simple Matomo Tracking Code” into your language.](https://translate.wordpress.org/projects/wp-plugins/simple-matomo-tracking-code)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/simple-matomo-tracking-code/),
check out the [SVN repository](https://plugins.svn.wordpress.org/simple-matomo-tracking-code/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/simple-matomo-tracking-code/)
by [RSS](https://plugins.trac.wordpress.org/log/simple-matomo-tracking-code/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.1

 * fixed XSS vulnerability

#### 1.1.0

 * uninstall updated for multisite compatibility

#### 1.0.3

 * Bugfix for reset, fixes from static code analysis, requires now PHP 7.1 or higher

#### 1.0.2

 * changed texts

#### 1.0.1

 * code cleanup: moved duplicated code in function

#### 1.0.0

 * prepared for translations

#### 0.5.2

 * fix for wrong appended path (to many slashes)

#### 0.5.1

 * input validation

#### 0.5.0

 * new javascript code from matomo
 * remove configuration during uninstall
 * fixed warnings

#### 0.1.0

 * created plugin based on piwik-analytics

## Meta

 *  Version **1.1.1**
 *  Last updated **7 months ago**
 *  Active installations **900+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.1 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/simple-matomo-tracking-code/), [German](https://de.wordpress.org/plugins/simple-matomo-tracking-code/),
   [German (Austria)](https://de-at.wordpress.org/plugins/simple-matomo-tracking-code/),
   [German (Switzerland)](https://de-ch.wordpress.org/plugins/simple-matomo-tracking-code/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/simple-matomo-tracking-code/),
   and [Spanish (Venezuela)](https://ve.wordpress.org/plugins/simple-matomo-tracking-code/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/simple-matomo-tracking-code)
 * Tags
 * [analytics](https://pcd.wordpress.org/plugins/tags/analytics/)[matomo](https://pcd.wordpress.org/plugins/tags/matomo/)
   [piwik](https://pcd.wordpress.org/plugins/tags/piwik/)[statistics](https://pcd.wordpress.org/plugins/tags/statistics/)
   [stats](https://pcd.wordpress.org/plugins/tags/stats/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/simple-matomo-tracking-code/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/simple-matomo-tracking-code/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/simple-matomo-tracking-code/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/simple-matomo-tracking-code/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/simple-matomo-tracking-code/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/simple-matomo-tracking-code/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/simple-matomo-tracking-code/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/simple-matomo-tracking-code/reviews/)

## Contributors

 *   [ rbaer ](https://profiles.wordpress.org/rbaer/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/simple-matomo-tracking-code/)