diff --git a/web/app/components/app/log/filter.tsx b/web/app/components/app/log/filter.tsx index affaa879b0..865ac4acc0 100644 --- a/web/app/components/app/log/filter.tsx +++ b/web/app/components/app/log/filter.tsx @@ -54,7 +54,13 @@ const Filter: FC = ({ isChatMode, appId, queryParams, setQueryPara }) setQueryParams({ ...queryParams, period: item.value }) }} - onClear={() => setQueryParams({ ...queryParams, period: '9' })} + onClear={() => { + sendGAEvent('filter_chat_conversation_period', { + period: 'reset', + period_name: 'reset', + }) + setQueryParams({ ...queryParams, period: '9' }) + }} items={Object.entries(TIME_PERIOD_MAPPING).map(([k, v]) => ({ value: k, name: t(`appLog.filter.period.${v.name}`) }))} /> = ({ queryParams, setQueryParams }: IFilterProps) }) setQueryParams({ ...queryParams, status: item.value as string }) }} - onClear={() => setQueryParams({ ...queryParams, status: 'all' })} + onClear={() => { + sendGAEvent('filter_workflow_status_clear', { + status: 'reset', + status_name: 'reset', + }) + setQueryParams({ ...queryParams, status: 'all' }) + }} items={[{ value: 'all', name: 'All' }, { value: 'succeeded', name: 'Success' }, { value: 'failed', name: 'Fail' }, diff --git a/web/app/components/base/ga/index.tsx b/web/app/components/base/ga/index.tsx index a33b6546e4..8da97cb1c9 100644 --- a/web/app/components/base/ga/index.tsx +++ b/web/app/components/base/ga/index.tsx @@ -21,6 +21,8 @@ export type IGAProps = { const GA: FC = ({ gaType, }) => { + console.log('IS_CE_EDITION', IS_CE_EDITION) + console.log('process.env.NODE_ENV', process.env.NODE_ENV) if (IS_CE_EDITION) return null