title: How to set up Google Analytics goal tracking of a contact form with no separate thank you page?
body: <p>How do I set Google Analytics up to track visitors to my website who have submitted a contact form, that doesn't have a separate thank-you url?</p>
  
  <p>Ive seen the code posted around blogs and GA help forums but so far have yet to come across how would I actually set the goal up in order to insert the snippet of code.</p>
  
  <p>Code found on forums and such:</p>
  
  <pre><code>onsubmit="pageTracker._trackPageview('/Goa1-Button'); pageTracker._trackEvent('Goals','CLick-Button');"
  </code></pre>
  
  <p>Specifically, I would like to know things such as:</p>
  
  <ul>
  <li>What goal type would I use?</li>
  <li>If i named the campaign Contact form completions, where would it go and fit in to the code above? </li>
  <li>Is the code above right and will it help me? </li>
  </ul>
  
  <p>Any other advice, any one ever had to do this before?</p>