title: Not able to capture correct referrer using javascript document.referrer
body: <p>We are trying to capture referrer using javascript code <code>document.referrer</code>. But in some cases we are getting wrong output. </p>
  
  <p>In my case open Google.de and then search for "zalando" and then click on a Paid Search Ad. When I landed on the page it should have actually showed "Google.de" as the referrer but instead it is showing us "zalando.de". Please find attached screenshot for reference.</p>
  
  <p>Hope this is something related to website. But I am a bit curious to know the following things:</p>
  
  <ol>
  <li>Why document.referrer is not working in my case?</li>
  <li>What are the techniques that website owners are following to change the referrer?</li>
  <li>Is there a way to get correct referrer using javascript in above case?</li>
  </ol>
  
  <p>Help would be appreciated :)</p>
  
  <p><img src="https://i.stack.imgur.com/qHnFV.png" alt="enter image description here"></p>