Topic: Google analytics.
Just for explanation for new users:
Documentation, You can found here: http://www.simpleviewer.net/simpleviewe … l#tracking is slightly outdated, because it shows old synchronous google snippet which break loading the page until google servers answers.
Since December 2009 google recomend async snippet which is better and diffrent that previous one. Below most important parts (even if You aren't web dev, it will be easy to change the code from example:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']); // PUT YOUR ID HERE
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
//TRACK AN IMAGE VIEW
function svImageChange(imgIndex) {
var hrefArray = window.location.pathname.split( '/' );
try {
_gaq.push(['_trackEvent', 'SimpleViewer', 'Image_View', hrefArray[1]+'/'+imgIndex+1]);
} catch (err) {}
}
Hope this helps.