Replace Vercel analytics with plausible

This commit is contained in:
Calli
2024-05-27 16:05:58 +03:00
parent 9d07ea934c
commit d9562938be
4 changed files with 33 additions and 14 deletions

View File

@@ -1,5 +1,4 @@
import "./globals.css";
import { Analytics } from "@vercel/analytics/react";
import { Inter } from "next/font/google";
import React from 'react'
@@ -18,7 +17,7 @@ export default function RootLayout({
return (
<html lang="en">
<body className={inter.className}>
{children} <Analytics />
{children}
</body>
</html>
);

11
src/pages/_app.jsx Normal file
View File

@@ -0,0 +1,11 @@
// pages/_app.js
/* eslint-disable react/prop-types */
import PlausibleProvider from 'next-plausible'
export default function MyApp({ Component, pageProps }) {
return (
<PlausibleProvider domain="pi.avanto.tk">
<Component {...pageProps} />
</PlausibleProvider>
)
}