Skip to content

Commit

Permalink
feat: add plausible analytics (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchedmob authored Sep 20, 2024
1 parent 3b5b471 commit e37fc90
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
14 changes: 14 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 @@ -17,6 +17,7 @@
"dependencies": {
"dayjs": "^1.11.13",
"next": "^14.2.13",
"next-plausible": "^3.12.2",
"octokit": "^4.0.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
Expand Down
2 changes: 2 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import '@/styles/globals.scss';
import type { AppProps } from 'next/app';
import Head from 'next/head';
import { Layout } from '@/components/Layout';
import PlausibleProvider from 'next-plausible';

export default function MyApp({ Component, pageProps }: AppProps) {
return (
Expand All @@ -15,6 +16,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {
<link rel="manifest" sizes="512x512" href="/images/favicons/android-chrome-512x512.png" />
<link rel="manifest" href="/site.webmanifest" />
<title>Open SGF</title>
<PlausibleProvider domain="opensgf.org" customDomain="https://plausible.sgf.dev" />
</Head>
<Component {...pageProps} />
</Layout>
Expand Down

0 comments on commit e37fc90

Please sign in to comment.