All you need is a snippet of javascript code to track the information you want. Your code will look something like this:
<script type="text/java script"> _utmSetVar('nameofvariable');</script>
In this script, you are using the _utmSetVar code to name the variable that you want to track. What you see inisde the parentheses and single quotation marks is what you choose.
For example, let's segment and track visitors by job title. When your form asks your users to submit their job function, you should have the above code for each job title that you allow as a choice in the form. This way Google will know to track the variables independently.
You can also track visitors by the links they click with a code that looks something like this:
<a href=”link.html” onClick=”_utmSetVar(‘nameofvariable);>Click here</a>
A third option is to track visitors by the pages they visit in a certain section, with a code that look something like this:
<body onLoad=”javascript:_utmSetVar(‘'nameofsitesectionvariable’)”>