Skip to content

Commit

Permalink
Change condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianMachado committed Sep 24, 2024
1 parent 3dc1496 commit 0463605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ export default function Document() {
// eslint-disable-next-line @next/next/no-sync-scripts
<script src={process.env.NEXT_PUBLIC_ANALYTICS_URL}></script>
) : null}
{process.env.NEXT_PUBLIC_VERCEL_ENV === "production" ? (
{process.env.NEXT_PUBLIC_ANALYTICS_URL ? (
<Script
async
src="https://www.googletagmanager.com/gtag/js?id=AW-11213523037"
/>
) : null}
{process.env.NEXT_PUBLIC_VERCEL_ENV === "production" ? (
{process.env.NEXT_PUBLIC_ANALYTICS_URL ? (
<Script
id="google-analytics"
dangerouslySetInnerHTML={{
Expand Down

0 comments on commit 0463605

Please sign in to comment.