Skip to content

Commit

Permalink
feat: event track with ct (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyesungoh authored Nov 5, 2023
1 parent e35a81d commit f80fcd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/event.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as ChannelTalk from '@channel.io/channel-web-sdk-loader';
import mixpanel from 'mixpanel-browser';

import { event } from '~/libs/gtag';
Expand All @@ -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;

0 comments on commit f80fcd8

Please sign in to comment.