Christoph :

Any ideas or recommendations on how to integrate a GWT app with Google Analytics?


Robert Hanson

Sure, it is just a simple JSNI call.

// untested
public native void trackUrchinHit (String pageName) /*-{
$wnd.urchinTracker(pageName);
}-*/

Just call that method whenever you want to track an event in the interface. You also need to include the Urchin JS code in the HTML page (obviously)

GWT / Google Analytics Integration