I think the idea is that they're not switching pages, but switching panels. They'd like each panel to show up as a unique page with its own id?
On Sat, Apr 18, 2009 at 4:14 AM, nino martinez wael <[email protected]> wrote: > Hmm why are that approach requiring more changes than this other? This > just involves that you change extend webpage to mybasepage, and then > drop the few lines of js in the markup of the mybasepage... > > 2009/4/18 Mariana Bustamante <[email protected]>: >> Is there any other method that doesn't mean many changes in my application?? >> Everything is already working fine and adding Google Analytics was supposed >> to be one the final details.. >> >> I was thinking of something like adding the javascript manually into my >> panels, I tried this on the panel to test it but it didn't work: >> >> border.add(new AjaxEventBehavior("onload"){ >> �...@override >> protected void onEvent(AjaxRequestTarget target) { >> if(!tracked){ >> String jsGoogle = "if >> (http_request.readyState == 4) { if (http_request.status == 200) { >> alert(http_request.responseText); >> pageTracker._trackPageview('"+GOOGLE_NAME+"' ); } else { alert('Error.'); "; >> >> target.addComponent(border); >> >> target.appendJavascript(jsGoogle); >> tracked = true; >> } >> } >> >> }); >> >> any more ideas? >> >> Thanks in advance, >> >> Mariana >> >> On Sat, Apr 18, 2009 at 5:28 PM, nino martinez wael < >> [email protected]> wrote: >> >>> If you use markup inheritance just drop it in the parent page.. And >>> there you go.. :) If not.. Well this is a good reason to start :) >>> Works like a snug for my applications >>> >>> 2009/4/17 Mariana Bustamante <[email protected]>: >>> > Hello, >>> > >>> > I'm trying to use Google Analytics with my web application made using >>> > Wicket. The layout of my application is like this: >>> > >>> > I have a global plage called "homePage" that contains some panels inside. >>> > One of the panels is a menu which is completely made in java code using >>> > Wicket, the other important panel is the content panel that changes to a >>> > different panel with Ajax every time a user clicks a button on the menu. >>> > >>> > I tried placing the Google Analytics script at the bottom of the homePage >>> > but, as expected, in the generated report I can only see this page. >>> However, >>> > I need to be able to view every panel as a different page. >>> > >>> > There is a link in the google analytics suppport page that seems like >>> what >>> > I'm looking for ( >>> > >>> http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55519 >>> ) >>> > but I can't see where to put the code they give since the links in my >>> menu >>> > are generated by Wicket in java code and not in html. >>> > >>> > I would really appreciate any help to solve this problem, >>> > >>> > Thanks in advance, >>> > >>> > Mariana >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
