The new Google Analytics Features gives you to track multipleÂ sub domains.Like shown below example.
To use this feature just login to your Google Analytics accounts and find your Tracking code. On the standard Tracking code, select the option of one domain with multiple sub domains as shown below.
Copy paste the code in to your site . Thats all