Skip to content

Commit

Permalink
fix: ga ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 12, 2020
1 parent a1af2f5 commit fb47769
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/store/src/Store/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,7 @@ export class Store implements StoryStore {
}
};
visitPage = () => {
debugger;
if (this._analytics) {
if (this._analytics && typeof window !== 'undefined') {
this._analytics.page();
}
};
Expand Down

0 comments on commit fb47769

Please sign in to comment.