Skip to content

Commit

Permalink
add in unami
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevcody committed Oct 22, 2024
1 parent b6100ec commit 5134059
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,21 @@ export default function RootLayout({
}>) {
return (
<ConvexAuthNextjsServerProvider>
{/* `suppressHydrationWarning` only affects the html tag,
and is needed by `ThemeProvider` which sets the theme
class attribute on it */}
<script
dangerouslySetInnerHTML={{
__html: `
(function(s,r,t){
s._umamiQueue=s._umamiQueue||[];
s._umamiConfig=s._umamiConfig||{};
s._umamiConfig.websiteId="6e6265bb-25ed-4f8b-819b-44a27434ed51";
s._umamiConfig.src="https://umami-production-101d.up.railway.app/script.js";
var a=r.createElement(t),m=r.getElementsByTagName(t)[0];
a.async=1;a.src=s._umamiConfig.src;
m.parentNode.insertBefore(a,m);
})(window,document,"script");
`,
}}
/>
<html lang="en" suppressHydrationWarning>
<body className={inter.className}>
<Providers>
Expand Down

0 comments on commit 5134059

Please sign in to comment.