Add Vercel analytics to website

This commit is contained in:
Advait Paliwal
2026-04-15 10:53:10 -07:00
parent 455de783dc
commit 8fc7c0488c
3 changed files with 46 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
---
import "@/styles/global.css"
import { ClientRouter } from "astro:transitions"
import Analytics from "@vercel/analytics/astro"
interface Props {
title?: string
@@ -26,6 +27,7 @@ const {
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet" />
<ClientRouter />
<Analytics />
<script is:inline>
;(function () {
const theme = localStorage.getItem("theme")