diff --git a/core/store/src/Store/Store.ts b/core/store/src/Store/Store.ts index d29368e9e..d6b95447e 100644 --- a/core/store/src/Store/Store.ts +++ b/core/store/src/Store/Store.ts @@ -396,8 +396,7 @@ export class Store implements StoryStore { } }; visitPage = () => { - debugger; - if (this._analytics) { + if (this._analytics && typeof window !== 'undefined') { this._analytics.page(); } };