Skip to content

Commit 70b2925

Browse files
authored
Update segment event formatting (#2429)
1 parent baba1fe commit 70b2925

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

layouts/partials/segment.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
analytics.load("WRrz9T87YdiSbmMaU8rm2JAq7EFKp5H4");
44
analytics.page();
55
analytics.track('PageViewed', {
6-
page_name: document.title || window.location.pathname
6+
page_name: window.location.pathname,
7+
timestamp: new Date().toISOString(),
8+
url: typeof window !== 'undefined' ? window.location.href : undefined
79
});
810
}}();
911
</script>

0 commit comments

Comments
 (0)