Browse Source

Uuh, JS Single-Line Kommentare und compress_html sind zusammen keine gute Idee.

master
Christian Aust 4 weeks ago
parent
commit
04a792f05e
  1. 1
      _config.yml
  2. 6
      _includes/tracking.html

1
_config.yml

@ -27,6 +27,7 @@ compress_html:
ignore:
envs:
- development
permalink: /:year/:title/
markdown: kramdown
highlighter: rouge

6
_includes/tracking.html

@ -1,10 +1,10 @@
{% if site.tracking.id %}
<script>
// Matomo
/* Matomo */
var _paq = window._paq = window._paq || [];
// tracker methods like "setCustomDimension" should be called before "trackPageView"
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['setDocumentTitle', "{{ page.title }}"]);
// accurately measure the time spent in the visit
/* accurately measure the time spent in the visit */
_paq.push(['enableHeartBeatTimer']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);

Loading…
Cancel
Save