Browse code

Replace google analytics by piwik

Cinan Rakosnik authored on 25/12/2013 at 16:17:18
Showing 4 changed files
1 1
deleted file mode 100644
... ...
@@ -1,15 +0,0 @@
1
-{% if site.google_analytics_tracking_id %}
2
-<script type="text/javascript">
3
-
4
-  var _gaq = _gaq || [];
5
-  _gaq.push(['_setAccount', '{{ site.google_analytics_tracking_id }}']);
6
-  _gaq.push(['_trackPageview']);
7
-
8
-  (function() {
9
-    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
10
-    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
11
-    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
12
-  })();
13
-
14
-</script>
15
-{% endif %}
... ...
@@ -25,7 +25,7 @@
25 25
   <link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml">
26 26
   <link rel="search" type="application/opensearchdescription+xml" title="Cinan's world" href="http://blog.cinan.sk/opensearch.xml">
27 27
   {% include custom/head.html %}
28
-  {% include google_analytics.html %}
28
+  {% include custom/piwik.html %}
29 29
 
30 30
   <meta property="og:site_name" content="{{ site.title }}">
31 31
   <meta property="og:type" content="article">
... ...
@@ -100,3 +100,7 @@ google_analytics_tracking_id: UA-38565127-1
100 100
 facebook_like: false
101 101
 
102 102
 gravatar_email: 
103
+
104
+# Piwik
105
+piwik_host_name: blog.cinan.sk # piwik server hostname
106
+piwik_site_id: 1 # site id
... ...
@@ -25,7 +25,7 @@
25 25
   <link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml">
26 26
   <link rel="search" type="application/opensearchdescription+xml" title="Cinan's world" href="http://blog.cinan.sk/opensearch.xml">
27 27
   {% include custom/head.html %}
28
-  {% include google_analytics.html %}
28
+  {% include custom/piwik.html %}
29 29
 
30 30
   <meta property="og:site_name" content="{{ site.title }}">
31 31
   <meta property="og:type" content="article">