See the full tutorial on how to use GAPI with Chart.js: http://code64.de/visionerdy/analytics-visualisieren/
Make sure to insert your Google Login Data within index.php
:
define('ga_account','###GOOGLE_MAIL###');
define('ga_password','###GOOGLE_PASSWORT###');
define('ga_profile_id','###GOOGLE_ID###');
- Google Dimensions & Metrics Reference: https://developers.google.com/analytics/devguides/reporting/core/dimsmets
- Google Analytics Query Explorer 2: http://ga-dev-tools.appspot.com/explorer/
- Chart.js Docs: http://www.chartjs.org/docs/