Friday, October 5, 2007

Web Statistics for Gallery2

After you created your gallery, you may be interested in web statistics for your gallery. You can add web statistics to your gallery in less than ten minutes.

First of all, you must register an account in one of web analytics systems, for example Google Analytics.
The second step is to copy the file /gallery2/themes/" your theme name "/templates/theme.tpl to the "local" folder and edit that file there. Gallery will look for that file in the "local" folder first and use it if it exists.
The last step is to insert tracking code at the end of theme.tpl file, before </body> tag. Save the file on the server and that's all.

* If you are using more than one theme, repeat these steps on other themes.

If you are looking for internal Gallery statistics, read Statistics Module for Gallery2.

Learn how to create a web gallery.