Hello Google Analytics API

This page demonstrates how to query the Google Analytics API version 3 using the Google API Javascript Client Library.

The demo traverses the Management API to retrieve the first profile ID for the authorized user. This profile ID is then used with the Core Reporting API to retrieve the top 25 organic search terms by visits.

To learn how this works, read the detailed comments in the JavaScript source code.

To run the demo:

  1. Click the authorize button to grant access to your Google Analytics data.
  2. Click the run demo button to start the demo.



Loading, one sec....