From 56ff30467206fc5d5fcdd2f032e9d8da852700e2 Mon Sep 17 00:00:00 2001 From: Nicolas Le Gall Date: Mon, 24 Jun 2019 21:51:12 +0200 Subject: [PATCH] Replace Piwik code with Matomo (#183) Piwik was renamed to Matomo --- README.md | 2 +- templates/base.html | 4 ++-- templates/partial/matomo.html | 15 +++++++++++++++ templates/partial/piwik.html | 15 --------------- 4 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 templates/partial/matomo.html delete mode 100644 templates/partial/piwik.html diff --git a/README.md b/README.md index 3397b7e..b5e5b5f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ The minimalist [Pelican](http://blog.getpelican.com/) theme. - [Google AdSense](https://www.google.com.br/adsense/start/) (new in 2.1.0) - [Google Analytics](https://www.google.com/analytics/web/) - [Google Tag Manager](https://www.google.com/tagmanager/) -- [Piwik Analytics](http://piwik.org/) +- [Matomo Analytics (formerly Piwik)](https://matomo.org/) - [StatusCake](https://www.statuscake.com/) ## Plugins Support diff --git a/templates/base.html b/templates/base.html index 38a0dc5..2425148 100644 --- a/templates/base.html +++ b/templates/base.html @@ -194,8 +194,8 @@ {% endif %} - {% if PIWIK_URL and PIWIK_SITE_ID %} - {% include "partial/piwik.html" %} + {% if (PIWIK_URL and PIWIK_SITE_ID) or (MATOMO_URL and MATOMO_SITE_ID) %} + {% include "partial/matomo.html" %} {% endif %} {% include "partial/jsonld.html" %} diff --git a/templates/partial/matomo.html b/templates/partial/matomo.html new file mode 100644 index 0000000..7fe966b --- /dev/null +++ b/templates/partial/matomo.html @@ -0,0 +1,15 @@ + + + + diff --git a/templates/partial/piwik.html b/templates/partial/piwik.html deleted file mode 100644 index ca4740f..0000000 --- a/templates/partial/piwik.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -