Skip to content

Instantly share code, notes, and snippets.

@Xeven777
Created January 21, 2026 09:04
Show Gist options
  • Select an option

  • Save Xeven777/0b1f48cf744536fa7401e666a488a821 to your computer and use it in GitHub Desktop.

Select an option

Save Xeven777/0b1f48cf744536fa7401e666a488a821 to your computer and use it in GitHub Desktop.
Clarity
"use client";
import Script from "next/script";
const Clarity = () => {
return (
<>
<Script strategy="lazyOnload" id="clarity-script">
{`
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "CLARITY_ID");
`}
</Script>
</>
);
};
export default Clarity;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment