Skip to content

Commit

Permalink
Add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
lcfd committed Oct 5, 2023
1 parent 257cb49 commit 03c8e10
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion website/src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@ import BaseHead from "../components/BaseHead.astro";

<html
lang="en"
class="scroll-smooth selection:bg-accent-500 selection:text-white no-touchevents hydrated">
class="scroll-smooth selection:bg-accent-500 selection:text-white no-touchevents hydrated"
>
<head>
<BaseHead />
</head>

<body class="bg-white">
<slot />
{
import.meta.env.PROD ? (
<script
async
src="https://analytics.lcfd.me/script.js"
data-website-id="ca521a51-6855-44d2-a690-c7c9d3fe8934"
/>
) : null
}
</body>
</html>

0 comments on commit 03c8e10

Please sign in to comment.