better analytics logging