File tree Expand file tree Collapse file tree
pubmodules/analytics-publisher Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -420,15 +420,15 @@ function listen() {
420420 botEvent . on ( "faqbot.create" , function ( savedBot ) {
421421 if ( ! savedBot || ! savedBot . id_project || ! savedBot . name ) return ;
422422 track ( "agent.metadata_updated" , savedBot . id_project , {
423- agent_id : savedBot . _id . toString ( ) ,
423+ agent_id : savedBot . root_id || savedBot . _id . toString ( ) ,
424424 agent_name : savedBot . name ,
425425 } ) ;
426426 } ) ;
427427
428428 botEvent . on ( "faqbot.update" , function ( updatedBot ) {
429429 if ( ! updatedBot || ! updatedBot . id_project || ! updatedBot . name ) return ;
430430 track ( "agent.metadata_updated" , updatedBot . id_project , {
431- agent_id : updatedBot . _id . toString ( ) ,
431+ agent_id : updatedBot . root_id || updatedBot . _id . toString ( ) ,
432432 agent_name : updatedBot . name ,
433433 } ) ;
434434 } ) ;
You can’t perform that action at this time.
0 commit comments