diff --git a/src/app.html b/src/app.html
index ff0fcd2f..e7bc102e 100644
--- a/src/app.html
+++ b/src/app.html
@@ -8,8 +8,6 @@
-
OSIT's Aether System (Æ) - Built with SvelteKit
-
@@ -18,9 +16,6 @@
-
-
%sveltekit.head%
diff --git a/src/lib/analytics.svelte b/src/lib/analytics.svelte
new file mode 100644
index 00000000..2b7def2e
--- /dev/null
+++ b/src/lib/analytics.svelte
@@ -0,0 +1,39 @@
+
+
+
+
+
+
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index fd598e57..4bdd54f0 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -53,6 +53,7 @@ import { storePopup } from '@skeletonlabs/skeleton';
storePopup.set({ computePosition, autoUpdate, flip, shift, offset, arrow });
+import Analytics from '$lib/analytics.svelte'
// import { api } from '$lib/api';
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
import { events_loc, events_slct } from '$lib/ae_events_stores';
@@ -101,7 +102,9 @@ if ($ae_loc?.site_cfg_json.slct__event_id) {
// console.log(`Event ID already set:`, $events_slct.event_id);
$events_loc.event_id = $events_slct.event_id;
} else {
- console.log(`No Event ID set!`);
+ if (log_lvl) {
+ console.log(`No Event ID set!`);
+ }
}
// This is mainly for Precon CHOW
@@ -112,7 +115,9 @@ if ($ae_loc.site_cfg_json.slct__sponsorship_cfg_id) {
$slct.sponsorship_cfg_id = $ae_loc.sponsorship_cfg_id;
$ae_loc.mod.sponsorships.cfg_id = $ae_loc.sponsorship_cfg_id;
} else {
- console.log(`No Sponsorship Config ID set.`);
+ if (log_lvl) {
+ console.log(`No Sponsorship Config ID set.`);
+ }
}
@@ -356,6 +361,10 @@ onMount(() => {
});
+
+{#if $ae_loc?.site_google_tracking_id && $ae_loc?.site_google_tracking_id.length > 0}
+
+{/if}
{$ae_loc.title ?? 'Æ loading...'}