From 986b1e5a4edcc464cb0ba1a683ae3a94c1ca3243 Mon Sep 17 00:00:00 2001 From: hyesungoh Date: Sun, 5 Nov 2023 13:37:00 +0900 Subject: [PATCH] feat: event track with ct --- 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;