-
Notifications
You must be signed in to change notification settings - Fork 0
Home
alignace edited this page Dec 5, 2014
·
2 revisions
Steps to use:
No need to change your "html" files for importing "Google Analytics JS" This project uses "GATracker" Ref: https://code.google.com/p/gwt-gatracker/
-
Add in your project's gwt.xml
-
To start using first you need to initialize the GWT-Google-Analytics plugin:
GAnalytics.initialize("UA-XXXXXXXX-X", new Callback<Void, Exception>() { @Override public void onSuccess(Void arg0) { GWT.log("Success!"); GATracker.trackEvent("Main", "Loading Modules"); } @Override public void onFailure(Exception arg0) { GWT.log("Failure!"); }
});