chore: add tracking link for umami

This commit is contained in:
Stefan Imhoff
2024-04-11 11:51:12 +02:00
parent df649c4998
commit 45c771a7d8
6 changed files with 10 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import { Rss } from './icons';
<Rss class="icon inline h-icon w-icon" />{' '}
<Link
class="font-light decoration-4 underline-offset-auto hover:underline hover:decoration-shibui-900/20 focus:underline focus:decoration-shibui-900/20 dark:hover:decoration-shibui-100/20 dark:focus:decoration-shibui-100/20"
data-umami-event="RSS"
href="/rss.xml"
target="_blank"
>

View File

@@ -13,6 +13,7 @@ import { Link } from '.';
>
<button
class="flex h-clickarea w-clickarea cursor-pointer items-center justify-center border-none text-[0]"
data-umami-event="Search"
tabindex={-1}
type="button"
>

View File

@@ -27,6 +27,7 @@ export const SocialLinks: FunctionalComponent = () => (
<Link
aria-label={item.text}
class="flex h-clickarea w-clickarea cursor-pointer items-center justify-center"
data-umami-event={item.text}
href={item.url}
key={index}
title={item.text}

View File

@@ -3,11 +3,12 @@ import { Circle } from './icons';
---
<theme-toggle
class="col-span-2 col-start-17 flex h-clickarea w-clickarea items-center justify-center self-center justify-self-center print:hidden md:col-span-1 md:col-start-18"
class="col-span-2 col-start-17 flex h-clickarea w-clickarea items-center justify-center self-center justify-self-center md:col-span-1 md:col-start-18 print:hidden"
>
<button
aria-label="Switch color theme"
class="group flex h-clickarea w-clickarea cursor-pointer items-center justify-center self-center border-0 text-[0]"
data-umami-event="Switch color theme"
>
<Circle
class="icon h-icon w-icon transition-transform duration-500 ease-in-out group-hover:scale-125 group-focus:scale-125"

View File

@@ -155,6 +155,10 @@ const webManifest = isProduction && {
</script>
<ThemeProvider />
<script
defer
src="https://umami.kogakure.cloud/script.js"
data-website-id="ca67348d-b662-4205-a2c1-f1d8e4c68adb"></script>
<Scripts />
</head>
<body

View File

@@ -38,4 +38,4 @@ If you find a link on my website that links to websites that violate applicable
### Data Protection
I protect your personal data by not collecting any and strictly following data protection laws.
This website uses Umami, an open-source, privacy-focused analytics platform, to collect anonymized data about visitors interactions with the site. No personally identifiable information is tracked or stored. This data is only used to understand and improve the website experience, and is never sold or shared with third parties.