diff --git a/packages/example-nextjs14/public/heatmap.js b/packages/example-nextjs14/public/heatmap.js new file mode 100644 index 0000000..9eae430 --- /dev/null +++ b/packages/example-nextjs14/public/heatmap.js @@ -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); diff --git a/packages/example-nextjs14/src/app/layout.tsx b/packages/example-nextjs14/src/app/layout.tsx index 2e9ee5e..f9c80fb 100644 --- a/packages/example-nextjs14/src/app/layout.tsx +++ b/packages/example-nextjs14/src/app/layout.tsx @@ -26,6 +26,7 @@ export default async function RootLayout({ {isVercel && } + {isProd && isVercel &&