Tabris 1.4 Preview: Google Analytics

April 22, 2014 | 2 min Read

On June 26th we will release Tabris 1.4. Currently we are working on the new features for this release. One of the Killer-Features, a tracking API for the Tabris UI framework, was finished last week. The API comes with a ready-to-use Google Analytics integration. All you need to do is set your tracking ID and activate it. In your code this might look like this:

UIConfiguration configuration = new UIConfiguration();
Tracking tracking = new Tracking( new GoogleAnalyticsTracker( "YOUR_TRACKING_ID", "Your App Name" ) );
tracking.start( configuration );

As you can see, the new Tracking type needs a Tracker. In our case, a GoogleAnalyticsTracker. To start tracking, you just need to call start and pass your Tabris UIConfiguration. Everything else is done for you by the Tracking framework. In the background, tracking takes note of every Tabris UI interaction. This includes:

  • Page Transitions: Every time a user opens a page.
  • Action Executions: Every time a user presses an Action.
  • Searches: Every time a user executes a search.

In Google Analytics you can see that the events will be tracked in realtime and you can do every kind of analysis as you may know them from websites.

As you can see, besides the events, the GoogleAnalyticsTracker also tracks device information, location information and much more.

One more thing…

The tracking API we provide is generic. It means you can also implement you own Tracker to send events to your favourite tracking system, log etc. We will have the documentation ready when the release comes out. For all of you that don’t want to wait: You can try this tracking right now when using the latest build from our staging p2 repository: or you can checkout the sources.

Please Note: The feature described above is a preview of the upcoming Tabris 1.4 features. Tabris 1.4 will be available on June 26th 2014. If you want to try it out before the release just send us a quick request. t-us/).