summaryrefslogtreecommitdiffstats
path: root/blog/_includes/matomo.html
diff options
context:
space:
mode:
Diffstat (limited to 'blog/_includes/matomo.html')
-rw-r--r--blog/_includes/matomo.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/blog/_includes/matomo.html b/blog/_includes/matomo.html
new file mode 100644
index 0000000..bf8cab8
--- /dev/null
+++ b/blog/_includes/matomo.html
@@ -0,0 +1,15 @@
+<!-- Matomo -->
+<script type="text/javascript">
+ var _paq = _paq || [];
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="{{ site.matomo_instance_url }}";
+ _paq.push(['setTrackerUrl', u+'piwik.php']);
+ _paq.push(['setSiteId', '{{ site.matomo_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>
+<!-- End Matomo Code -->