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 {Roboto} from 'next/font/google';
import React, {useEffect, useState} from "react"; import React, {useEffect, useState} from "react";
import ClientCookieConsentBanner from "./components/ClientCookieConsentBanner"; //import ClientCookieConsentBanner from "./components/ClientCookieConsentBanner";
const roboto = Roboto({ const roboto = Roboto({
@@ -35,11 +35,9 @@ export default function RootLayout({
return ( return (
<html lang="en"> <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}> <body className={roboto.variable}>
<ClientCookieConsentBanner onConsentChange={handleConsentChange}/>
{children} {children}
{consent === "accepted" && <SpeedInsights/>}
{consent === "accepted" && <Analytics/>}
</body> </body>
</html> </html>
); );

View File

@@ -1,6 +1,6 @@
'use client'; 'use client';
import React, {useEffect, useState} from "react"; import React, { useEffect, useState } from "react";
import Header from "../components/Header"; import Header from "../components/Header";
import Footer_Back from "../components/Footer_Back"; import Footer_Back from "../components/Footer_Back";
@@ -15,7 +15,7 @@ export default function PrivacyPolicy() {
return ( return (
<div className={`min-h-screen flex flex-col bg-radiant-animated ${isVisible ? 'animate-fly-in' : 'opacity-0'}`}> <div className={`min-h-screen flex flex-col bg-radiant-animated ${isVisible ? 'animate-fly-in' : 'opacity-0'}`}>
<Header/> <Header />
<div className="h-10"></div> <div className="h-10"></div>
<main className="flex-grow p-10"> <main className="flex-grow p-10">
<h1 className="text-3xl font-bold">Privacy Policy</h1> <h1 className="text-3xl font-bold">Privacy Policy</h1>
@@ -25,35 +25,34 @@ export default function PrivacyPolicy() {
</p> </p>
<h2 className="text-2xl font-semibold mt-6">Information We Collect</h2> <h2 className="text-2xl font-semibold mt-6">Information We Collect</h2>
<p className="mt-2"> <p className="mt-2">
I use Vercel&#39;s Speed Insights and Web Analytics to collect information about the usage of my I use Umami Web Analytics to collect anonymized data about the usage of my website. This includes
website. information such as page views, time spent on pages, and general interaction metrics. No personally
This includes data such as page views, time spent on pages, interaction metrics, and performance identifiable information is stored or processed.
insights.
</p> </p>
<h2 className="text-2xl font-semibold mt-6">How I Use Your Information</h2> <h2 className="text-2xl font-semibold mt-6">How I Use Your Information</h2>
<p className="mt-2"> <p className="mt-2">
The information collected is used to improve the performance, usability, and user experience of my The collected data is used solely to improve the performance, usability, and user experience of my
website. website. Since all data is anonymized, it cannot be linked back to any individual.
I analyze this data to optimize content, and enhance site performance.
</p> </p>
<h2 className="text-2xl font-semibold mt-6">Third-Party Services</h2> <h2 className="text-2xl font-semibold mt-6">Third-Party Services</h2>
<p className="mt-2"> <p className="mt-2">
Vercel may process collected data in accordance with their own privacy policies. Please review Umami is a privacy-focused analytics tool that does not use cookies or track users across different
<a href="https://vercel.com/legal/privacy-policy" className="text-blue-500 underline"> Vercel&#39;s sites. More information can be found on the official Umami website.
Privacy Policy</a> for more details.
</p> </p>
<h2 className="text-2xl font-semibold mt-6">Data Protection</h2> <h2 className="text-2xl font-semibold mt-6">Contact Form</h2>
<p className="mt-2"> <p className="mt-2">
I take data security seriously. The information collected through Vercel&#39;s Speed Insights and If you use the contact form on my website, the submitted information will be sent to me via email.
Web This data is not stored or shared with third parties and is used solely to respond to your inquiry.
Analytics </p>
is securely stored and only accessible to me. <h2 className="text-2xl font-semibold mt-6">Social Media Links</h2>
<p className="mt-2">
My website contains links to GitHub and LinkedIn. Clicking on these links may result in data
collection by the respective platforms, subject to their own privacy policies.
</p> </p>
<h2 className="text-2xl font-semibold mt-6">Your Rights</h2> <h2 className="text-2xl font-semibold mt-6">Your Rights</h2>
<p className="mt-2"> <p className="mt-2">
You have the right to request information about your data, ask for corrections, or request its Since the collected data is fully anonymized, individual deletion requests are not applicable.
deletion. However, if you have any concerns, you can contact me.
If you wish to exercise these rights, please contact me.
</p> </p>
<h2 className="text-2xl font-semibold mt-6">Contact Us</h2> <h2 className="text-2xl font-semibold mt-6">Contact Us</h2>
<p className="mt-2"> <p className="mt-2">
@@ -61,7 +60,7 @@ export default function PrivacyPolicy() {
contact form. contact form.
</p> </p>
</main> </main>
<Footer_Back/> <Footer_Back />
</div> </div>
); );
} }