Added support for analytics logging in application.