diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 5e1f34904..3712a08e6 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -624,6 +624,8 @@ export default { `${this.$t('CONVERSATION.REPLYBOX.INSERT_READ_MORE')} ${url}` ); } + + this.$track(CONVERSATION_EVENTS.INSERT_ARTICLE_LINK); }, toggleRichContentEditor() { this.updateUISettings({ diff --git a/app/javascript/dashboard/helper/AnalyticsHelper/events.js b/app/javascript/dashboard/helper/AnalyticsHelper/events.js index 53e0a82ca..30f82d554 100644 --- a/app/javascript/dashboard/helper/AnalyticsHelper/events.js +++ b/app/javascript/dashboard/helper/AnalyticsHelper/events.js @@ -9,6 +9,7 @@ export const CONVERSATION_EVENTS = Object.freeze({ SEARCH_CONVERSATION: 'Searched conversations', APPLY_FILTER: 'Applied filters in the conversation list', CHANGE_PRIORITY: 'Assigned priority to a conversation', + INSERT_ARTICLE_LINK: 'Inserted article into reply via article search', }); export const ACCOUNT_EVENTS = Object.freeze({