The ability to play with the code as you are going through sample code is a great way to learn a new client library. The following samples are completely interactive, you are able to modify and execute the code straight out of the source code textarea. Feel free to modify the source code to get a feel for how the different objects and properties are used. You can utilize the predefined PRINT() method which outputs the argument as a string in the output tab after you hit the "Run" button.


Accessing the Account Feed:

Retrieve Your Accounts

Accessing the Data Feed:

Top Pages By Pageviews
Calculate Bounce Rate By Source
Languages By Country
Top Search Refinements
30 Days Of Visits and Pageviews

Note: In order to execute the following interactive JavaScript samples, you must authenticate using your Google Account credentials.

Once authenticated, you must supply a Table ID to run the data feed examples.
Currently the Table ID is your Profile ID prefixed with 'ga:' (ie ga:12345)
If you don't know your table id, you can run the account feed example to find out.

Table ID: