analytics code for availability
mergeherge branch 'master' of https://github.com/pyvandenbussche/sparqles
updated and tested