Wow.
I just put this
script src='http://www.google-analytics.com/ga.js'
type='text/javascript'/script
script type=text/javascriptvar pageTracker =
_gat._getTracker(UA-nn-n);/script
in the index.html, and use this
public static native void urchinTracker(String pageName)
/*-{
Hi Pete,
In my experience, when work with com.google.gwt.dom.client.Element on JSNI,
it's simple if we consider that Element as javacript object directly(in
fact, Element is instance of JavaScriptObject). So we don't need to use JSNI
access method like
It seems like it should be possible to do something like this (see
below) to integrate the new ga.js analytics api. However, when i did
it, all i got was trouble - very strange exceptions like
java.lang.RuntimeException: Could not find a native method with the
signature