Skip to content

Commit fe9be9d

Browse files
committed
Switch from GA to Piwik
1 parent 886a665 commit fe9be9d

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

_includes/analytics.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{% if site.analytics == true %}
2+
<!-- Piwik -->
3+
<script type="text/javascript">
4+
var _paq = _paq || [];
5+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
6+
_paq.push(['trackPageView']);
7+
_paq.push(['enableLinkTracking']);
8+
(function() {
9+
var u="//piwik.inria.fr/";
10+
_paq.push(['setTrackerUrl', u+'piwik.php']);
11+
_paq.push(['setSiteId', '65']);
12+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
13+
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
14+
})();
15+
</script>
16+
<!-- End Piwik Code -->
17+
{% endif %}

_includes/ga.html

-12
This file was deleted.

_layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
hljs.initHighlightingOnLoad();
2828
</script>
2929

30-
{% include ga.html %}
30+
{% include analytics.html %}
3131
</body>
3232
</html>

_layouts/naked.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
{{ content }}
1515
</div>
1616

17-
{% include ga.html %}
17+
{% include analytics.html %}
1818
</body>
1919
</html>

0 commit comments

Comments
 (0)