TPac: move google analytics import to head user/berick/tpac-goog-analytics-to-head
authorBill Erickson <berick@esilibrary.com>
Wed, 28 Sep 2011 21:23:13 +0000 (17:23 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 28 Sep 2011 21:23:13 +0000 (17:23 -0400)
commit183ab493526c556d38a672aa980a4a4cdc662d1c
tree6c391c15f0bd5901291f6c5ce9e3b5b7560b3f13
parenta1ca1de82d94bfccb695194944b63f5220f1cb81
TPac: move google analytics import to head

Google Analytics documention recommends loading the JS in the page
<head>.

http://www.google.com/support/googleanalytics/bin/answer.py?answer=174090

Use as directed by default.

Also, moved the JS loading chunk to its own template to ease override by
those who do not wish to use as directed.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/opac/parts/base.tt2
Open-ILS/src/templates/opac/parts/goog_analytics.tt2 [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/js.tt2