Skip to content

Commit

Permalink
added plausible analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
nairol203 committed Sep 18, 2024
1 parent a680e23 commit 87e49aa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@trpc/server": "^10.0.0-rc.8",
"next": "^14.1.1",
"next-auth": "^4.24.6",
"next-plausible": "^3.12.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"sharp": "^0.33.2",
Expand Down
3 changes: 3 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import { SessionProvider } from 'next-auth/react';
import { AppProps } from 'next/app';
import Head from 'next/head';
import '../styles/globals.css';
import PlausibleProvider from 'next-plausible';

function App({ Component, pageProps: { session, ...pageProps } }: AppProps) {
return (
<PlausibleProvider domain='spotify-stats.nairol.me' customDomain='https://analytics.home.nairol.me' selfHosted>
<SessionProvider session={session}>
<Head>
<link rel='icon' href='/logo.png' />
Expand Down Expand Up @@ -51,6 +53,7 @@ function App({ Component, pageProps: { session, ...pageProps } }: AppProps) {
<Footer />
</div>
</SessionProvider>
</PlausibleProvider>
);
}

Expand Down

0 comments on commit 87e49aa

Please sign in to comment.