mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Replaced references to Piwik with Matomo
This commit is contained in:
parent
29b93366cf
commit
d64b877614
2 changed files with 13 additions and 13 deletions
|
|
@ -1165,18 +1165,18 @@ free to use them in your themes as well.
|
|||
A list of tuples (Title, URL) for additional menu items to appear at the
|
||||
beginning of the main menu.
|
||||
|
||||
.. data:: PIWIK_URL
|
||||
.. data:: MATOMO_URL
|
||||
|
||||
URL to your Piwik server - without 'http://' at the beginning.
|
||||
URL to your Matomo server - without 'http://' at the beginning.
|
||||
|
||||
.. data:: PIWIK_SSL_URL
|
||||
.. data:: MATOMO_SSL_URL
|
||||
|
||||
If the SSL-URL differs from the normal Piwik-URL you have to include this
|
||||
If the SSL-URL differs from the normal Matomo-URL you have to include this
|
||||
setting too. (optional)
|
||||
|
||||
.. data:: PIWIK_SITE_ID
|
||||
.. data:: MATOMO_SITE_ID
|
||||
|
||||
ID for the monitored website. You can find the ID in the Piwik admin
|
||||
ID for the monitored website. You can find the ID in the Matomo admin
|
||||
interface > Settings > Websites.
|
||||
|
||||
.. data:: LINKS
|
||||
|
|
|
|||
|
|
@ -24,22 +24,22 @@
|
|||
})();
|
||||
</script>
|
||||
{% endif %}
|
||||
{% if PIWIK_URL and PIWIK_SITE_ID %}
|
||||
{% if MATOMO_URL and MATOMO_SITE_ID %}
|
||||
<script type="text/javascript">
|
||||
{% if PIWIK_SSL_URL %}
|
||||
var pkBaseURL = "{{ PIWIK_SSL_URL }}";
|
||||
{% if MATOMO_SSL_URL %}
|
||||
var pkBaseURL = "{{ MATOMO_SSL_URL }}";
|
||||
{% else %}
|
||||
var pkBaseURL = "{{ PIWIK_URL }}";
|
||||
var pkBaseURL = "{{ MATOMO_URL }}";
|
||||
{% endif %}
|
||||
var _paq = _paq || [];
|
||||
_paq.push(["trackPageView"]);
|
||||
_paq.push(["enableLinkTracking"]);
|
||||
(function() {
|
||||
var u=(("https:" == document.location.protocol) ? "https" : "http")+"://"+pkBaseURL+"/";
|
||||
_paq.push(["setTrackerUrl", u+"piwik.php"]);
|
||||
_paq.push(["setSiteId", "{{ PIWIK_SITE_ID }}"]);
|
||||
_paq.push(["setTrackerUrl", u+"matomo.php"]);
|
||||
_paq.push(["setSiteId", "{{ MATOMO_SITE_ID }}"]);
|
||||
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
|
||||
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
|
||||
g.defer=true; g.async=true; g.src=u+"matomo.js"; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue