feat: add consent-based GA4 analytics
Publish GitHub Pages output / publish (push) Successful in 41s
Publish GitHub Pages output / publish (push) Successful in 41s
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user