mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-24 05:54:25 +08:00
fix: remove integrations page view and add event for the same (#4802)
This commit is contained in:
parent
a47d3289d0
commit
c76cef47ba
@ -15,7 +15,7 @@ function Integrations(): JSX.Element {
|
|||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
const { trackPageView, trackEvent } = useAnalytics();
|
const { trackEvent } = useAnalytics();
|
||||||
|
|
||||||
const selectedIntegration = useMemo(() => urlQuery.get('integration'), [
|
const selectedIntegration = useMemo(() => urlQuery.get('integration'), [
|
||||||
urlQuery,
|
urlQuery,
|
||||||
@ -42,7 +42,7 @@ function Integrations(): JSX.Element {
|
|||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
trackPageView(location.pathname);
|
trackEvent(INTEGRATION_TELEMETRY_EVENTS.INTEGRATIONS_LIST_VISITED);
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ export const handleContactSupport = (isCloudUser: boolean): void => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const INTEGRATION_TELEMETRY_EVENTS = {
|
export const INTEGRATION_TELEMETRY_EVENTS = {
|
||||||
|
INTEGRATIONS_LIST_VISITED: 'Integrations Page: Visited the list page',
|
||||||
INTEGRATIONS_ITEM_LIST_CLICKED: 'Integrations Page: Clicked an integration',
|
INTEGRATIONS_ITEM_LIST_CLICKED: 'Integrations Page: Clicked an integration',
|
||||||
INTEGRATIONS_DETAIL_CONNECT:
|
INTEGRATIONS_DETAIL_CONNECT:
|
||||||
'Integrations Detail Page: Clicked connect integration button',
|
'Integrations Detail Page: Clicked connect integration button',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user