mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-25 22:28:00 -05:00
added clarity snippet
This commit is contained in:
@@ -20,4 +20,5 @@ export const CONFIG = {
|
||||
process.env.NEXT_BRIGHTID_NODE_URL || 'http:%2f%2fnode.brightid.org',
|
||||
publicUrl: process.env.NEXT_PUBLIC_VERCEL_URL || 'http://localhost:3000',
|
||||
gaId: process.env.NEXT_PUBLIC_GA4_ID || undefined,
|
||||
clarityId: process.env.CLARITY_ID || undefined
|
||||
};
|
||||
|
||||
@@ -39,6 +39,19 @@ const App: React.FC<WithUrqlProps> = ({
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
{!!CONFIG.clarityId && (
|
||||
<script type="text/javascript"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
(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", '${CONFIG.clarityId}');
|
||||
`
|
||||
}}>
|
||||
</script>
|
||||
)}
|
||||
</Head>
|
||||
<Web3ContextProvider resetUrqlClient={resetUrqlClient}>
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user