title: Writing a Google Analytics-like Javascript code to capture current URL and send it back to a server
body: <p>I would like to give out js code for people to put on their site. Once the code is on their site, I would like to capture the url of the current page. How can I do this ?</p>
  
  <p>For example, I would like to mimic the google Adwords model but I will not be serving ads.</p>
  
  <p>I just want to capture the url's of the pages in which my code is being used.</p>