Skip to content

Commit

Permalink
Merge pull request #315 from carbonplan/Shane98c/plausible
Browse files Browse the repository at this point in the history
add plausible
  • Loading branch information
Shane98c authored Feb 7, 2025
2 parents fa4a7b7 + 1be02c8 commit b262805
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pages/_app.page.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react'
import Script from 'next/script'
import { ThemeProvider } from 'theme-ui'
import '@carbonplan/components/fonts.css'
import '@carbonplan/components/globals.css'
Expand All @@ -8,6 +10,14 @@ import { ScrollProvider } from '../components/scroll'
const App = ({ Component, pageProps }) => {
return (
<ThemeProvider theme={theme}>
{process.env.NEXT_PUBLIC_VERCEL_ENV === 'production' && (
<Script
strategy='lazyOnload'
data-domain='carbonplan.org'
data-api='https://carbonplan.org/proxy/api/event'
src='https://carbonplan.org/js/script.file-downloads.outbound-links.js'
/>
)}
<ScrollProvider>
<Component {...pageProps} />
</ScrollProvider>
Expand Down

0 comments on commit b262805

Please sign in to comment.