Re: T5: Include Google Analytics Code

2009-07-29 Thread moritzgilsdorf
You're right. I found the problem yesterday evening and it is a rather stupid one. I just hat a linefeed in the javascript code. I thought javascript would be more tolerant against such things. Thanks to all for the suggestions. Fernando Padilla wrote: > > The google code doesn't HAVE to

Re: T5: Include Google Analytics Code

2009-07-28 Thread Thiago H. de Paula Figueiredo
Em Tue, 28 Jul 2009 11:45:10 -0300, Fernando Padilla escreveu: The google code doesn't HAVE to be the last thing on the page. It will work anywhere on the page. You can bring in the js file normally through tapestry's addScriptLink (or IncludeJavascript annotation), and then add the go

Re: T5: Include Google Analytics Code

2009-07-28 Thread Fernando Padilla
The google code doesn't HAVE to be the last thing on the page. It will work anywhere on the page. You can bring in the js file normally through tapestry's addScriptLink (or IncludeJavascript annotation), and then add the google code through addScript.. it would be something like below, but y

Re: T5: Include Google Analytics Code

2009-07-28 Thread Jérôme BERNARD
Eventually this might help. Add in your module class: public void contributeMarkupRenderer(OrderedConfiguration configuration, @Symbol(value = "tapestry.production-mode") boolean productionMode, @Path(value = "${tapes

Re: T5: Include Google Analytics Code

2009-07-28 Thread moritzgilsdorf
I tried it but it still inserts the tapestry-code after the GA code and before the tag. Any other suggestions? Harald Geritzer wrote: > > > hello, > > i wrote some custom component for one of my projects. it's included just > before the closing body tag. > > > ... >

Re: T5: Include Google Analytics Code

2009-07-28 Thread Harald Geritzer
hello, i wrote some custom component for one of my projects. it's included just before the closing body tag. ... GoogleTracker.java == public class GoogleTracker { @Paramter private String trackerId;

Re: T5: Include Google Analytics Code

2009-07-28 Thread moritzgilsdorf
Thanks, but that didn't solved the problem. The Google Analytics instructions say that I have to insert the tracking code "...immediately before the tag of each page you are planning to track". So the problem is simply that Tapestry is inserting his Script as the last script before the tag. I

Re: T5: Include Google Analytics Code

2009-07-03 Thread Sergey Didenko
May be it's related to these javascript bugs: http://www.nabble.com/-T5.1.0.5--%27Tapestry%27-is-undefined-JavaScript-error-on-form-submit-tp23834056p23839494.html "TAP-712: Form component: javascript error in IE when submitting form" - Strange, I can't find this discussion on nabble, the summary

T5: Include Google Analytics Code

2009-07-03 Thread moritzgilsdorf
Hi, I have a problem with using Google Analytics in my project. I've added the GA scripts in my Layout.tml just before the closing body tag. When rendering the Page, Tapestry inserts between the GA scripts and the the following code: