aboutsummaryrefslogtreecommitdiff
path: root/src/components/Analytics.astro
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-13 02:33:43 +0300
committerValentin Popov <valentin@popov.link>2024-09-13 02:33:43 +0300
commitb8fd1868010e74639a7755e9ec93061b712d55fb (patch)
tree8d0ab41748e280452d4a75ba8008d615db648989 /src/components/Analytics.astro
parent33c9464dad0979b05323e4d508875ad47e1c425f (diff)
downloadpopov.link-b8fd1868010e74639a7755e9ec93061b712d55fb.tar.xz
popov.link-b8fd1868010e74639a7755e9ec93061b712d55fb.zip
Refactor Analytics component to encode URI parameters
Diffstat (limited to 'src/components/Analytics.astro')
-rw-r--r--src/components/Analytics.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Analytics.astro b/src/components/Analytics.astro
index 977c610..428ad4f 100644
--- a/src/components/Analytics.astro
+++ b/src/components/Analytics.astro
@@ -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>