add titles to audio for matomo

This commit is contained in:
Set Hallstrom 2019-12-05 23:24:39 +01:00
parent 517ae8bc5f
commit 425837e921

View file

@ -35,7 +35,7 @@ layout: default
<img src="{{ page.image }}" alt="cover art for {{ page.title }}" width="100%" />
</div>
</div>
<audio preload="true" autoplay="true"
<audio data-matomo-title="{{ page.title }}" preload="true" autoplay="true"
ontimeupdate="document.getElementById('tracktime').innerHTML = Math.floor(this.currentTime) + ' / ' + Math.floor(this.duration) + ' Seconds';">
<source src="{{ page.mp3 }}" type="audio/mpeg" />
<source src="{{ page.ogg }}" type="audio/ogg" />