Replace Vercel analytics with plausible
This commit is contained in:
@@ -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
11
src/pages/_app.jsx
Normal 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>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user