Skip to content

Commit a26563d

Browse files
committed
fix(analytics): initialize seline for user tracking
1 parent 8fff099 commit a26563d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

js/main.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// --- Seline Analytics ---
2+
function initSeline() {
3+
if (typeof seline !== "undefined") {
4+
seline.init({
5+
token: "091747081ed47e6",
6+
autoPageView: true
7+
});
8+
console.log("Seline initialized");
9+
} else {
10+
setTimeout(initSeline, 100);
11+
}
12+
}
13+
document.addEventListener("DOMContentLoaded", initSeline);
14+
115
function scrollToMission() {
216
document.getElementById('mission').scrollIntoView({
317
behavior: 'smooth'

0 commit comments

Comments
 (0)