Add umami tracking

This commit is contained in:
Michael 2024-10-16 11:49:06 +00:00
parent 4a776d6a4b
commit 1c461ddc3c

View File

@ -58,6 +58,9 @@ const { title, description, image = "/nano.png", redirect } = Astro.props;
<meta property="twitter:description" content={description} /> <meta property="twitter:description" content={description} />
<meta property="twitter:image" content={new URL(image, Astro.url)} /> <meta property="twitter:image" content={new URL(image, Astro.url)} />
<!-- Tracking -->
<script defer src="https://cloud.umami.is/script.js" data-website-id="87c2b135-3ed8-4f05-a219-edcced32fafa"></script>
{redirect ? ( {redirect ? (
<meta <meta
http-equiv="refresh" http-equiv="refresh"