fix analytics tracking
fix some legacy commands in doc