ElasticBigQuery is Application for BigQuery on the Google App Engine platform.
ElasticBigQuery is designed to provide the ease of use like TreasureData to BigQuery.
- tracking with web beacon
- tracking with td-js-sdk (jsonp only)
- writeKey is static yet..
- issuance of third-party cookie(bqid)
- Custom domain is supported
Sample html
<img src="//xxx-xxx.appspot.com/dmp/v1/beacon/<dataset_id>/measurement">
Tracking with td-js-sdk
Reference is here
<script type="text/javascript">
!function(t,e){if(void 0===e[t]){e[t]=function(){e[t].clients.push(this),this._init=[Array.prototype.slice.call(arguments)]},e[t].clients=[];for(var r=function(t){return function(){return this["_"+t]=this["_"+t]||[],this["_"+t].push(Array.prototype.slice.call(arguments)),this}},n=["addRecord","set","trackEvent","trackPageview","ready"],s=0;s<n.length;s++){var i=n[s];e[t].prototype[i]=r(i)}var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=("https:"===document.location.protocol?"https:":"http:")+"//cdn.treasuredata.com/sdk/td-1.5.1.js";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c)}}("Treasure",this);
</script>
<script type="text/javascript">
var td = new Treasure({
host: 'xxx-xxx.appspot.com',
pathname: '/dmp/v1/event/',
writeKey: 'thie_is_static_setting_yet',
database: '<dataset_id>'
});
td.trackPageview('<table_id>');
</script>
If you want to add, fix or improve something, create an issue or send a Pull Request.
Before committing fixes we recommend running the unitests (in the boilerplate package). This will help guard against changes that accidently break other code. See the testing section below for instructions.
Feel free to commit improvements or new features. Feedback, comments and ideas are welcome.