Firstly, many thanks to everyone who replied to my query both on the list and directly to me.
I thought I’d let you know how I got Google Analytics working with Vufind.
As suggested, the file to be edited is layout.tpl under the theme you are using.
I added the following <script/> tag to the end of the <script/> tags in the </head>
Obviously you would need to use your own account id for Google.
Once again, many thanks to those of you who took the trouble to reply.
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,
On 29 November 2010 12:19, Andy Latham <firstname.lastname@example.org> wrote:
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.
Many thanks in advance for any help you might be able to provide.
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.
VuFind-General mailing list