Sha256: 9992e854f080bff78cb4a17ae9029b53beeb734e451dcd56080e7021ed642d05

Contents?: true

Size: 831 Bytes

Versions: 2

Compression:

Stored size: 831 Bytes

Contents

{% if site.analytics.piwik.site_id %}
<!-- begin piwik analytics block --->
<div class="piwik">
  <script>
    var _paq = (window._paq = window._paq || []);
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    _paq.push(["trackPageView"]);
    _paq.push(["enableLinkTracking"]);
    (function () {
      var u = "{{ site.analytics.piwik.prefix }}://{{ site.analytics.piwik.url }}/";
      _paq.push(["setTrackerUrl", u + "matomo.php"]);
      _paq.push(["setSiteId", "{{ site.analytics.piwik.site_id }}"]);
      var d = document,
        g = d.createElement("script"),
        s = d.getElementsByTagName("script")[0];
      g.async = true;
      g.src = u + "matomo.js";
      s.parentNode.insertBefore(g, s);
    })();
  </script>
</div>
<!-- end piwik analytics block --->
{% endif %}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
casjaysdev-jekyll-theme-0.2.6 _includes/analytics/matomo.html
casjaysdev-jekyll-theme-0.2.5 _includes/analytics/matomo.html