summaryrefslogtreecommitdiff
path: root/doc/todo/Google_Analytics_support.mdwn
blob: 523d267b14cd2e86d7c74d95fd84f9c306ab7ed3 (plain)

[[!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

Putting this in the google plugin does not seem to be a good approach. That this "functionality" is offered by the same company as google search is really of no consequence.

Also, can't this be easily accomplished by editing page.tmpl? --[[Joey]]