Google Analytics

In order to track views and events in Google Analytics you first need to add a new app in your Google Analytics account then copy the new tracker id in app.config.ts:

googleAnalyticsTrackerId: null

The analytics plugin is initialized in app.component.ts and by default it tracks views whenever you're clicking on a tab in the app (in tabs-page.ts):

onTabChange(title) {
    console.log(`tab changed to: ${title}`);
    this.analytics.trackView(title);
}

When you want to track new views or events, make sure you import the AnalyticsService in your component.

Google Analytics integration is only available in IonFire Pro version.

results matching ""

    No results matching ""