fix: remove integrations page view and add event for the same (#4802)

This commit is contained in:
Vikrant Gupta 2024-04-03 12:31:38 +05:30 committed by GitHub
parent a47d3289d0
commit c76cef47ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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
}, []);

View File

@ -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',