[Koha] Embedding google analytics javascript

Owen Leonard oleonard at myacpl.org
Fri Sep 19 00:37:19 NZST 2008


> This requires embedding a small snippet of javascript.
> i know there's a system preference available (System > OPAC > opacuserjs)
> where i can insert the snippet.
> Is that the recommended route?

I think that's probably the best solution. You could also place it in
the opaccredits system pref, which adds a block of HTML to the footer
of OPAC templates. I believe the effect would be the same either way.

Editing opac-main.tmpl would work, but isn't recommended because it's
hard to track template changes when it comes time to upgrade. Adding
the Analytics script to each page of the OPAC (via the above method)
also lets you track each page rather than just the home page.

  -- Owen

-- 
Web Developer
Athens County Public Libraries
http://www.myacpl.org


More information about the Koha mailing list