<p>Is it possible to obtain raw logs from Google Analytic? Is there any tool that can generate the raw logs from GA?</p>

[{'answer_id': 58756, 'author': 'Matthias Winkelmann', 'author_id': 4494, 'author_profile': 'https://Stackoverflow.com/users/4494', 'pm_score': 2, 'selected': False, 'text': "<p>No. But why don't you just use your webserver's logs? The value of GA is not in the data they collect, but the aggregation/analysis. That's why it's not called Google Raw Data.</p>\n"}, {'answer_id': 68766, 'author': 'Shermozle', 'author_id': 10788, 'author_profile': 'https://Stackoverflow.com/users/10788', 'pm_score': 5, 'selected': True, 'text': '<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>\n\n<pre><code>var _ugifpath2="http://www.google-analytics.com/__utm.gif";\nif (_udl.protocol=="https:") _ugifpath2="https://ssl.google-analytics.com/__utm.gif";\n</code></pre>\n\n<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>\n\n<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>\n\n<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"\n</code></pre>\n'}, {'answer_id': 76948, 'author': 'Adam Hopkinson', 'author_id': 12280, 'author_profile': 'https://Stackoverflow.com/users/12280', 'pm_score': 1, 'selected': False, 'text': '<p>You can get the Analytics data, but it\'ll take a bit of hacking.</p>\n\n<p>In any analytics report, click the \'email\' button at the top of the screen. Set up the email to go to your address (or a new address on your server) and change the format to csv or xml.</p>\n\n<p>Then, you can use php (or another language) to check the email account, parse the email and import the attachment to your system.</p>\n\n<p>There\'s an article entitled \'Incoming mail and PHP\' on evolt.org: <a href="http://evolt.org/incoming_mail_and_php" rel="nofollow noreferrer">http://evolt.org/incoming_mail_and_php</a></p>\n'}, {'answer_id': 641676, 'author': 'MRG', 'author_id': 46281, 'author_profile': 'https://Stackoverflow.com/users/46281', 'pm_score': 2, 'selected': False, 'text': '<p>Please have a look on this article which explains a hack to get Google analytics data.\n<a href="http://blogoscoped.com/archive/2008-01-17-n73.html" rel="nofollow noreferrer">http://blogoscoped.com/archive/2008-01-17-n73.html</a></p>\n\n<p>Also If you can wait for sometime then official Google analytics blog says that they are working on data export api but currently it is in Private Beta.\n<a href="http://analytics.blogspot.com/2008/10/more-enterprise-class-features-added-to.html" rel="nofollow noreferrer">http://analytics.blogspot.com/2008/10/more-enterprise-class-features-added-to.html</a></p>\n'}, {'answer_id': 11332938, 'author': 'Jordan Brough', 'author_id': 58876, 'author_profile': 'https://Stackoverflow.com/users/58876', 'pm_score': 2, 'selected': False, 'text': '<p>Not exactly the same as raw vs aggregated, but it seems that "unsampled" data is only available to Premium accounts:  </p>\n\n<p>"Unsampled Reports are only available in Premium accounts using the latest version of Google Analytics."<br>\n<a href="http://support.google.com/analytics/bin/answer.py?hl=en&amp;answer=2601061" rel="nofollow">http://support.google.com/analytics/bin/answer.py?hl=en&amp;answer=2601061</a></p>\n'}, {'answer_id': 15346499, 'author': 'Kevin Borders', 'author_id': 1676044, 'author_profile': 'https://Stackoverflow.com/users/1676044', 'pm_score': 0, 'selected': False, 'text': '<p>No, but there are other paid services like <a href="https://mixpanel.com/docs/api-documentation/data-export-api" rel="nofollow" title="Mixpanel Data Export API">Mixpanel</a> and <a href="http://support.kissmetrics.com/apis/data/data-export-setup" rel="nofollow" title="KISSmetrics Data Export">KISSmetrics</a> that have data export APIs. Much easier than trying to build your own analytics service, but costs money.</p>\n'}]
['https://Stackoverflow.com/questions/58750', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/370899/']