Skip to content

Commit

Permalink
feat(website): add plausible integration (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khenziii authored Oct 28, 2024
1 parent bdbbbd6 commit 2971af6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 10 additions & 1 deletion src/providers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -18,7 +19,15 @@ export const Providers: FC<ProvidersProps> = ({ children }) => (
<SessionProviderWrapper>
<IsNotFoundProvider>
<AreSocialsOpenProvider>
{children}
<PlausibleProvider
domain={"khenzii.dev"}
customDomain={"https://plausible.khenzii.dev"}
selfHosted
trackOutboundLinks
trackFileDownloads
>
{children}
</PlausibleProvider>
</AreSocialsOpenProvider>
</IsNotFoundProvider>
</SessionProviderWrapper>
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 2971af6

Please sign in to comment.