diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/analytics.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/analytics.tsx index 54d06c8652d9e..9887dfee4d264 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/analytics.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/analytics.tsx @@ -10,8 +10,6 @@ export interface GenericAnalytics { export const AnalyticsContext = createContext(undefined!); -const PAGEVIEW_DELAY = 300; - export const usePageContext = () => { const match = useRouteMatch(); const {pathname: specificPath} = useLocation(); @@ -55,14 +53,7 @@ export const useTrackPageView = () => { const {path, specificPath} = usePageContext(); useEffect(() => { - // Wait briefly to allow redirects. - const timer = setTimeout(() => { - analytics.page(path, specificPath); - }, PAGEVIEW_DELAY); - - return () => { - clearTimeout(timer); - }; + analytics.page(path, specificPath); }, [analytics, path, specificPath]); };