Add analytics links

This commit is contained in:
Maciej Pędzich 2024-07-26 11:44:40 +02:00
parent c7f9986723
commit 17e7a61068
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D
2 changed files with 23 additions and 3 deletions

View File

@ -8,9 +8,13 @@
href="https://netlify.com">Netlify</a href="https://netlify.com">Netlify</a
>. >.
</p> </p>
<p> <div id="ext-links">
<a href="https://github.com/maciejpedzich/catsof.tech">Source Code</a> <a href="https://github.com/maciejpedzich/cats-album">Source Code</a>
</p> <a
href="https://analytics.maciejpedzi.ch/share/M3WRVVjAydglPQW2/cats.maciejpedzi.ch"
>Analytics</a
>
</div>
</footer> </footer>
<style> <style>
@ -22,4 +26,11 @@
p { p {
margin: 1rem 0; margin: 1rem 0;
} }
#ext-links {
display: flex;
justify-content: center;
gap: 0 1rem;
padding-bottom: 1rem;
}
</style> </style>

View File

@ -44,6 +44,15 @@ const title = `${titleProp ? `${titleProp} - ` : ''}Cats Of Tech`;
</> </>
) )
} }
{
import.meta.env.PROD && (
<script
defer
src="https://analytics.maciejpedzi.ch/script.js"
data-website-id="eeb4c389-53f4-47bc-8525-08b4ba277fe2"
/>
)
}
</head> </head>
<body> <body>
<Header /> <Header />