Skip to content

Commit ea92a7f

Browse files
authored
feat: update analytics script (#248)
1 parent ec1dc3d commit ea92a7f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

app/layout.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,13 @@ export default async function RootLayout({
3737
children: React.ReactNode
3838
}>) {
3939
const isDev = process.env.NODE_ENV === "development"
40+
const isOfficialDeployment = process.env.ZOLA_OFFICIAL === "true"
4041
const userProfile = await getUserProfile()
4142

4243
return (
4344
<html lang="en" suppressHydrationWarning>
44-
{!isDev ? (
45-
<Script
46-
async
47-
src="https://analytics.umami.is/script.js"
48-
data-website-id="42e5b68c-5478-41a6-bc68-088d029cee52"
49-
/>
45+
{!isDev && isOfficialDeployment ? (
46+
<Script defer src="https://assets.onedollarstats.com/stonks.js" />
5047
) : null}
5148
<body
5249
className={`${geistSans.variable} ${geistMono.variable} antialiased`}

0 commit comments

Comments
 (0)