Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

feat: track channel click event in support page (#4217)

Yunus M221861230a2d
diff --git a/frontend/src/pages/Support/Support.tsx b/frontend/src/pages/Support/Support.tsx
index 61d6c11c38..96276507f9 100644
--- a/frontend/src/pages/Support/Support.tsx
+++ b/frontend/src/pages/Support/Support.tsx
@@ -1,6 +1,7 @@
import './Support.styles.scss';
import { Button, Card, Typography } from 'antd';
+import useAnalytics from 'hooks/analytics/useAnalytics';
import {
Book,
Cable,
@@ -82,6 +83,8 @@ const supportChannels = [
];
export default function Support(): JSX.Element {
+ const { trackEvent } = useAnalytics();
+
const handleChannelWithRedirects = (url: string): void => {
window.open(url, '_blank');
};
@@ -111,6 +114,8 @@ export default function Support(): JSX.Element {
};
const handleChannelClick = (channel: Channel): void => {
+ trackEvent(`Support : ${channel.name}`);
+
switch (channel.key) {
case channelsMap.documentation:
case channelsMap.github: