Skip to content

Commit

Permalink
chore: heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyshlyaev177 committed Nov 23, 2024
1 parent 048a998 commit dcdf2eb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/example-nextjs14/public/heatmap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

// https://en.userheat.com/
// (function(add, cla){window['UserHeatTag'] = cla;window[cla]=window[cla]||function(){(window[cla].q = window[cla].q || []).push(arguments)},window[cla].l=1*new Date();var ul=document.createElement('script');var tag = document.getElementsByTagName('script')[0];ul.async=1;ul.src=add;tag.parentNode.insertBefore(ul,tag);})('//uh.nakanohito.jp/uhj2/uh.js', '_uhtracker');_uhtracker({id:'uhc7NMahnU'});

// hotjar
(function (c, s, q, u, a, r, e) {
c.hj = c.hj || function () { (c.hj.q = c.hj.q || []).push(arguments) };
c._hjSettings = { hjid: a };
r = s.getElementsByTagName('head')[0];
e = s.createElement('script');
e.async = true;
e.src = q + c._hjSettings.hjid + u;
r.appendChild(e);
})(window, document, 'https://static.hj.contentsquare.net/c/csq-', '.js', 5218617);
1 change: 1 addition & 0 deletions packages/example-nextjs14/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default async function RootLayout({

{isVercel && <link rel="canonical" href={vercelUrl}></link>}
<meta name="google-site-verification" content="NKunqTB4Sd_Bp6zoIbzKvw_WoGB-v2-MXxC5mbKJKJw" />
{isProd && isVercel && <Script src="/heatmap.js" strategy='afterInteractive'/>}

<body className={`${roboto.className}`}>
{children}
Expand Down

0 comments on commit dcdf2eb

Please sign in to comment.