title: javascript analytics (send variables to php)
body: <p>what does this code do?</p>
  
  <p>( i'm trying to build a web app analytics system, it must send javascript variables too php and then, php add variables to database ...
  its a sample code that do this procces. I would like to "know that this code how sends javascript variables to php?" )</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>(function() {var no=0;var rand=Math.round(Math.random()*50000);var ref = escape(document.referrer) ; var u=(("https:" == document.location.protocol) ? "https" : "http") + "://analyticstest.com/rx/?xmain2/statsave/9101/50d77b1jkfd24c5db5ef36b22ed8a";
   u = u + "&amp;height=" + screen.height + '&amp;width=' + screen.width +'&amp;now=12552222091&amp;phprand=56bf3sdkjnf220912528&amp;rand='+rand+ '&amp;title=1'  ;
   u = u + "&amp;ref="+ref;
   document.write ("&lt;iframe scrolling=no  frameborder=0 allowtransparency='true' src='"+u+"' border=0 width='0' height='0' style=' display:none;visibility:hidden'&gt;&lt;/iframe&gt;");</code></pre>
  </div>
  </div>
  </p>