Hi,
I'm not sure what Google currently recommend regarding where to place the snippet - it used to be before the closing </body> tag but the last time I set up an analytics profile, the recommendation was to place it before the closing </head> tag. I think there are more sophistocated setups which split the snippet too.

In any case, as regards vufind files, you'll probably only need to edit /web/interface/themes/[theme-name]/layout.tpl (where [theme-name] = classic, defaual, etc). All other templates use this file as a base & it contains the <html />, <head /> and <body /> elements. If you're enabling the mobile theme, you should add the snippet to its layout.tpl too (ie. /web/interface/themes/mobile/layout.tpl).

Hope this helps,
Eoghan


On 29 November 2010 12:19, Andy Latham <andy.latham@gmail.com> wrote:
Hi everyone,

I'm new to Vufind, so apologies for the "new boy" question :)

I've just got Vufind up and running with our (small) library catalogue and would like to integrate Google Analytics.

I was wondering if anyone could recommend a good place to insert the Google Analytics JavaScript snippet in the Vufind code and/or templates?

Many thanks in advance for any help you might be able to provide.

Best wishes

-Andy

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
VuFind-General mailing list
VuFind-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vufind-general