Hi,
I am trying to implement google analytics tracker for GWT based webapp and
using the following code snippet, do i need to add any js file to support
this code. If so where can i get that js file.
http://code.google.com/p/gwt-examples/wiki/project_UrchinTracker
I am passing the title of my page as the parameter, got this code from the
above mentioned. Please help me in this regard.
public static native void trackGoogleAnalytics(String title) /*-{
try {
// setup tracking object with account
var pageTracker = $wnd._gat._getTracker(UA-22115116-1);
pageTracker._setRemoteServerMode();
// turn on anchor observing
pageTracker._setAllowAnchor(true)
// send event to google server
pageTracker._trackPageview(title);
} catch(err) {
// debug
alert('FAILURE: to send in event to google analytics: ' + err);
}
--
Thanks and regards,
Raghavan.K.L
http://shareyourware.blogspot.com/
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.