Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit 3dd7a1e

Browse files
committed
chore: add clarity
Signed-off-by: Innei <[email protected]>
1 parent b90998f commit 3dd7a1e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pages/_app.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import Script from 'next/script'
12
import '../public/style.css'
23
import { OpenpanelProvider } from '@openpanel/nextjs'
4+
import Head from 'next/head'
35

46
export default function App({ Component, pageProps }) {
57
return (
@@ -10,6 +12,13 @@ export default function App({ Component, pageProps }) {
1012
trackScreenViews={true}
1113
trackOutgoingLinks={true}
1214
/>
15+
<Head>
16+
<Script>{`(function(c,l,a,r,i,t,y){
17+
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
18+
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
19+
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
20+
})(window, document, "clarity", "script", "lsoepndf05");`}</Script>
21+
</Head>
1322
<Component {...pageProps} />
1423
</>
1524
)

0 commit comments

Comments
 (0)