Skip to content
Permalink
Browse files

Replace Piwik code with Matomo (#183)

Piwik was renamed to Matomo
  • Loading branch information...
Darkitty authored and alexandrevicenzi committed Jun 24, 2019
1 parent 63e3192 commit 56ff30467206fc5d5fcdd2f032e9d8da852700e2
Showing with 18 additions and 18 deletions.
  1. +1 −1 README.md
  2. +2 −2 templates/base.html
  3. +15 −0 templates/partial/matomo.html
  4. +0 −15 templates/partial/piwik.html
@@ -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
@@ -194,8 +194,8 @@ <h1><a href="{{ SITEURL }}">{{ SITETITLE }}</a></h1>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADD_THIS_ID }}" async="async"></script>
{% 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" %}
@@ -0,0 +1,15 @@
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://{{ MATOMO_URL or PIWIK_URL }}/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', {{ MATOMO_SITE_ID or PIWIK_SITE_ID }}]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="https://{{ MATOMO_URL or PIWIK_URL }}/matomo.php?idsite={{ MATOMO_SITE_ID or PIWIK_SITE_ID }}&rec=1" style="border:0" alt="" /></p></noscript>
<!-- End Matomo Code -->

This file was deleted.

0 comments on commit 56ff304

Please sign in to comment.
You can’t perform that action at this time.