mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 16:32:40 +00:00
Added support for PIWIK
This commit is contained in:
parent
3135426618
commit
6750ce96d0
@ -1,3 +1,18 @@
|
|||||||
|
{% if PIWIK_URL and PIWIK_SITE_ID %}
|
||||||
|
<!-- Piwik -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
var _paq = _paq || [];
|
||||||
|
(function(){ var u=(("https:" == document.location.protocol) ? "https://{{ PIWIK_URL }}/" : "http://{{ PIWIK_URL }}/");
|
||||||
|
_paq.push(['setSiteId', {{ PIWIK_SITE_ID }}]);
|
||||||
|
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
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); })();
|
||||||
|
</script>
|
||||||
|
<!-- End Piwik Code -->
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if GOOGLE_ANALYTICS %}
|
{% if GOOGLE_ANALYTICS %}
|
||||||
<script>
|
<script>
|
||||||
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
|
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
|
||||||
|
Loading…
Reference in New Issue
Block a user