diff --git a/frontend/src/pages/Integrations/Integrations.tsx b/frontend/src/pages/Integrations/Integrations.tsx index 1f1644fbc7..187c77f4f6 100644 --- a/frontend/src/pages/Integrations/Integrations.tsx +++ b/frontend/src/pages/Integrations/Integrations.tsx @@ -15,7 +15,7 @@ function Integrations(): JSX.Element { const history = useHistory(); const location = useLocation(); - const { trackPageView, trackEvent } = useAnalytics(); + const { trackEvent } = useAnalytics(); const selectedIntegration = useMemo(() => urlQuery.get('integration'), [ urlQuery, @@ -42,7 +42,7 @@ function Integrations(): JSX.Element { ); useEffect(() => { - trackPageView(location.pathname); + trackEvent(INTEGRATION_TELEMETRY_EVENTS.INTEGRATIONS_LIST_VISITED); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); diff --git a/frontend/src/pages/Integrations/utils.ts b/frontend/src/pages/Integrations/utils.ts index a244da4c82..0785eb89c0 100644 --- a/frontend/src/pages/Integrations/utils.ts +++ b/frontend/src/pages/Integrations/utils.ts @@ -9,6 +9,7 @@ export const handleContactSupport = (isCloudUser: boolean): void => { }; export const INTEGRATION_TELEMETRY_EVENTS = { + INTEGRATIONS_LIST_VISITED: 'Integrations Page: Visited the list page', INTEGRATIONS_ITEM_LIST_CLICKED: 'Integrations Page: Clicked an integration', INTEGRATIONS_DETAIL_CONNECT: 'Integrations Detail Page: Clicked connect integration button',