mirror of
https://github.com/pupperpowell/bibdle.git
synced 2026-10-22 05:54:10 -04:00
first pass analytics redo
This commit is contained in:
1 parent
b656fd04c0
commit
45ffa39f2a
69 files changed
+6400
-1138
No files matched your search
@@ -6,6 +6,7 @@
|
||||
import favicon from "$lib/assets/favicon.ico";
|
||||
import TitleAnimation from "$lib/components/TitleAnimation.svelte";
|
||||
import ThemeToggle from "$lib/components/ThemeToggle.svelte";
|
||||
import { captureFirstVisit } from "$lib/utils/analytics";
|
||||
|
||||
let isDev = $state(false);
|
||||
|
||||
@@ -14,6 +15,9 @@
|
||||
window.location.host === "localhost:5173" ||
|
||||
window.location.host === "test.bibdle.com";
|
||||
|
||||
// Instrumentation E: capture first-touch referrer / UTM once per browser.
|
||||
captureFirstVisit();
|
||||
|
||||
// Inject analytics script
|
||||
const script = document.createElement("script");
|
||||
script.defer = true;
|
||||
|
||||
Reference in new issue
Block a user