ENH: adding support for analytics

see #3