Hm, interesting, on this page:
http://www.google.com/support/analytics/bin/answer.py?hl=en_US&answer=174090&utm_id=ad
they say:
"
Once you find the code snippet, copy and paste it into your web page, *just
before the closing* </head> tag
"

This is why I'm asking... If I just dump it in the head in my base page
html, wicket still puts other script tags after it (default wicket js
libraries for ajax calls).

Wouter


2010/9/12 Martin Grigorov <[email protected]>

> What about using plain javascript to create the new <script> and append it
> in the <head> ?
> This is what GA recommend in their documentation.
>
> see http://code.google.com/chrome/extensions/tut_analytics.html for
> example
>
> On Sun, Sep 12, 2010 at 11:27 AM, Wouter de Vaal <[email protected]>
> wrote:
>
> > This looks like hacking into the output string buffer? That seems a bit
> of
> > a
> > dirty hack to me, that would involve splitting up just before </head> and
> > appending code their.
> >
> > I hope there is a better way than this...
> >
> > Wouter
> >
> > 2010/9/12 Alexander Morozov <[email protected]>
> >
> > >
> > > Hi!
> > >
> > > Have you looked at IResponseFilter ?
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/render-google-analytics-at-end-of-head-tp2536175p2536213.html
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
> >
> > --
> > check out https://www.memolio.com
> >
>



-- 
check out https://www.memolio.com

Reply via email to