Add settings for enabling or disabling analytics together with a versioned preference. Add some code to configure analytics on settings import.