mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Handle hash-navigation with goatcounter
This commit is contained in:
parent
6986ef0485
commit
1ae4fe81f5
1 changed files with 12 additions and 0 deletions
12
index.html
12
index.html
|
|
@ -24,9 +24,21 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="./src/index.js"></script>
|
<script src="./src/index.js"></script>
|
||||||
|
|
||||||
|
<!-- <goatcounter> -->
|
||||||
|
<script>
|
||||||
|
window.goatcounter = { no_onload: true }
|
||||||
|
window.addEventListener('hashchange', _ => {
|
||||||
|
window.goatcounter.count({
|
||||||
|
path: location.pathname + location.hash
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
<script
|
<script
|
||||||
data-goatcounter="https://odd-ifplayer.goatcounter.com/count"
|
data-goatcounter="https://odd-ifplayer.goatcounter.com/count"
|
||||||
async src="//gc.zgo.at/count.js"></script>
|
async src="//gc.zgo.at/count.js"></script>
|
||||||
|
<!-- </goatcounter> -->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue