feat: add consent-based GA4 analytics
Publish GitHub Pages output / publish (push) Successful in 41s

This commit is contained in:
2026-08-31 14:42:59 +09:00
parent b48a3b4f9d
commit f5d9bef547
12 changed files with 256 additions and 1 deletions
+3
View File
@@ -1,6 +1,7 @@
<script lang="ts">
import { onMount } from 'svelte';
import { page } from '$app/stores';
import AnalyticsConsent from '$lib/components/AnalyticsConsent.svelte';
import { events } from '$lib/data/events.ts';
import { createInitialReleaseClock, synchronizeReleaseClock } from '$lib/data/release-clock.ts';
import { activeEventAt } from '$lib/engine/event-optimization.ts';
@@ -62,6 +63,8 @@
<slot />
<AnalyticsConsent pagePath={`${$page.url.pathname}${$page.url.search}`} />
<style>
:global(*) { box-sizing: border-box; }
:global(body) { margin: 0; background: #101319; color: #e8ebf1; font-family: Pretendard, "Noto Sans KR", sans-serif; }