Google Analytics Data Export APIを使用すれば、Google Analyticsのデータを簡単に取得できます。ここではこのData Export APIを、JavaScriptから利用する方法について解説します。 ライブラリのインクルード HTMLのhead要素内に、以下の記述をします。 <!-- Google AJAX APIライブラリのインクルード --> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript"> // Google Analyticsライブラリのロード google.load( 'gdata', '1.x', { packages: [ 'analytics' ] } ); </scr