You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
composer install を実行したらAPIのインストールが始まります。 (Note: composerがない場合、https://getcomposer.org/doc/00-intro.mdからcomposerをインストールするか、https://github.com/google/google-api-php-client/tree/v1-masterからソースコードを直接ダウンロードします。 Step: 6 - APIをアクセスするPHPコード step3で作成したプライベートキーをアップロードし、コードで引用します。 <?php function getService() { // Creates and returns the Analytics service object. // Load the Google API PHP Client Library. req
2016.04.04 PHPでGoogle Analytics APIを利用して、アクセス解析のデータをSlackに投げる(前編) こんにちは、今回はみんな大好きGoogle AnalyticsとSlackの話です。 TAMでは、チャットツールでSlackを使用しているのですが、Google Analyticsで取得したアクセス解析のデータを定期的にSlackに投げるような仕組みを作れば、サイトやサービスの運営に役に立つと思いつくってみました! 記事が長くなってしまったので GAのAPIを使用してアクセス解析の結果を取得する 取得した値をSlackに投稿する の前後編に分けてお送りします。 後編は1週間後くらいに公開予定です! 公開しました!後編はこちら! Google Analytics APIって? まずは、APIを利用して何が出来るのかというところですが、Google Analyti
本記事の情報は2009年11月時点でのものです。※現在においては参考にされないで下さい。あくまでいち資料としてどうぞ。 Google Analytics 携帯版とは Google Analytics は、本来JavaScriptをベースとしたトラッキングをします。したがって、国内の多くの携帯電話搭載ブラウザでは、測定出来ませんでした。 しかし、この度発表されましたGoogle Analytics携帯対応は、<IMG>タグを使って計測する、他社携帯解析ツールと同等のトラッキング方法を実現しました。 携帯トラッキングの必要環境 画像のやりとりをして、より多くの情報を測定するために、独自プログラミングによる疑似的な画像表示をしています。 したがって、サーバー側で以下の実行環境が備わっている必要があります。 PHP Perl JSP ASPX トラッキングコードの取得 グーグルアナリティクス管理画
先日からサービスの提供が始まったモバイル版の Google Analytics ですが、アクセス解析用の PHP スクリプトである ga.php は PHP4 では動きません。PHP4 のアップデートはすでに終わっているので、PHP5 にアップグレードするべきなのですが、レンタルサーバなどで PHP のアップグレードをしてくれないところもあると思います。そこで、PHP4 でも動くように、ga.php を修正してみました(ライセンス的な問題がちょっと気になりますが…)。 準備として、PEAR の PHP_Compat をインストールします(stable版の1.5.0ではなく、alpha版の1.6.0a2が必要)。 次に、ga.php の先頭部分に require_once 'PHP/Compat/Function/setrawcookie.php'; require_once 'PHP/Co
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く