Browse Source

Added Matomo tracking to head.html

Nathan Schneider 5 years ago
parent
commit
23d0d36c80
2 changed files with 20 additions and 0 deletions
  1. 17 0
      _includes/head.html
  2. 3 0
      about.md

+ 17 - 0
_includes/head.html

@@ -10,4 +10,21 @@
   <link rel="shortcut icon" type="image/png" href="{{ "/assets/favicon.png" | prepend: site.baseurl }}">
   <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
   <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
+
+<!-- Matomo -->
+<script type="text/javascript">
+  var _paq = window._paq || [];
+  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+  _paq.push(['trackPageView']);
+  _paq.push(['enableLinkTracking']);
+  (function() {
+    var u="https://analytics.medlab.host/";
+    _paq.push(['setTrackerUrl', u+'matomo.php']);
+    _paq.push(['setSiteId', '4']);
+    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+'matomo.js'; s.parentNode.insertBefore(g,s);
+  })();
+</script>
+<!-- End Matomo Code -->
+
 </head>

+ 3 - 0
about.md

@@ -43,11 +43,14 @@ Contribute via Issues and Merge Requests [on GitLab](https://gitlab.com/medlabbo
 
 ## Design goals
 
+* Javascript output button
 * Further modularity
+    - Aim for a logic of [progressive disclosure](https://en.wikipedia.org/wiki/Progressive_disclosure), making templates really simple but facilitating more complex iteration
     - In _modules, develop pseudocode primitives and complex modules with inputs, outputs, and actions
 * Compatibility with Loomio?
     - Translate each module into Loomio practices, implicitly or explicitly (e.g., time for a proposal, threshold, voting options)
 * Module system with database
     - JavaScript pulling from GDocs?
+    - Use Jekyll yaml data to create modules
     - Jekyll csv data pull? https://jekyllrb.com/docs/datafiles/
 -->