removed vercel analytics, added umami (#6)

This commit is contained in:
Denshooter
2025-02-10 23:32:39 +01:00
committed by GitHub
parent 16b62a08ee
commit a5233d09a4
2 changed files with 22 additions and 25 deletions

View File

@@ -8,7 +8,7 @@ import "./globals.css";
import {Roboto} from 'next/font/google';
import React, {useEffect, useState} from "react";
import ClientCookieConsentBanner from "./components/ClientCookieConsentBanner";
//import ClientCookieConsentBanner from "./components/ClientCookieConsentBanner";
const roboto = Roboto({
@@ -35,11 +35,9 @@ export default function RootLayout({
return (
<html lang="en">
<script defer src="http://umami.denshooter.de:3010/script.js" data-website-id="1f213877-deef-4238-8df1-71a5a3bcd142"></script>
<body className={roboto.variable}>
<ClientCookieConsentBanner onConsentChange={handleConsentChange}/>
{children}
{consent === "accepted" && <SpeedInsights/>}
{consent === "accepted" && <Analytics/>}
</body>
</html>
);