When Google Analytics meets the lion
Google Analytics Reporting API (GARA) is a part of the Google API library, and offers hooks to get the data coming from website traffic, which one can retrieve as part of Google Analytics visualizations, such as the following:
Google analytics sessions over time
What if we could centralize our site analytics in a single visualization application? This is exactly what Timelion brings to Kibana-the possibility to fetch data from external data, other than Elasticsearch. In this section, we'll set up the development environment to implement an extension for GARA. Then we'll set up our Google API account and finally implement the function.
Setting up our development environment
Implementing a Timelion
function requires you to install a couple of tools, starting with Nodejs 4.6.0 (https://nodejs.org/en). Download the appropriate package, depending on your OS, and run the installation. Nodejs is the backend on which Kibana runs. When you download Kibana on elastic...