improve web sdk

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-12 09:35:18 +01:00
parent 5afc49b7e4
commit a1fea7eb98
5 changed files with 22 additions and 14 deletions

View File

@@ -50,7 +50,7 @@ export async function createSessionEnd(
},
name: 'session_end',
duration: sessionDuration,
path: lastScreenView?.path ?? '',
path: lastScreenView?.path ?? sessionStart.path,
createdAt: toISOString(getTime(lastScreenView.createdAt) + 100),
});
}