From b74e2e1e1ec0a1f792dac130f6fbce2affbdc411 Mon Sep 17 00:00:00 2001 From: seondal Date: Mon, 6 Nov 2023 12:32:52 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20fix=20:=20=20hotjar=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/layout.tsx | 1 + src/components/Analytics/Analytics.tsx | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index e7a8eebe..58a74e1f 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -25,6 +25,7 @@ export const metadata: Metadata = { }, other: { 'naver-site-verification': 'eb9f471cae26de34e6bc71849e73f04cb8b00d83', + 'last-updated': '2023-11-06', }, openGraph: { title: META_STRING.title, diff --git a/src/components/Analytics/Analytics.tsx b/src/components/Analytics/Analytics.tsx index 1d2535d3..dafcda80 100644 --- a/src/components/Analytics/Analytics.tsx +++ b/src/components/Analytics/Analytics.tsx @@ -4,7 +4,7 @@ import { usePathname, useSearchParams } from 'next/navigation'; import Script from 'next/script'; import { useEffect } from 'react'; -import { GA_ID } from '@/constants'; +import { GA_ID, HOTJAR } from '@/constants'; import { pageview } from '@/utils/gtm'; export default function Analytics() { @@ -41,6 +41,22 @@ export default function Analytics() { j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer', '${GA_ID}'); + `, + }} + /> +