hakimio / ngx-google-analytics

📈 A simple Google analytics integration for Angular apps
MIT License
17 stars 0 forks source link

Does it track when skipLocationChange is used? #4

Open mackelito opened 1 month ago

mackelito commented 1 month ago

Just a general question.. if skipLocationChange is used.. does it still track the event?

hakimio commented 1 month ago

Yes, it should still work. You can also test with Angular router in your application by subscribing to NavigationEnd events. Relevant code from the library: https://github.com/hakimio/ngx-google-analytics/blob/96c4146b7e38fc4cb3408cfa9229e7018f3aa28c/projects/ngx-google-analytics/src/lib/initializers/google-analytics-router.initializer.ts#L41