Skip to content

Commit 2aa3ed8

Browse files
committed
check(analytics): add manual tracking through seline
1 parent 751aec2 commit 2aa3ed8

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

js/main.js

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
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);
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);
1414

15-
function scrollToMission() {
16-
document.getElementById('mission').scrollIntoView({
17-
behavior: 'smooth'
18-
});
19-
}
15+
// function scrollToMission() {
16+
// document.getElementById('mission').scrollIntoView({
17+
// behavior: 'smooth'
18+
// });
19+
// }
2020

2121
// Add some interactive animations
2222
document.addEventListener('DOMContentLoaded', function() {
@@ -80,18 +80,21 @@ document.addEventListener('DOMContentLoaded', function() {
8080
const html = await res.text();
8181
document.querySelector('#content').innerHTML = html;
8282
window.history.pushState({ page: 'mission' }, "Mission", "#Mission");
83+
seline.page();
8384
}
8485
else if (target === '#Projects') {
8586
const res = await fetch('pages/projects.html');
8687
const html = await res.text();
8788
document.querySelector('#content').innerHTML = html;
8889
window.history.pushState({ page: 'projects' }, "Projects", "#Projects");
90+
seline.page();
8991
}
9092
else if (target === '#Blogs') {
9193
const res = await fetch('pages/blogs.html');
9294
const html = await res.text();
9395
document.querySelector('#content').innerHTML = html;
9496
window.history.pushState({ page: 'blogs' }, "Blogs", "#Blogs");
97+
seline.page();
9598
}
9699

97100
setActiveNav(target); // highlight correct nav link

0 commit comments

Comments
 (0)