move analytics dependency on rails to active_support