mirror of
https://github.com/maciejpedzich/maciejpedzi.ch.git
synced 2024-11-27 23:55:47 +01:00
Add Umami analytics
This commit is contained in:
parent
7a13c9e7da
commit
4025837678
@ -10,6 +10,10 @@ import NavLink from './NavLink.astro';
|
|||||||
<NavLink href="https://github.com/maciejpedzich">GitHub</NavLink>
|
<NavLink href="https://github.com/maciejpedzich">GitHub</NavLink>
|
||||||
<NavLink href="https://notacult.social/@macindahaus">Mastodon</NavLink>
|
<NavLink href="https://notacult.social/@macindahaus">Mastodon</NavLink>
|
||||||
<NavLink href="https://twitter.com/maciejpedzich">Twitter</NavLink>
|
<NavLink href="https://twitter.com/maciejpedzich">Twitter</NavLink>
|
||||||
|
<NavLink
|
||||||
|
href="https://analytics.maciejpedzi.ch/share/eodLjhuAE51MBSth/maciejpedzi.ch"
|
||||||
|
>Analytics</NavLink
|
||||||
|
>
|
||||||
</nav>
|
</nav>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
|
|||||||
const actualTitle = title === 'home' ? SITE_TITLE : `${title} | ${SITE_TITLE}`;
|
const actualTitle = title === 'home' ? SITE_TITLE : `${title} | ${SITE_TITLE}`;
|
||||||
---
|
---
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
@ -40,6 +40,15 @@ const actualTitle = title === 'home' ? SITE_TITLE : `${title} | ${SITE_TITLE}`;
|
|||||||
<meta property="twitter:title" content={actualTitle} />
|
<meta property="twitter:title" content={actualTitle} />
|
||||||
<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)} />
|
||||||
|
{
|
||||||
|
import.meta.env.PROD && (
|
||||||
|
<script
|
||||||
|
defer
|
||||||
|
src="https://analytics.maciejpedzi.ch/script.js"
|
||||||
|
data-website-id="2c62b92b-6fde-4ee5-97ab-9c97d7a5a1b4"
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<Header />
|
<Header />
|
||||||
|
Loading…
Reference in New Issue
Block a user