You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These services are supposed to automatically log router and firebase authentication events. When I use the logEvent function from the analytics package, events are logged, but I do not see any events logged from ScreenTrackingService and UserTrackingService
Browsers and Operating System
I am using Chrome Version 133.0.6943.142 (Official Build) (64-bit) on Windows 10
Reproduce the Error
On the DebugView in the Firebase Console, I can see the page_view event for the initial page load.
When I click links to routes around my app, or when I login and logout, I do not see any events.
Here is a component where I am manually triggering an event, and I can see the event in the DebugView:
When I run the Google Analytics Debugger, I can see events logging in the console from the logEvent function call in the HomeComponent. When I click various router links, I do not see any logs in the console. When I log in and out (using firebase auth signInWithPopup), I don't see any logs.
I added some debugger breakpoints in the ScreenTrackingService and UserTrackingService. The breakpoints at the top of the file are hit, so the file is loading. But the breakpoints in the constructors and ɵscreenViewEvent function are not hit at all.
It seems like the ScreenTrackingService and UserTrackingService are not getting constructed, called, or instantiated.
The text was updated successfully, but these errors were encountered:
Overview of the Issue
Using Angular 19 and AngularFire 19, the ScreenTrackingService and UserTrackingService do not trigger events.
Angular Version
Here is a section of my package.json:
Motivation for or Use Case
These services are supposed to automatically log router and firebase authentication events. When I use the logEvent function from the analytics package, events are logged, but I do not see any events logged from ScreenTrackingService and UserTrackingService
Browsers and Operating System
I am using Chrome Version 133.0.6943.142 (Official Build) (64-bit) on Windows 10
Reproduce the Error
On the DebugView in the Firebase Console, I can see the page_view event for the initial page load.
When I click links to routes around my app, or when I login and logout, I do not see any events.
Here is a component where I am manually triggering an event, and I can see the event in the DebugView:
Here is my app.routes.ts file:
Here is the sample.module file:
Here is the SampleRoutingModule:
On the HomeComponent, I link to the various pages in the SampleModule like this:
Here is my app.config.ts file:
I also tried these configs in the app config and the result was the same:
Suggest a Fix
When I run the Google Analytics Debugger, I can see events logging in the console from the logEvent function call in the HomeComponent. When I click various router links, I do not see any logs in the console. When I log in and out (using firebase auth signInWithPopup), I don't see any logs.
I added some debugger breakpoints in the ScreenTrackingService and UserTrackingService. The breakpoints at the top of the file are hit, so the file is loading. But the breakpoints in the constructors and ɵscreenViewEvent function are not hit at all.
It seems like the ScreenTrackingService and UserTrackingService are not getting constructed, called, or instantiated.
The text was updated successfully, but these errors were encountered: