@@ -47,13 +47,12 @@ export class ScreenTrackingService implements OnDestroy {
4747 const ret = new Array < Promise < void > > ( ) ;
4848 if ( automaticallyLogScreenViews !== false ) {
4949 if ( component ) {
50- const screen_class = component . hasOwnProperty ( 'name' ) && ( component as any ) . name || component . toString ( ) ;
51- ret . push ( analytics . logEvent ( "screen_view" , { app_name, screen_class , app_version, screen_name, outlet, url } ) ) ;
50+ const firebase_screen_class = component . hasOwnProperty ( 'name' ) && ( component as any ) . name || component . toString ( ) ;
51+ ret . push ( analytics . logEvent ( "screen_view" , { app_name, firebase_screen_class , app_version, screen_name, outlet, url } ) ) ;
5252 } else if ( activationEnd . snapshot . routeConfig && activationEnd . snapshot . routeConfig . loadChildren ) {
5353 ret . push ( ( activationEnd . snapshot . routeConfig . loadChildren as any ) ( ) . then ( ( child :any ) => {
54- const screen_class = child . name ;
55- console . log ( "logEvent" , "screen_view" , { app_name, screen_class, app_version, screen_name, outlet, url } ) ;
56- return analytics . logEvent ( "screen_view" , { app_name, screen_class, app_version, screen_name, outlet, url } ) ;
54+ const firebase_screen_class = child . name ;
55+ return analytics . logEvent ( "screen_view" , { app_name, firebase_screen_class, app_version, screen_name, outlet, url } ) ;
5756 } ) ) ;
5857 } else {
5958 ret . push ( analytics . logEvent ( "screen_view" , { app_name, app_version, screen_name, outlet, url } ) ) ;
0 commit comments