diff --git a/packages/example-nextjs14/public/heatmap.js b/packages/example-nextjs14/public/heatmap.js new file mode 100644 index 0000000..f639b26 --- /dev/null +++ b/packages/example-nextjs14/public/heatmap.js @@ -0,0 +1 @@ + (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'}); diff --git a/packages/example-nextjs14/src/app/layout.tsx b/packages/example-nextjs14/src/app/layout.tsx index 2e9ee5e..bd70502 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 &&