Creating the environments
The first thing we need to do is to ensure we have a Google Analytics property for each environment we want to work with. Properties are displayed in the middle column when you are in administrator mode on Google Analytics, and the second click if you are changing between accounts on the top dropdown.
You will likely already have one property for your live environment and, hopefully, this is going to be under your own top-level account, allowing you to create more. All we need to do is set up the additional properties for your development and demo areas (and any other environments you need to use).
How to add new properties
Log into Analytics and open up your account. Click on 'Admin' at the bottom of the left menu, and you will see three columns. Making sure that the account under which you wish to create the additional properties is selected in the first column, click into the top of the second column and you will see the option to create a new property. If you do not see this option, it is likely that you do not have high enough permissions. Click on 'Users' and check to see whether you need to elevate your permissions.
Simply fill out the form and enter the environment URL in the relevant field - e.g. dev.mysite.com. This will create a new property and will present you with a new tracking ID on completion. Make a note of all the tracking ID's as you will need them later.
Repeat this process as many times as you need, until you have created all the profiles you will require.