0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-04 16:40:26 +03:00

Refactor Analytics component to encode URI parameters

This commit is contained in:
2024-09-12 23:33:43 +00:00
parent 33c9464dad
commit b8fd186801
3 changed files with 5 additions and 4 deletions

View File

@ -13,5 +13,5 @@ const { title } = Astro.props;
<!-- GoatCounter -->
<script is:inline data-goatcounter="https://analytics.popov.link/count" src="//gc.zgo.at/count.js"></script>
<noscript>
<img alt="pixel" src={`https://analytics.popov.link/count?p=${path}&t=${title}`} />
<img alt="pixel" src={`https://analytics.popov.link/count?p=${encodeURI(path)}&t=${encodeURI(title)}`} />
</noscript>