diff options
author | Valentin Popov <valentin@popov.link> | 2024-09-13 01:57:55 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-09-13 01:57:55 +0300 |
commit | 33c9464dad0979b05323e4d508875ad47e1c425f (patch) | |
tree | 2bc986dbbb0278250ec6c48c4a1dae43ea20bd08 /src/components/Analytics.astro | |
parent | b16d8ce36ce5c603a4444979c30998416c416929 (diff) | |
download | popov.link-33c9464dad0979b05323e4d508875ad47e1c425f.tar.xz popov.link-33c9464dad0979b05323e4d508875ad47e1c425f.zip |
Refactor Analytics and Head components
Diffstat (limited to 'src/components/Analytics.astro')
-rw-r--r-- | src/components/Analytics.astro | 16 |
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> |