Update README, keep old value, rename html partial page

This commit is contained in:
Nicolas Le Gall 2019-06-24 12:58:29 +02:00
parent 18b68e5d6c
commit 7263c049f1
No known key found for this signature in database
GPG key ID: C9EE76EC01471F55
3 changed files with 7 additions and 7 deletions

View file

@ -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/)
- [Matomo Analytics](https://matomo.org/)
- [Matomo Analytics (formerly Piwik)](https://matomo.org/)
- [StatusCake](https://www.statuscake.com/)
## Plugins Support

View file

@ -194,8 +194,8 @@
<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" %}

View file

@ -4,12 +4,12 @@
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://{{ MATOMO_URL }}/";
var u="https://{{ MATOMO_URL or PIWIK_URL }}/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', {{ MATOMO_SITE_ID }}]);
_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 }}/matomo.php?idsite={{ MATOMO_SITE_ID }}&rec=1" style="border:0" alt="" /></p></noscript>
<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 -->