Skip to content
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/

  1. Add in your project's gwt.xml

  2. 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!");
    
     }
    

    });

Clone this wiki locally