title: Get referrer of Google Analytics current pageview
body: <p>in Google Analytics i have to set-up two Google Anlaytics instances (of two different Properties): </p>
  
  <ul>
  <li>the first one is instantiated as usual in whole website (ES: www.example.com/ )</li>
  <li>the second one in a folder of the main domain ( ES: www.example.com/blog/ )</li>
  </ul>
  
  <p>What i have to do is rewriting the referrer of the second instance of Google Analytics reading it from the original referrer of the first instance of Google Analytics.</p>
  
  <p>In this way i can get the original traffic source also in the report of the second property. </p>
  
  <p>Rewriting the referrer of the second instance of Google Analytics is OK , but how can i get the original referrer of the first instance?</p>
  
  <p>Is there some method similar to ga.getReferrer() or ga('get_referrer') ?</p>
  
  <p>Thanks in advance.  </p>