Adding analytics stuff