Skip to content

Commit 2281197

Browse files
Added script tag for analytics
1 parent 9b78c78 commit 2281197

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/routes/__root.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ function RootDocument({ children }: Readonly<{ children: React.ReactNode }>) {
6464
<html>
6565
<head>
6666
<HeadContent />
67+
<script
68+
defer
69+
src={import.meta.env.VITE_ANALYTICS_SCRIPT}
70+
data-website-id={import.meta.env.VITE_ANALYTICS_WEBSITE_ID}
71+
></script>
6772
</head>
6873
<body>
6974
{children}

0 commit comments

Comments
 (0)