GA tracks pages. Ajax sites have only one page therefore you only get one hit. Changing the bookmark changes your place on a page, therefore it doesn't count as a page-change. Furthermore, the server doesn't get notified of bookmark changes (since there is no page request) and therefore doesn't log a hit. Even more than that, the server doesn't ever get sent the bookmark, so there is no way for it to do *anything* with it even if it *did* get notified and could discriminate between http://example.com/#xxx being a GWT history token which indicates a hit and http://example.com/#yyy which isn't, and http://example.com/#zzz which is from a GWT app but isn't being used for history.
Short of being psychic, there's not a lot GA can do AFAICT Ian http://examples.roughian.com 2009/7/31 Donovan Jimenez <[email protected]> > > What I'd like to see is analytics support for tracking the "history" > token in page tracks we submit. > > Its annoying to use GWT's history support but then find that Google > Analytics won't let you track dynamic pages of that form. Transforming > the URLs into a form that GA will accept is the workaround, but > without adding extra URL parsing on the server side those links are > not "clickable" from GA. > > I submitted a request to analytics months ago and got no response. > Does anyone else see that as useful? > > On Jul 30, 12:06 pm, Carver <[email protected]> wrote: > > To use Google Analytics in GWT, we set up a couple methods like this: > > > > public static native void runGoogleAnalytics() /*-{ > > try { > > $wnd.gaTrack = $wnd._gat._getTracker("UA-XXXXXX-X"); > > $wnd.gaTrack._setDomainName(".slique.com"); > > $wnd.gaTrack._trackPageview(); > > } catch(err) {} > > }-*/; > > public static native void runGoogleAnalytics(String pageName) > /*-{ > > try { > > $wnd.gaTrack._trackPageview(pageName); > > } catch(err) {} > > }-*/; > > > > We call runGoogleAnalytics() in onModuleLoad, and then > > runGoogleAnalytics("/gwt/ministry/of/silly/walks") wherever we want to > > track a new page. I hear that GA "Events" are the right way to do > > this, but this has gotten us started. > > > > Note: the setDomainName call is only necessary for us because we use > > the same GA account to track all subdomains on our site. > > > > Does that help? > > > > ~Carverhttp://slique.com- builds group memory by putting all your group's > > email, files and documents in one place > > I'm not being curt, I'm just usinghttp://five.sentenc.es/ > > > > On Jul 30, 11:25 am, makoki <[email protected]> wrote: > > > > > > > > > Yes, right, we're trying to track dynamic pages. Otherwise, as Juraj > > > says, we don't have any problem. > > > On 29 jul, 17:22, Juraj Vitko <[email protected]> wrote: > > > > > > I have not implemented Analytics in GWT yet, but it seems that unless > > > > you want to track dynamic "pages" inside your GWT app, you may just > > > > include the urchin.js script plus the trigger scriptlet (possibly > > > > wrapped in try { } catch) in you host HTML page. > > > > > > On Jul 28, 7:22 pm, makoki <[email protected]> wrote: > > > > > > > We had recently discovered a bug in our application that came out > to > > > > > be a problem with google analytics integration and liked to know if > > > > > someone had any idea for a better way to integrate GA with GWT. > We've > > > > > been using GA in out GWT application for quite a time (nearly a > year) > > > > > without a problem but today we discovered that there's a problem > with > > > > > IE6 and GA when we browse the application through localhost or any > > > > > hostname that hasn't a complete domain (i.e. example.com) so > browsing > > > > > our app throughhttp://localhost/myapporhttp://netbiosname/myapp > > > > > raises the problem otherwise the integration works seamlesly, if we > > > > > use the IP or the public domain. > > > > > We've been tracking down the problem until we found it was the > > > > > _trackEvent(c,v,d,b) method of GA that was causing the problem > (we've > > > > > found it empirically :P) > > > > > We've used this explanation to integrate google analyticshttp:// > code.google.com/p/gwt-examples/wiki/project_UrchinTracker > > > > > > > The ga.js script we downloaded directly from google last november > more > > > > > or less and we're currently using GWT 1.7.0 , all is working fine > > > > > except in the case explained above. > > > > > Any idea what's happening? Any alternative to integrate GA? > > > > > Thks > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
