Stream raw hit-level Google Analytics data into BigQuery
##Installation
- Create new project here https://console.developers.google.com/project
- Create new dataset in Google BigQuery https://bigquery.cloud.google.com
- Download and install Google App Engine python SDK https://cloud.google.com/appengine/downloads
- git clone https://github.com/lnklnklnk/ga-bq.git
- Create new app from source in Google SDK
- Add app-id in app.yaml
- Change gifPath in js/gabq.js to [your-project].appspot.com/collect
- Set app_id, dataset_id, table_id in bqloader.py
- Deploy application
- Visit [your-app].appspot.com/tasks/create_bq_table to create BigQuery table
- Include plugin on your website. Add line:
<script async src="http://[your-app].appspot.com/js/gabq.js"></script>
before GA code andga('require', 'gabqplugin');
afterga('create',..)
- Now you raw GA data collects in BigQuery table
Note: Ecomerce data is currently not supported, it will be added soon