Re: Google Analytics and Wicket Dynamic Urls
Yeah if they somehow can be related to a person.. So if you are to use such statistics you have to obfuscate data to make certain that it's not possible who (a named person) did what. I guess it's not directly target against the web, but a general law.. But enough of our weird rules :) [1] http://www.datatilsynet.dk/ 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: You have laws against collecting statistics about website usage? ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: Ahh I understand.. Never crossed my mind, as I think we laws against that in denmark (where I am living).. 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: No. I do not want to omit. I want to track stateful content. ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: So on your pages that do not contain stateless content just omit the ga js..? Should be simple and work, although depending on your architecture.. 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hmm... my problem was how to track not how to omit tracking ... ;] ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: why not just omit the analytics js on the pages that you do not want track of? 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! We would like to use google analytics to track how users use our site. This means that the url should contain some information about on which page the user is on and furthermore google should be taught to ignore some of the redundant dynamic part like wicket:interface=:1 which does not make any sense. Has someone done this successfully, any pointers? Actually my situation is similar to http://osdir.com/ml/users/2010-04/msg07754.html and I also want to track how users tackle our wizards steps. Did anybody try trackPageview method? http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=27c37c44122a95dchl=en http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55485 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Google Analytics and Wicket Dynamic Urls
Hi! We would like to use google analytics to track how users use our site. This means that the url should contain some information about on which page the user is on and furthermore google should be taught to ignore some of the redundant dynamic part like wicket:interface=:1 which does not make any sense. Has someone done this successfully, any pointers? Actually my situation is similar to http://osdir.com/ml/users/2010-04/msg07754.html and I also want to track how users tackle our wizards steps. Did anybody try trackPageview method? http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=27c37c44122a95dchl=en http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55485 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket Dynamic Urls
why not just omit the analytics js on the pages that you do not want track of? 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! We would like to use google analytics to track how users use our site. This means that the url should contain some information about on which page the user is on and furthermore google should be taught to ignore some of the redundant dynamic part like wicket:interface=:1 which does not make any sense. Has someone done this successfully, any pointers? Actually my situation is similar to http://osdir.com/ml/users/2010-04/msg07754.html and I also want to track how users tackle our wizards steps. Did anybody try trackPageview method? http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=27c37c44122a95dchl=en http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55485 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket Dynamic Urls
Hmm... my problem was how to track not how to omit tracking ... ;] ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: why not just omit the analytics js on the pages that you do not want track of? 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! We would like to use google analytics to track how users use our site. This means that the url should contain some information about on which page the user is on and furthermore google should be taught to ignore some of the redundant dynamic part like wicket:interface=:1 which does not make any sense. Has someone done this successfully, any pointers? Actually my situation is similar to http://osdir.com/ml/users/2010-04/msg07754.html and I also want to track how users tackle our wizards steps. Did anybody try trackPageview method? http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=27c37c44122a95dchl=en http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55485 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket Dynamic Urls
So on your pages that do not contain stateless content just omit the ga js..? Should be simple and work, although depending on your architecture.. 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hmm... my problem was how to track not how to omit tracking ... ;] ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: why not just omit the analytics js on the pages that you do not want track of? 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! We would like to use google analytics to track how users use our site. This means that the url should contain some information about on which page the user is on and furthermore google should be taught to ignore some of the redundant dynamic part like wicket:interface=:1 which does not make any sense. Has someone done this successfully, any pointers? Actually my situation is similar to http://osdir.com/ml/users/2010-04/msg07754.html and I also want to track how users tackle our wizards steps. Did anybody try trackPageview method? http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=27c37c44122a95dchl=en http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55485 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket Dynamic Urls
No. I do not want to omit. I want to track stateful content. ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: So on your pages that do not contain stateless content just omit the ga js..? Should be simple and work, although depending on your architecture.. 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hmm... my problem was how to track not how to omit tracking ... ;] ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: why not just omit the analytics js on the pages that you do not want track of? 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! We would like to use google analytics to track how users use our site. This means that the url should contain some information about on which page the user is on and furthermore google should be taught to ignore some of the redundant dynamic part like wicket:interface=:1 which does not make any sense. Has someone done this successfully, any pointers? Actually my situation is similar to http://osdir.com/ml/users/2010-04/msg07754.html and I also want to track how users tackle our wizards steps. Did anybody try trackPageview method? http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=27c37c44122a95dchl=en http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55485 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket Dynamic Urls
I've been in the same situation, and decided against GA and in favour of my own implementation. Main reason is that GA is problematic in the EU due to privacy concerns. Nevertheless, whether you implement your own tracker or use GA, you need to come up with semantics of stateful content. So if the user clicks some link, you need to communicate the meaning of the target page to the tracker - I do not think you can bypass that, in the context of AJAX and stateful pages. I think you can use GA's API: http://code.google.com/apis/analytics/docs/gaJS/gaJSApi.html (Because of the privacy concerns I've not looked into it - there will be an issue of adding the required Javascript, I've built a footer contributor framework for a similar situation, if you are interested, I can give you info, but it is quite easy to do this...) Quoting Martin Makundi martin.maku...@koodaripalvelut.com: No. I do not want to omit. I want to track stateful content. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket Dynamic Urls
What our team did was write a behavior for tracking wicket component rendering ajax behaviour execution which could be used to track wizard actions... On Sat, May 22, 2010 at 10:33 AM, M. Hammer nab...@hammer-tour.com wrote: I've been in the same situation, and decided against GA and in favour of my own implementation. Main reason is that GA is problematic in the EU due to privacy concerns. Nevertheless, whether you implement your own tracker or use GA, you need to come up with semantics of stateful content. So if the user clicks some link, you need to communicate the meaning of the target page to the tracker - I do not think you can bypass that, in the context of AJAX and stateful pages. I think you can use GA's API: http://code.google.com/apis/analytics/docs/gaJS/gaJSApi.html (Because of the privacy concerns I've not looked into it - there will be an issue of adding the required Javascript, I've built a footer contributor framework for a similar situation, if you are interested, I can give you info, but it is quite easy to do this...) Quoting Martin Makundi martin.maku...@koodaripalvelut.com: No. I do not want to omit. I want to track stateful content. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Rodolfo Hansen CTO, KindleIT Software Development Email: rhan...@kitsd.com Mobile: +1 (809) 860-6669
Re: Google Analytics and Wicket Dynamic Urls
Ahh I understand.. Never crossed my mind, as I think we laws against that in denmark (where I am living).. 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: No. I do not want to omit. I want to track stateful content. ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: So on your pages that do not contain stateless content just omit the ga js..? Should be simple and work, although depending on your architecture.. 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hmm... my problem was how to track not how to omit tracking ... ;] ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: why not just omit the analytics js on the pages that you do not want track of? 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! We would like to use google analytics to track how users use our site. This means that the url should contain some information about on which page the user is on and furthermore google should be taught to ignore some of the redundant dynamic part like wicket:interface=:1 which does not make any sense. Has someone done this successfully, any pointers? Actually my situation is similar to http://osdir.com/ml/users/2010-04/msg07754.html and I also want to track how users tackle our wizards steps. Did anybody try trackPageview method? http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=27c37c44122a95dchl=en http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55485 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket Dynamic Urls
You have laws against collecting statistics about website usage? ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: Ahh I understand.. Never crossed my mind, as I think we laws against that in denmark (where I am living).. 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: No. I do not want to omit. I want to track stateful content. ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: So on your pages that do not contain stateless content just omit the ga js..? Should be simple and work, although depending on your architecture.. 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hmm... my problem was how to track not how to omit tracking ... ;] ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: why not just omit the analytics js on the pages that you do not want track of? 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! We would like to use google analytics to track how users use our site. This means that the url should contain some information about on which page the user is on and furthermore google should be taught to ignore some of the redundant dynamic part like wicket:interface=:1 which does not make any sense. Has someone done this successfully, any pointers? Actually my situation is similar to http://osdir.com/ml/users/2010-04/msg07754.html and I also want to track how users tackle our wizards steps. Did anybody try trackPageview method? http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=27c37c44122a95dchl=en http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55485 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket Dynamic Urls
We are using google analytics with wicket on our site (the asynchronous model), and explicitly specify the page URL by passing a parameter to _trackPageView. See http://www.rixty.com. That way we can track a logical view of the site hierarchy, and don't have to worry about the page parameters. On May 22, 2010, at 10:52 AM, nino martinez wael wrote: Ahh I understand.. Never crossed my mind, as I think we laws against that in denmark (where I am living).. 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: No. I do not want to omit. I want to track stateful content. ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: So on your pages that do not contain stateless content just omit the ga js..? Should be simple and work, although depending on your architecture.. 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hmm... my problem was how to track not how to omit tracking ... ;] ** Martin 2010/5/22 nino martinez wael nino.martinez.w...@gmail.com: why not just omit the analytics js on the pages that you do not want track of? 2010/5/22 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! We would like to use google analytics to track how users use our site. This means that the url should contain some information about on which page the user is on and furthermore google should be taught to ignore some of the redundant dynamic part like wicket:interface=:1 which does not make any sense. Has someone done this successfully, any pointers? Actually my situation is similar to http://osdir.com/ml/users/2010-04/msg07754.html and I also want to track how users tackle our wizards steps. Did anybody try trackPageview method? http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=27c37c44122a95dchl=en http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55485 ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket
Hello, sorry I've taken so long to write again. The solution suggested by Janos Cserep using the line target.appendJavaScript(pageTracker._trackPageview(' + panel trackCode + ');); worked! Thanks to all for you ideas :) On Sun, Apr 19, 2009 at 7:42 AM, James Carman jcar...@carmanconsulting.comwrote: 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 nino.martinez.w...@gmail.com 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 marian...@gmail.com: 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 nino.martinez.w...@gmail.com 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 marian...@gmail.com: 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=enanswer=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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Ing. Mariana Bustamante Integra Consultores
Re: Google Analytics and Wicket
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 marian...@gmail.com: 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 nino.martinez.w...@gmail.com 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 marian...@gmail.com: 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=enanswer=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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket
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 nino.martinez.w...@gmail.com 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 marian...@gmail.com: 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 nino.martinez.w...@gmail.com 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 marian...@gmail.com: 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=enanswer=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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Google Analytics and Wicket
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=enanswer=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
Re: Google Analytics and Wicket
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 marian...@gmail.com: 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=enanswer=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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket
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 nino.martinez.w...@gmail.com 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 marian...@gmail.com: 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=enanswer=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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Analytics and Wicket
I'm not sure its going to work like that because as far as the browser is concerned (where google analytics runs) it's one seamless page. in other words your panels are only separate as a means to easy development and maintenance but not as visible http requests. That would be true of pretty much *any* ajax application, which really only has one (or a few) pages. - Brill Pappin On 18-Apr-09, at 5:57 PM, Mariana Bustamante wrote: 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 nino.martinez.w...@gmail.com 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 marian...@gmail.com: 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=enanswer=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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME cryptographic signature
Re: Google Analytics and Wicket
Hi Mariana, Yes, with __trackPageview you can pretty much achieve what you want to do. In your menu component you probably change the panels by instantiating and replacing a main panel inside your page, right? If yes, do something like this: public void onClick(AjaxRequestTarget target) { // ... replace, etc target.appendJavaScript(pageTracker._trackPageview(' + panel trackCode + ');); } AjaxRequestTarget.appendJavaScript gets evaluated by the browser at the end of the AJAX call. Hope this helps, Janos On Fri, Apr 17, 2009 at 11:53 PM, Mariana Bustamante marian...@gmail.comwrote: 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=enanswer=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