We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
window.location
1 parent 1cff697 commit c1e1db7Copy full SHA for c1e1db7
packages/vue/src/router.ts
@@ -65,7 +65,8 @@ export function vueRouterInstrumentation(
65
66
// We have to start the pageload transaction as early as possible (before the router's `beforeEach` hook
67
// is called) to not miss child spans of the pageload.
68
- if (startTransactionOnPageLoad) {
+ // We check that window & window.location exists in order to not run this code in SSR environments.
69
+ if (startTransactionOnPageLoad && WINDOW && WINDOW.location) {
70
startTransaction({
71
name: WINDOW.location.pathname,
72
op: 'pageload',
0 commit comments