Commit 69beb24e authored by Raphaël Bastide's avatar Raphaël Bastide

Tracking hashchange

parent 2f8aec10
......@@ -34,7 +34,7 @@
<summary>Help</summary>
<p>To make a track for the ball, add some characters after a “#” in this url, just like that: <a href="#dff">#dff</a>.</p><p>Available characters are listed in the inventory.</p>
<p>Some characters need to be unlocked by making the ball touch bonuses.</p>
<p class="credits">Burl is an experiment by <a target="_blank" href="https://raphaelbastide.com/">Raphaël Bastide</a>.<br><a target="_blank" href="https://gitlab.com/raphaelbastide/burl">Sources on Gitlab</a> <br>Dedicated <a target="_blank" href="http://reddit.com/r/burl">subReddit</a><br><a href="https://niu.moe/@burl">Burl on Mastodon</a></p>
<p class="credits">Burl is an experiment by <a target="_blank" href="https://raphaelbastide.com/">Raphaël Bastide</a>.<br><a target="_blank" href="https://gitlab.com/raphaelbastide/burl">Sources on Gitlab</a> <br>Post your track on <a target="_blank" href="http://reddit.com/r/burl">Reddit</a><br><a href="https://niu.moe/@burl">Burl on Mastodon</a></p>
</details>
</div>
</aside>
......@@ -63,6 +63,11 @@
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);
})();
window.addEventListener('hashchange', function() {
_paq.push(['setCustomUrl', '/' + window.location.hash.substr(1)]);
_paq.push(['setDocumentTitle', 'My New Title']);
_paq.push(['trackPageView']);
});
</script>
<!-- End Matomo Code -->
</body>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment