title: Tracking all screens using Google Analytics in Ionic 3 project
body: <p>I'm in the middle of finalizing an Ionic 3 build and would like to add Google Analytics to it. I added it successfully and can see in GA (real time) that the app is being used however I would like to track all page/screen views. Does anyone know of way to do that?</p>
  
  <p>I'm using the following plugin: <a href="https://github.com/danwilson/google-analytics-plugin" rel="nofollow noreferrer">https://github.com/danwilson/google-analytics-plugin</a></p>
  
  <p>Here is the code I am using to initialize GA</p>
  
  <pre><code> initGoogleAnalytics() {
      var trackingId = 'UA-114720506-2';
      if (/(android)/i.test(navigator.userAgent)) { // for android 
        trackingId = 'UA-114720506-2';
      } else if (/(ipod|iphone|ipad)/i.test(navigator.userAgent)) { // for ios
        trackingId = 'UA-114720506-2';
      }
      //platform is injected in the Constructor
      this.platform.ready().then(() =&gt; {
        this.ga.debugMode();
        this.ga.startTrackerWithId(trackingId).then(()=&gt; {
          console.log("GoogleAnalytics Initialized with ****** : " + trackingId);
          this.ga.trackView('schedule');
          this.ga.trackView('speakerList');
          this.ga.trackView('map');
          this.ga.trackView('social');
          this.ga.trackView('exhibitors');
          this.ga.enableUncaughtExceptionReporting(true)
          .then((_success) =&gt; {
            console.log("GoogleAnalytics enableUncaughtExceptionReporting Enabled.");
          }).catch((_error) =&gt; {
            console.log("GoogleAnalytics Error enableUncaughtExceptionReporting : " + _error)
          });
        });
      });
    }
  </code></pre>