Wednesday, February 09, 2011

Google2Piwik – exporting Google Analytics to Piwik

Description
Google2Piwik is script written in Python to enable exporting statistics from Google Analytics to open source alternative, Piwik.

Requirements

Access to Piwik Installation.
Google Analytics Account with read or admin rights.
Google Analytics API currently does not support Google Apps for your Domain Accounts.
Thats why you can’t export data from account@yourdomain.com even if you have access via web interface.
However you can grant privileges to your Gmail account, and use it to perform the export.
Python 2.6 with components:
gdata-python-client (Google Python API)
http://code.google.com/p/gdata-python-client/
MySQLdb

Read more: ClearCode