Skip to content

Commit d9d2689

Browse files
Revert session id change (#831)
1 parent 957ca8f commit d9d2689

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/.vuepress/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ const reload = () => {
4949

5050
const leave = (to: RouteLocationNormalized, from: RouteLocationNormalized) => {
5151
if (from.path !== to.path && typeof window !== "undefined" && window.analytics !== undefined) {
52-
const sessionId = (typeof window.posthog !== "undefined") ? window.posthog.getSessionId() : null;
52+
// const sessionId = (typeof window.posthog !== "undefined") ? window.posthog.getSessionId() : null;
5353
window.analytics.track({
5454
event: "$pageleave",
5555
properties: {
5656
$host: window.location.hostname,
57-
$session_id: sessionId
57+
// $session_id: sessionId
5858
}
5959
});
6060
}

docs/.vuepress/public/js/snippet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
site: "docs",
9595
title: "Home",
9696
$host: window.location.hostname,
97-
$session_id: posthog.getSessionId(),
97+
// $session_id: posthog.getSessionId(),
9898
})
9999
}
100100
});

0 commit comments

Comments
 (0)