How do I get raw logs from Google Analytics? -
is possible obtain raw logs google analytic? there tool can generate raw logs ga?
no can't raw logs, there's nothing stopping getting exact same data logged own web server logs. have @ urchin code , borrow that, changing following 2 lines point web server instead.
var _ugifpath2="http://www.google-analytics.com/__utm.gif"; if (_udl.protocol=="https:") _ugifpath2="https://ssl.google-analytics.com/__utm.gif";
you'll want create __utm.gif
file don't show in logs 404s.
obviously you'll need parse variables out of hits web server logs. log line in apache looks this. you'll have lots of "fun" parsing out various stuff want that, google analytics gets basic javascript tagging comes in this.
127.0.0.1 - - [02/oct/2008:10:17:18 +1000] "get /__utm.gif?utmwv=1.3&utmn=172543292&utmcs=iso-8859-1&utmsr=1280x1024&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=9.0%20%20r124&utmdt=my%20web%20page&utmhn=www.mydomain.com&utmhid=979599568&utmr=-&utmp=/urlgoeshere/&utmac=ua-1715941-2&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, gecko) chrome/0.2.153.1 safari/525.19"
Comments
Post a Comment