title: JQuery location.href - events tracking
body: <p>I've an offers page with many offers. Client wants to add tracking script to a one particular offer and track clicks on several buttons i.e. "More info", "Share it" and "Buy it".</p>
  
  <p>I want to use the following:</p>
  
  <pre><code>if (window.location.href == "www.ddd.xx/theoffer") {
      if $( "#target" ).click(function() { // run tracking script }
      else if $( "#second_target" ).click(function() { // run another tracking script}
      else if $( "#third_target" ).click(function() { // run another tracking script } };
  </code></pre>
  
  <p>does it look ok?</p>
  
  <p>I will highly appreciate ur help!
  BR,
  Newbie</p>