Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>No you can't get the raw logs, but there's nothing stopping you from getting the exact same data logged to your own web server logs. Have a look at the <a href="https://ssl.google-analytics.com/urchin.js" rel="noreferrer">Urchin code</a> and borrow that, changing the following two lines to point to your web server instead.</p> <pre><code>var _ugifpath2="http://www.google-analytics.com/__utm.gif"; if (_udl.protocol=="https:") _ugifpath2="https://ssl.google-analytics.com/__utm.gif"; </code></pre> <p>You'll want to create a <code>__utm.gif</code> file so that they don't show up in the logs as 404s.</p> <p>Obviously you'll need to parse the variables out of the hits into your web server logs. The log line in Apache looks something like this. You'll have lots of "fun" parsing out all the various stuff you want from that, but everything Google Analytics gets from the basic JavaScript tagging comes in like this.</p> <pre><code>127.0.0.1 - - [02/Oct/2008:10:17:18 +1000] "GET /__utm.gif?utmwv=1.3&amp;utmn=172543292&amp;utmcs=ISO-8859-1&amp;utmsr=1280x1024&amp;utmsc=32-bit&amp;utmul=en-us&amp;utmje=1&amp;utmfl=9.0%20%20r124&amp;utmdt=My%20Web%20Page&amp;utmhn=www.mydomain.com&amp;utmhid=979599568&amp;utmr=-&amp;utmp=/urlgoeshere/&amp;utmac=UA-1715941-2&amp;utmcc=__utma%3D113887236.511203954.1220404968.1222846275.1222906638.33%3B%2B__utmz%3D113887236.1222393496.27.2.utmccn%3D(organic)%7Cutmcsr%3Dgoogle%7Cutmctr%3Dsapphire%2Btechnologies%2Bsite%253Arumble.net%7Cutmcmd%3Dorganic%3B%2B HTTP/1.0" 200 35 "http://www.mydomain.com/urlgoeshere/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/0.2.153.1 Safari/525.19" </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload