1 [[!template id=gitbranch branch=GiuseppeBilotta/google-analytics
2 author="[[GiuseppeBilotta]]"]]
4 I've extended the google plugin to add support for Google Analytics.
5 This is done in two steps:
7 * a `google_sitesearch` config option is introduced, to allow disabling
8 sitesearch even when the `google` plugin is loaded
9 * a `google_analytics_account` config option is introduced. When it's
10 defined, its value is assumed to be a Google Analytics account ID
11 and the corresponding JavaScript code is automatically inserted in all
12 documents. The way this is done is shamelessy stolen from the flattr
15 > Putting this in the google plugin does not seem to be a good approach.
16 > That this "functionality" is offered by the same company as google search
17 > is really of no consequence.
19 > Also, can't this be easily accomplished by editing page.tmpl? --[[Joey]]