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,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import AnalyticsConsent from '../src/lib/components/AnalyticsConsent.svelte';
|
||||
import HomePage from '../src/routes/+page.svelte';
|
||||
import CardsPage from '../src/routes/cards/+page.svelte';
|
||||
import AnalysisPage from '../src/routes/analysis/+page.svelte';
|
||||
@@ -108,6 +109,8 @@
|
||||
|
||||
<svelte:component this={CurrentPage} />
|
||||
|
||||
<AnalyticsConsent pagePath={currentPath} />
|
||||
|
||||
<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