Added google analytics and added command id to the save function