From f80fcd8fdc963cc2b7b4f9c900bb1c35c0771cf6 Mon Sep 17 00:00:00 2001 From: hyesung oh Date: Sun, 5 Nov 2023 14:03:01 +0900 Subject: [PATCH] feat: event track with ct (#456) --- src/utils/event.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/event.ts b/src/utils/event.ts index cc5bfc88..78ff262d 100644 --- a/src/utils/event.ts +++ b/src/utils/event.ts @@ -1,3 +1,4 @@ +import * as ChannelTalk from '@channel.io/channel-web-sdk-loader'; import mixpanel from 'mixpanel-browser'; import { event } from '~/libs/gtag'; @@ -12,6 +13,7 @@ const recordEvent = ({ action, label, value }: Props) => { event({ action, category: process.env.WEB_VERSION, label, value }); mixpanel.track(action, { category: process.env.WEB_VERSION, label, value }); + ChannelTalk.track(action, { category: process.env.WEB_VERSION, label: label || null, value: value || null }); }; export default recordEvent;