Add analytics gathering.