chore: Update analytics events (#6050)

This commit is contained in:
Pranav Raj S 2022-12-08 20:53:13 -08:00 committed by GitHub
parent 7dc790a7e0
commit 6200559123
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 1108 additions and 55 deletions

View file

@ -161,6 +161,9 @@ import { LocalStorage, LOCAL_STORAGE_KEYS } from '../../../helper/localStorage';
import { trimContent, debounce } from '@chatwoot/utils';
import wootConstants from 'dashboard/constants';
import { isEditorHotKeyEnabled } from 'dashboard/mixins/uiSettings';
import AnalyticsHelper, {
ANALYTICS_EVENTS,
} from '../../../helper/AnalyticsHelper';
const EmojiInput = () => import('shared/components/emoji/EmojiInput');
@ -698,6 +701,7 @@ export default {
},
replaceText(message) {
setTimeout(() => {
AnalyticsHelper.track(ANALYTICS_EVENTS.INSERTED_A_CANNED_RESPONSE);
this.message = message;
}, 100);
},