Skip to content

Commit

Permalink
Merge pull request #129 from carbonplan/Shane98c/rm-ga
Browse files Browse the repository at this point in the history
remove google analytics
  • Loading branch information
Shane98c authored Feb 11, 2025
2 parents 26470e1 + ff3430b commit 773dbd4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion demo/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const App = ({ Component, pageProps }) => {
<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'
Expand Down
5 changes: 1 addition & 4 deletions demo/pages/_document.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import Document, { Html, Main, NextScript, Head } from 'next/document'
import { Tracking } from '@carbonplan/components'
import { InitializeColorMode } from 'theme-ui'

class MyDocument extends Document {
render() {
return (
<Html lang='en' className='no-focus-outline'>
<Head>
<Tracking />
</Head>
<Head />
<body>
<InitializeColorMode />
<Main />
Expand Down
1 change: 0 additions & 1 deletion docs/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const App = ({ Component, pageProps }) => {
<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'
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/_document.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import Document, { Html, Main, NextScript, Head } from 'next/document'
import { Tracking } from '@carbonplan/components'
import { InitializeColorMode } from 'theme-ui'

class MyDocument extends Document {
render() {
return (
<Html lang='en' className='no-focus-outline'>
<Head>
<Tracking id={process.env.GA_TRACKING_ID} />
</Head>
<Head />
<body>
<InitializeColorMode />
<Main />
Expand Down

0 comments on commit 773dbd4

Please sign in to comment.