mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-17 02:25:57 +00:00
feat: added new tab opened metric (#293)
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user