diff --git a/package.json b/package.json index bd28fcd..ed5ee25 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "framer-motion": "^11.0.3", "next": "^14.1.1", "next-auth": "^4.24.7", + "next-plausible": "^3.12.2", "react": "18.2.0", "react-dom": "18.2.0", "react-markdown": "^9.0.1", diff --git a/src/providers/index.tsx b/src/providers/index.tsx index 9d6fa17..51c02a1 100644 --- a/src/providers/index.tsx +++ b/src/providers/index.tsx @@ -8,6 +8,7 @@ import { TRPCProvider } from "./trpc_provider"; import { SessionProviderWrapper } from "./session_provider_wrapper"; import { IsNotFoundProvider } from "./is_not_found_provider"; import { AreSocialsOpenProvider } from "./are_socials_open_provider"; +import PlausibleProvider from "next-plausible"; export type ProvidersProps = { children: ReactNode; @@ -18,7 +19,15 @@ export const Providers: FC = ({ children }) => ( - {children} + + {children} + diff --git a/yarn.lock b/yarn.lock index 2cbf4b4..3ee1bd3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12547,6 +12547,7 @@ __metadata: jest-environment-jsdom: "npm:^29.7.0" next: "npm:^14.1.1" next-auth: "npm:^4.24.7" + next-plausible: "npm:^3.12.2" prisma: "npm:^5.6.0" react: "npm:18.2.0" react-dom: "npm:18.2.0" @@ -13708,6 +13709,17 @@ __metadata: languageName: node linkType: hard +"next-plausible@npm:^3.12.2": + version: 3.12.2 + resolution: "next-plausible@npm:3.12.2" + peerDependencies: + next: ^11.1.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: 10c0/eba52d73ddd849c79e26c63920e40a5267f00f4373d76c06b232aa40499c20c190982fd6aed0587e36b712d28bd4343698af3bd094dd0705580471023388c8ff + languageName: node + linkType: hard + "next@npm:^14.1.1": version: 14.2.5 resolution: "next@npm:14.2.5"