144145146147148149150151152153154
// tracking code final JGoogleAnalyticsTracker tracker = new JGoogleAnalyticsTracker( "Aurous App", "2.2.5", "UA-53956512-1"); final FocusPoint focusPoint = new FocusPoint("AppStart"); tracker.trackAsynchronously(focusPoint); Settings.loadSettings(); }
149150151152153154155156157158159
}); } if(trackingEnabled) { tracker = new JGoogleAnalyticsTracker("Leonardo","UA-17798312-2"); mainApp = new FocusPoint("MainApp"); tracker.setLoggingAdapter(new LoggingAdapter(){ public void logError(String s) { u.p("logging error: " + s); }
184185186187188189190191
} public static void trackEvent(String event) { if(trackingEnabled) { tracker.trackAsynchronously(new FocusPoint(event,mainApp)); } }
25262728293031323334
Main.saveSettings(); } catch (Exception e) { e.printStackTrace(); } if(Main.trackingEnabled) { Main.tracker.trackSynchronously(new FocusPoint("exit", Main.mainApp)); } System.exit(0); }