From: Giuseppe Bilotta Date: Sun, 10 Apr 2011 20:14:20 +0000 (+0200) Subject: Google Analytics support X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2eaf8e810822b81b3f6b9f04b5a9ef791dec10b7;p=ikiwiki.git Google Analytics support --- diff --git a/doc/todo/Google_Analytics_support.mdwn b/doc/todo/Google_Analytics_support.mdwn new file mode 100644 index 000000000..c36265bff --- /dev/null +++ b/doc/todo/Google_Analytics_support.mdwn @@ -0,0 +1,14 @@ +[[!template id=gitbranch branch=GiuseppeBilotta/google-analytics +author="[[GiuseppeBilotta]]"]] + +I've extended the google plugin to add support for Google Analytics. +This is done in two steps: + +* a `google_sitesearch` config option is introduced, to allow disabling + sitesearch even when the `google` plugin is loaded +* a `google_analytics_account` config option is introduced. When it's + defined, its value is assumed to be a Google Analytics account ID + and the corresponding JavaScript code is automatically inserted in all + documents. The way this is done is shamelessy stolen from the flattr + plugin +