aboutsummaryrefslogtreecommitdiff
path: root/src/components/Analytics.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Analytics.astro')
-rw-r--r--src/components/Analytics.astro16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/components/Analytics.astro b/src/components/Analytics.astro
index 8c4303a..977c610 100644
--- a/src/components/Analytics.astro
+++ b/src/components/Analytics.astro
@@ -1,5 +1,17 @@
---
-const id = "T5X0z12SoASBV8Dv";
+type Props = {
+ readonly title: string;
+};
+
+const path = Astro.url.pathname;
+const { title } = Astro.props;
---
-<script is:inline src={`https://appmetrix.com/pixel/${id}`}></script>
+<!-- AppMetrix -->
+<script is:inline src="https://appmetrix.com/pixel/T5X0z12SoASBV8Dv"></script>
+
+<!-- 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}`} />
+</noscript>