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.
Permalink
Failed to load latest commit information.
LICENSE
PicoSimpleStats.php
README.md

README.md

PicoSimpleStats

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.

Installation

/!\ 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 https://github.com/bricebou/PicoSimpleStats.git

and jump to the Configuration section below.

Otherwise

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

Configuration

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
pstats:
  # 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 "//matomo.example.com" or "//example.com/matomo" 
  # check the js tracking code Matomoto produces
  matomo_url: "//matomo.example.com"
  # The Matomo ID of the website to track 
  matomo_id: 1