Skip to content

Commit

Permalink
fix: analyzsis script
Browse files Browse the repository at this point in the history
  • Loading branch information
nnecec committed Aug 28, 2023
1 parent b634796 commit 99f8341
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<link href="/favicon/site.webmanifest" rel="manifest" />
<meta title={SITE_CONFIG.title} />
<meta content={SITE_CONFIG.description} name="description" />
{isProd && !!DATAPULSE_ID ? (
{!!DATAPULSE_ID && (
<script
className={`${isProd}`}
data-endpoint="https://datapulse.app/api/v1/event"
data-workspace={DATAPULSE_ID}
defer
id="datapulse"
src="https://datapulse.app/datapulse.min.js"
type="text/javascript"
/>
) : null}
)}
</head>

<body>
<Providers>{children}</Providers>

{isProd && !!GOOGLE_ID ? (
{!!GOOGLE_ID && (
<>
<script async src={`https://www.googletagmanager.com/gtag/js?id=${GOOGLE_ID}`} />
<script
Expand All @@ -61,7 +62,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
id="gtag-init"
/>
</>
) : null}
)}
</body>
</html>
)
Expand Down

1 comment on commit 99f8341

@vercel
Copy link

@vercel vercel bot commented on 99f8341 Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

nnecec.vercel.app
blog-nnecec.vercel.app
blog-git-main-nnecec.vercel.app

Please sign in to comment.