diff --git a/website/src/theme/DocPage/index.js b/website/src/theme/DocPage/index.js index ddfd5807..3eebf60d 100644 --- a/website/src/theme/DocPage/index.js +++ b/website/src/theme/DocPage/index.js @@ -169,7 +169,7 @@ function DocPage(props) { amplitude.getInstance().logEvent('Docs Viewed', { "hostname": window.location.hostname, "path": window.location.pathname }); } }) - }, [window.location.pathname]) + }, [(typeof window !== "undefined" && window.location.pathname)]) if (isLoading) return