optimize analytics accuracy