Adding analytics