[#382] - added small check to ensure we log events if the user has opt-in
[#382] - added small check to ensure we log events if the user has opt-in

don/phonegap-app-developer,don/phonegap-app-developer,don/phonegap-app-developer,don/phonegap-app-developer