Skip to content

Commit e652adf

Browse files
committed
Changing the hotjar implementation
1 parent 3cecccb commit e652adf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/layout.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ export default function RootLayout({ children }: RootLayoutProps) {
8080
return (
8181
<>
8282
<html lang="en" suppressHydrationWarning>
83-
<head>
84-
<HotjarSnippet />
85-
</head>
8683
<body
8784
className={cn(
8885
"min-h-screen bg-background font-sans antialiased",
@@ -102,6 +99,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
10299
</div>
103100
</ThemeProvider>
104101
<DefaultToaster />
102+
<HotjarSnippet />
105103
</body>
106104
<GoogleTagManager gtmId="G-RK1D7R0HK7" />
107105
</html>

components/ui/hotjar-component.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
"use client"
2-
import Script from 'next/script'
1+
"use client";
2+
import Script from "next/script";
33

44
const HotjarSnippet = () => {
55
const _HOTJAR_ID = 4972330;
66
const _HOTJAR_VERSION = 6;
77
return (
8+
<div>
89
<Script id="hotjar-snippet">
910
{`
1011
(function(h,o,t,j,a,r){
@@ -17,6 +18,7 @@ const HotjarSnippet = () => {
1718
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
1819
`}
1920
</Script>
21+
</div>
2022
);
2123
};
2224

0 commit comments

Comments
 (0)