Skip to content

Commit

Permalink
Use analytics when is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypalacios committed Mar 5, 2024
1 parent 432e58e commit b73259c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Document() {
<Main />
<NextScript />
</body>
<GoogleAnalytics gaId={ANALYTICS_ID} />
{ANALYTICS_ID && <GoogleAnalytics gaId={ANALYTICS_ID} />}
</Html>
)
}

0 comments on commit b73259c

Please sign in to comment.