Compare commits

3 Commits

Author SHA1 Message Date
8c2fbeae31 How do you forget the script?
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
2026-02-17 13:38:01 -03:00
89052635d5 Pixel URI fix
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
2026-02-17 12:50:44 -03:00
e52a210840 Refine tracking
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
2026-02-17 12:37:36 -03:00
8 changed files with 47 additions and 21 deletions

View File

@@ -9,13 +9,5 @@
</head> </head>
<body data-sveltekit-preload-data="hover"> <body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div> <div style="display: contents">%sveltekit.body%</div>
<img
src="https://analytics.mifi.holdings/pixel.gif"
alt=""
width="1"
height="1"
role="presentation"
loading="eager"
/>
</body> </body>
</html> </html>

View File

@@ -34,7 +34,8 @@
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
aria-describedby={link.description ? descriptionId : undefined} aria-describedby={link.description ? descriptionId : undefined}
data-umami-event={`contact panel ${link.label} link`} data-umami-event="contact panel item"
data-umami-event-label={link.label}
> >
{#if link.icon} {#if link.icon}
<LinkIcon href={link.href} icon={link.icon} label={link.label} /> <LinkIcon href={link.href} icon={link.icon} label={link.label} />

View File

@@ -35,7 +35,8 @@
contactOpen = true; contactOpen = true;
shareOpen = false; shareOpen = false;
}} }}
data-umami-event="header contact button" data-umami-event="header button"
data-umami-event-label="contact"
> >
<IconContact size={20} /> <IconContact size={20} />
</button> </button>
@@ -48,7 +49,8 @@
shareOpen = true; shareOpen = true;
contactOpen = false; contactOpen = false;
}} }}
data-umami-event="header share button" data-umami-event="header button"
data-umami-event-label="share"
> >
<IconShare size={20} /> <IconShare size={20} />
</button> </button>
@@ -100,7 +102,8 @@
contactOpen = true; contactOpen = true;
shareOpen = false; shareOpen = false;
}} }}
data-umami-event="hero contact button" data-umami-event="hero card button"
data-umami-event-label="contact"
> >
<IconContact size={20} /> <IconContact size={20} />
<span>Contact</span> <span>Contact</span>
@@ -114,7 +117,8 @@
shareOpen = true; shareOpen = true;
contactOpen = false; contactOpen = false;
}} }}
data-umami-event="hero share button" data-umami-event="hero card button"
data-umami-event-label="share"
> >
<IconShare size={20} /> <IconShare size={20} />
<span>Share</span> <span>Share</span>

View File

@@ -5,7 +5,14 @@
let { href, icon, label, description }: ProcessedLink = $props(); let { href, icon, label, description }: ProcessedLink = $props();
</script> </script>
<a {href} rel="noopener noreferrer" target="_blank" class="link" data-umami-event={`${label} link`}> <a
{href}
rel="noopener noreferrer"
target="_blank"
class="link"
data-umami-event={`link click`}
data-umami-event-label={label}
>
<span class="icon" aria-hidden="true"> <span class="icon" aria-hidden="true">
<LinkIcon {href} {icon} {label} /> <LinkIcon {href} {icon} {label} />
</span> </span>

View File

@@ -64,6 +64,8 @@
aria-label="Close" aria-label="Close"
bind:this={closeBtnEl} bind:this={closeBtnEl}
onclick={onclose} onclick={onclose}
data-umami-event="panel button"
data-umami-event-label="close"
> >
<span aria-hidden="true">×</span> <span aria-hidden="true">×</span>
</button> </button>

View File

@@ -61,7 +61,8 @@
type="button" type="button"
class="panel-btn" class="panel-btn"
onclick={copyLink} onclick={copyLink}
data-umami-event="share panel copy" data-umami-event="share panel item"
data-umami-event-label="copy"
> >
<IconCopy size={20} /> <IconCopy size={20} />
{copied ? 'Copied!' : 'Copy link'} {copied ? 'Copied!' : 'Copy link'}
@@ -72,7 +73,8 @@
onclick={onclose} onclick={onclose}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
data-umami-event="share panel email link" data-umami-event="share panel item"
data-umami-event-label="email"
> >
<IconEmail size={20} /> <IconEmail size={20} />
Email link Email link
@@ -82,7 +84,8 @@
type="button" type="button"
class="panel-btn" class="panel-btn"
onclick={share} onclick={share}
data-umami-event="share panel device share" data-umami-event="share panel item"
data-umami-event-label="device share"
> >
<IconShare size={20} /> <IconShare size={20} />
Share… Share…

View File

@@ -45,7 +45,8 @@
aria-label="Close theme menu" aria-label="Close theme menu"
tabindex="-1" tabindex="-1"
onclick={() => (expanded = false)} onclick={() => (expanded = false)}
data-umami-event="theme toggle close" data-umami-event="theme toggle button"
data-umami-event-label="close"
></button> ></button>
{/if} {/if}
@@ -65,7 +66,8 @@
aria-current={current === 'light' ? 'true' : undefined} aria-current={current === 'light' ? 'true' : undefined}
title="Light" title="Light"
onclick={() => handleClick('light')} onclick={() => handleClick('light')}
data-umami-event="theme toggle light" data-umami-event="theme toggle button"
data-umami-event-label="light"
> >
<Sun size={24} /> <Sun size={24} />
</button> </button>
@@ -77,7 +79,8 @@
aria-current={current === 'dark' ? 'true' : undefined} aria-current={current === 'dark' ? 'true' : undefined}
title="Dark" title="Dark"
onclick={() => handleClick('dark')} onclick={() => handleClick('dark')}
data-umami-event="theme toggle dark" data-umami-event="theme toggle button"
data-umami-event-label="dark"
> >
<Moon size={24} /> <Moon size={24} />
</button> </button>
@@ -89,7 +92,8 @@
aria-current={current === 'auto' ? 'true' : undefined} aria-current={current === 'auto' ? 'true' : undefined}
title="Auto (system)" title="Auto (system)"
onclick={() => handleClick('auto')} onclick={() => handleClick('auto')}
data-umami-event="theme toggle auto" data-umami-event="theme toggle button"
data-umami-event-label="auto"
> >
<SunMoon size={24} /> <SunMoon size={24} />
</button> </button>

View File

@@ -40,6 +40,11 @@
<!-- Google tag (gtag.js): ID passed via data-ga-id for CSP (no inline script) --> <!-- Google tag (gtag.js): ID passed via data-ga-id for CSP (no inline script) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={data.gaMeasurementId}"></script> <script async src="https://www.googletagmanager.com/gtag/js?id={data.gaMeasurementId}"></script>
<script defer src="/assets/js/ga-init.js" data-ga-id={data.gaMeasurementId}></script> <script defer src="/assets/js/ga-init.js" data-ga-id={data.gaMeasurementId}></script>
<script
defer
src="https://analytics.mifi.holdings/script.js"
data-website-id={data.umamiMeasurementId}
></script>
<link rel="stylesheet" href="/assets/tokens-{data.variant}.css" /> <link rel="stylesheet" href="/assets/tokens-{data.variant}.css" />
@@ -94,3 +99,11 @@
</header> </header>
{@render children()} {@render children()}
<Footer /> <Footer />
<img
src="https://analytics.mifi.holdings/p/wQ9GYnLIg"
alt=""
width="1"
height="1"
role="presentation"
loading="eager"
/>