Setting up a Google Cloud Function to stream Google Analytics events into BigQuery
./bq_prep.sh
./deploy.sh
Add contents of ga_route.js
to client-side Javascript. This will call the Cloud Function when uploading events to Google Analytics (e.g. piggybacking the 'sendHitTask' task).