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