Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

62d90b9 · Nov 22, 2019

History

History
27 lines (22 loc) · 439 Bytes

getting-started.md

File metadata and controls

27 lines (22 loc) · 439 Bytes

Getting started with Google Analytics

Something, something

TBD

Putting it all together

@NgModule({
  imports: [
    AngularFireModule.initializeApp(environment.firebase),
    AngularFireAnalyticsModule
  ],
  providers: [
    ScreenTrackingService,
    UserTrackingService
  ]
})
export class AppModule { }
constructor(analytics: AngularFireAnalytics) {
    analytics.logEvent('custom_event', { ... });
}