title: Add string to url on page load with jQuery?
body: <p>I'm trying to add this specific string to the end of my url on page load:</p>
  
  <p>?aa_campaign=f45632</p>
  
  <p>(<a href="http://examplesite.com/test.html" rel="noreferrer">http://examplesite.com/test.html</a>)</p>
  
  <p>It's for marketing and tracking. </p>
  
  <p>I've tried this:</p>
  
  <pre><code>if window.location.href.indexOf("http://examplesite.com/test.html") {
    window.location = "http://examplesite.com/test.html?aa_campaign=f45632";
  }
  </code></pre>
  
  <p>That straight up didn't work but the idea is what I'm looking for. Any thoughts?</p>