parent
63e3192b27
commit
56ff304672
4 changed files with 18 additions and 18 deletions
|
@ -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 @@
|
|||
<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" %}
|
||||
|
|
15
templates/partial/matomo.html
Normal file
15
templates/partial/matomo.html
Normal file
|
@ -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 -->
|
|
@ -1,15 +0,0 @@
|
|||
<!-- Piwik -->
|
||||
<script type="text/javascript">
|
||||
var _paq = _paq || [];
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//{{ PIWIK_URL }}/";
|
||||
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||
_paq.push(['setSiteId', {{ 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+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
<noscript><p><img src="//{{ PIWIK_URL }}/piwik.php?idsite={{ PIWIK_SITE_ID }}" style="border:0" alt="" /></p></noscript>
|
||||
<!-- End Piwik Code -->
|
Loading…
Reference in a new issue