Skip to content

Commit

Permalink
add plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane98c committed Feb 3, 2025
1 parent c52e8ef commit 922769b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
21 changes: 21 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 @@ -37,6 +37,7 @@
"d3-shape": "^3.0.1",
"lru-cache": "^6.0.0",
"next": "^14.2.22",
"next-plausible": "^3.12.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-google-recaptcha": "^2.1.0",
Expand Down
14 changes: 11 additions & 3 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
import React from 'react'
import PlausibleProvider from 'next-plausible'
import { ThemeProvider } from 'theme-ui'
import theme from '@carbonplan/theme'
import '@carbonplan/components/globals.css'
import '@carbonplan/components/fonts.css'

export default function App({ Component, pageProps }) {
return (
<ThemeProvider theme={theme}>
<Component {...pageProps} />
</ThemeProvider>
<PlausibleProvider
domain='carbonplan.org'
trackOutboundLinks={true}
trackFileDownloads={true}
>
<ThemeProvider theme={theme}>
<Component {...pageProps} />
</ThemeProvider>
</PlausibleProvider>
)
}

0 comments on commit 922769b

Please sign in to comment.