added analytics to measure the user's response to the preference dialogs.