[OPEN-ILS-GENERAL] Open-ils-general Digest, Vol 105, Issue 54

Jeff Davis jdavis at sitka.bclibraries.ca
Wed Apr 1 12:39:00 EDT 2015


On 1 Apr 2015 13:20:31 +0000, Deana Cunningham asked:
> We use Google analytics on our website but I am curious as to how
> you use it within the OPAC. Can you elaborate or put me in touch
> with someone who could talk me through installing it there?

Google Analytics integration is built into the Evergreen TPAC.  Once
you've set up an account at http://www.google.com/analytics/, you just
need to edit the config.tt2 file in your TPAC, changing the
google_analytics.enabled setting to 'true' and google_analytics.code
to a valid Google Analytics code.  I assume you can use your existing
GA account and have separate codes for your website and your TPAC, but
I'm not sure of the specifics there.

That said, I agree with Rogan that there are some serious privacy
concerns around Google Analytics (and in our case, using it might
actually run afoul of provincial privacy legislation).  Instead, we
use a locally-hosted installation of Piwik.

To enable Piwik tracking in our TPAC, we just added some extra
Javascript to the TT2 file that contains Google Analytics code, as
seen here:

http://git.sitka.bclibraries.ca/gitweb/?p=sitka/evergreen.git;a=commitdiff;h=6eb7290

This is customized for our environment, but something similar should
work for other libraries that want to run their own Piwik instance.
-- 
Jeff Davis
Lead Evergreen Specialist
BC Libraries Cooperative


More information about the Open-ils-general mailing list