diff --git a/package.json b/package.json
index 6465e08..b07ec82 100644
--- a/package.json
+++ b/package.json
@@ -32,7 +32,8 @@
"tailwindcss": "^3.4.0",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
- "vite": "^5.0.12"
+ "vite": "^5.0.12",
+ "@types/gtag.js": "^0.0.18"
},
"type": "module",
"dependencies": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9d0994c..0433948 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -49,6 +49,9 @@ devDependencies:
'@sveltejs/vite-plugin-svelte':
specifier: ^3.0.0
version: 3.0.1(svelte@4.2.8)(vite@5.0.12)
+ '@types/gtag.js':
+ specifier: ^0.0.18
+ version: 0.0.18
'@typescript-eslint/eslint-plugin':
specifier: ^6.15.0
version: 6.15.0(@typescript-eslint/parser@6.15.0)(eslint@8.56.0)(typescript@5.3.3)
@@ -1244,6 +1247,10 @@ packages:
/@types/estree@1.0.5:
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
+ /@types/gtag.js@0.0.18:
+ resolution: {integrity: sha512-GJxnIvuXuVhKaHfsOdzGipoOoXq72y3mdcncc9h6i6E7nlz89zBEj2wrLM7bqO5Xk9Lm2B94MwdQsSwRlaPSWw==}
+ dev: true
+
/@types/json-schema@7.0.15:
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
dev: true
diff --git a/src/app.d.ts b/src/app.d.ts
index f59b884..efcfb44 100644
--- a/src/app.d.ts
+++ b/src/app.d.ts
@@ -1,6 +1,10 @@
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare global {
+ declare interface Window {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ dataLayer: any;
+ }
namespace App {
// interface Error {}
// interface Locals {}
diff --git a/src/lib/components/Analytics.svelte b/src/lib/components/Analytics.svelte
new file mode 100644
index 0000000..d94a823
--- /dev/null
+++ b/src/lib/components/Analytics.svelte
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/lib/components/CookieConsentBanner.svelte b/src/lib/components/CookieConsentBanner.svelte
index 5f6dbc8..9a5bbc4 100644
--- a/src/lib/components/CookieConsentBanner.svelte
+++ b/src/lib/components/CookieConsentBanner.svelte
@@ -27,6 +27,7 @@
class="bg-red-600 p-2 rounded-md"
on:click={() => {
visible = false;
+ cookies_accepted.set(false);
}}>Deny
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 4e97977..59bba25 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -1,7 +1,10 @@
+
+