sending full address of google to external page
<p>i use this code for getting referral address .</p>

<pre><code>&lt;script&gt;ducument.wrtie(document.referrer);&lt;/script&gt; 
</code></pre>

<p>and work correct for google and back full url like this :</p>

<pre><code>http://www.google.com/url?sa=t&amp;rct=j&amp;q=%D8%B7%D8%B1%D8%A7%D8%AD%DB%8C%20%D9%85%D8%AC%D9%84%D9%87%20%D8%A7%DB%8C%D9%86%D8%AA%D8%B1%D9%86%D8%AA%DB%8C%20%D8%B1%D8%AF%D8%B2&amp;source=web&amp;cd=4&amp;cad=rja&amp;ved=0CEYQFjAD&amp;url=www.mysite.com/1392/02/%D8%B3%D8%A7%D8%AE%D8%AA-%DA%A9%D9%88%DA%86%DA%A9%D8%AA%D8%B1%DB%8C%D9%86-%D8%B1%D8%A7%DB%8C%D8%A7%D9%86%D9%87-%D9%87%D9%88%D8%B4%D9%85%D9%86%D8%AF-%D8%AF%D9%86%DB%8C%D8%A7-%D8%A8%D8%A7-%D9%86%D8%A7/&amp;ei=NT2KUZLhHsb40gHInoCYDQ&amp;usg=AFQjCNG9PKNl1UBdaLNudIpnmdqCWhQX_A
</code></pre>

<p>but when send to external php page by below code </p>

<pre><code>&lt;script src="mysite.com/ntg.php?token=12948&amp;referrer="+document.referrer&gt;&lt;/script&gt;
</code></pre>

<p>only send this address for all keyword search </p>

<pre><code>http://www.google.com/url?sa=t 
</code></pre>
