diff --git a/supporters/src/layouts/Base.astro b/supporters/src/layouts/Base.astro index 8691472..cef5ffb 100644 --- a/supporters/src/layouts/Base.astro +++ b/supporters/src/layouts/Base.astro @@ -25,7 +25,9 @@ const other = lang === 'ko' ? 'en' : 'ko'; const switchTo = switchHref(Astro.url.pathname, other); const homeHref = lang === 'en' ? '/en' : '/'; const isHome = ['/', '', '/index.html', '/index', '/en', '/en/index.html', '/en/index'].includes(Astro.url.pathname.replace(/\/$/, '') || '/'); -// GA4: site.json 의 ga4MeasurementId(G-XXXX) 가 있을 때만 태그를 넣는다. 키 이벤트는 data/ai_channels.json conversion_events 와 같은 이름(click_tel · click_reservation · click_clinic_site · click_map). +// GA4: site.json 의 ga4MeasurementId(G-XXXX) 가 있을 때만 태그를 넣는다. 키 이벤트는 data/ai_channels.json 의 conversion_events 와 같은 이름 +// (click_tel · click_reservation · click_clinic_site · click_map). 플래너가 붙이는 click_hotel · click_flight 도 같은 리스너가 받는다. +// 플래너 전용 이벤트(plan_procedure_select · plan_result · plan_save)는 components/Planner.astro 가 보낸다. 수술일 원본은 보내지 않는다(haewon 결정 2026-09-12). const GA4: string = /^G-[A-Z0-9]{6,}$/.test(String((S as Record).ga4MeasurementId ?? '')) ? String((S as Record).ga4MeasurementId) : ''; // 의료광고 고지는 규정 대상이라 임의로 번역하지 않는다(의료법 56조·추천보증 심사지침). // 병원이 영문 문구를 확정해 site.json 의 sponsorNoticeEn / factSheet 의 sideEffectNoticeEn 에 넣기 전까지는 @@ -61,7 +63,7 @@ const ld = jsonLd ? JSON.stringify({ '@context': 'https://schema.org', ...(Array {ld && } {GA4 && } {GA4 &&