Adds Google Analytics and/or Matomo (Piwik) tracking codes to Pico CMS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This plugin, for Pico CMS 2.0, automatically adds javascript tracking code for Google Analytics and/or Matomo (ex-Piwik) to all your website's pages.

It depends on the PicoCookieBAR plugin.


/!\ No matter the way you install the plugin, it's mandatory you name the plugin folder PicoSimpleStats.

Using GIT

Just move to your Pico CMS plugins directory and run:

git clone

and jump to the Configuration section below.


Download the latest zip archive from Github and unzip it inside the plugins/PicoSimpleStats/.


Version 2 of Pico CMS introduces YAML configuration files.
Parameters for the PicoSimpleStats plugin can be inserted into the config/config.yml file or put in a specific .yml file inside the config folder.

PicoSimpleStats.enabled: true
  # Enable Google Analytics
  ga_enable: true
  # Google Analytics tracking ID
  ga_trackid: 'UA-XXXXXXXX-X'
  # Enable Matomo (Piwik)
  matomo_enable: true
  # Matomo URL without 'http' or 'https'
  # for example "//" or "//" 
  # check the js tracking code Matomoto produces
  matomo_url: "//"
  # The Matomo ID of the website to track 
  matomo_id: 1