feat: added new tab opened metric (#293)

This commit is contained in:
Felarof
2026-02-02 14:01:28 -08:00
committed by GitHub
parent a6171ebbcf
commit 882c227ee0
2 changed files with 5 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ import {
} from '@/lib/chat-actions/types'
import {
NEWTAB_AI_TRIGGERED_EVENT,
NEWTAB_OPENED_EVENT,
NEWTAB_SEARCH_EXECUTED_EVENT,
} from '@/lib/constants/analyticsEvents'
import { openSidePanelWithSearch } from '@/lib/messaging/sidepanel/openSidepanelWithSearch'
@@ -182,6 +183,7 @@ export const NewTab = () => {
useEffect(() => {
setMounted(true)
track(NEWTAB_OPENED_EVENT)
}, [])
return (

View File

@@ -71,6 +71,9 @@ export const SCHEDULED_TASK_VIEW_RESULTS_IN_NEWTAB_EVENT =
export const SCHEDULED_TASK_VIEW_MORE_IN_NEWTAB_EVENT =
'newtab.scheduled_task.view_more'
/** @public */
export const NEWTAB_OPENED_EVENT = 'newtab.opened'
/** @public */
export const NEWTAB_AI_TRIGGERED_EVENT = 'newtab.ai.triggered'