====== Google Analytics for DokuWiki ====== ===== License ===== * **Author:** [[mailto:tjgrant@tatewake.com|Terence J. Grant]] * **License:** [[http://opensource.org/licenses/GPL-2.0|GNU GPL v2]] * **Last Update:** 2008-06-27 * **Donate:** [[:donate|Your donations are appreciated!]] It's not required, but please consider linking to [[:projects:google_analytics_for_dokuwiki|this page]] or the main page from your site if you like this product. ===== Download ===== Before downloading or using this product, make sure you __**understand and accept**__ the terms of the [[#license]]. After downloading, make sure to follow the [[#install]] instructions or [[#upgrading]] instructions below. * This is the latest version, compatible with **the current DokuWiki**: * Latest Version: [[https://github.com/tatewake/dokuwiki-plugin-googleanalytics|Version 2008-06-27 on GitHub]] ===== About ===== This tool allows you to set a code for use with [[wp>Google_Analytics|Google Analytics]], which allows you to track your visitors. The plugin also exports a function for use with your template, so you will have to insert the following code into your template (**main.php**), somewhere inside of the '''' tags. **Note**: Inserting the code above is **required**, not optional. **Template Authors Note**: You can insert the above code and make your template "Google Analytics Ready", even if your users do not use Google Analytics (or have this plugin.) ===== Install ===== As a plugin all you need to do is unpack the file into the lib/plugins/ directory (you should end up with a lib/plugins/googleanalytics folder.) ===== Upgrading ===== To upgrade, remove the original lib/plugins/googleanalytics folder, and install the new version as instructed above. You may wish to make a note of your google analytics code first though. ===== What's New ===== **June 27, 2008** * Fixed bug with tracking code * Added better check for admin users (removed old 'superuser' check) Thanks to [[mailto:david@ordal.com|David Ordal]] for these fixes. **June 10, 2008** * Updated to use the new Javascript library for Google Analytics. Thanks to Geoff W. and RJS for the contribution. **March 11, 2007** * Fixed minor bug for ''is_writable'', thanks to [[mailto:bernd@bzed.de|bernd [at] bzed [dot] de]] **February 23, 2007** * HTTPS support by [[mailto:matjaz.slak@atol.si|Matjaz Slak]] **February 15, 2007** * Arabic translation, thanks to [[mailto:hali83@cec.sy|M. Bashir Al-Noimi]] for this. **August 20, 2006** * Initial release