PKP Bugzilla – Bug 2900
Add Google Analytics plugin
Last modified: 2008-06-27 13:33:43 PDT
Add Google Analytics plugin to insert code into page headers.
This should be implemented as a generic plugin that is able to add code snippets to the headers. That way, it could support a number of different tracking apps, e.g. phpMyVisites, Google Analytics, etc.
It would be nice to allow JMs to drop an icon into the sidebar, but that might be suitable for another plugin, as I could see additional static sidebar content being a valuable general feature.
The $additionalHeadData Smarty template variable is suitable for this, except that it's missing from templates/help/header.tpl and needs to be added.
An update based on our additional discussions:
- Provide a generic mechanism for adding custom HTML using the existing features in Setup, Step 5, Custom Footer. This requires that the custom footer be extended to articles (Bug #2905).
- Implement the Google Analytics plugin as an easy-to-use, custom plugin.
- The plugin should work on a per-journal basis, as opposed to on a per-site basis.
Created attachment 804 [details]
Patch against OCS pre-2.1.1 CVS
Back-ported to OCS.