add analytics
This commit is contained in:
parent
ea8b02fc3b
commit
f1d3b5e162
3 changed files with 10 additions and 2 deletions
4
src/components/Analytics.astro
Normal file
4
src/components/Analytics.astro
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
const production = import.meta.env.PRODUCTION;
|
||||
---
|
||||
{production && <script is:inline defer data-domain="quickshell.outfoxxed.me" src="https://plausible.outfoxxed.me/js/script.js"></script>}
|
|
@ -2,6 +2,7 @@
|
|||
import "@styles/global.css";
|
||||
import "@fontsource-variable/rubik";
|
||||
import "@fontsource-variable/rubik/wght-italic.css";
|
||||
import Analytics from "@components/Analytics.astro";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
|
@ -36,3 +37,5 @@ const { title, description } = Astro.props;
|
|||
<meta name="twitter:title" content={title} />
|
||||
<meta name="twitter:description" content={description} />
|
||||
<!-- <meta name="twitter:image" content={image} /> -->
|
||||
|
||||
<Analytics/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue