Build with Chrome Learn how Chrome works, participate in origin trials, and build with Chrome everywhere.
MOONGIFTはオープンソース・ソフトウェアを紹介するブログです。2021年07月16日で更新停止しました 新しいWebサイトを作ると何となくGoogle Analyticsを選んでしまっています。しかし他にも選択肢はありますし、データを外部に出せない場合(イントラなど)もあります。そういった場合、どのようにアクセス解析を行えば良いでしょうか。 もし使っているフレームワークがRuby on RailsであればAhoyを使ってみると良いかもしれません。Railsのモデルに組み込めるアクセス解析機能を提供します。 Ahoyのインストール まずはGemfileに記述します。 gem 'ahoy_matey' インストールと初期設定を行います。 $ bundle install $ rails generate ahoy:install $ rake db:migrate 後は app/asse
昨日のエントリをベースに、FlashからAnalyticsを制御するクラス、GAnalyticsを作ってみた。 サンプル、ドキュメント一式はこちら まずは基本的な使い方。 ページの遷移を集計したい場合とかはこんな感じで行うわけです。 var ga = GAnalytics.getInstance(); ga.call("集計したい/イベントを/パス的表現で"); 次にコンポーネント等のDOM3イベントと、Analyticsとのバインディング機能。 「イベントの発行~Analyticsでの集計」という一連の処理を自動化するわけです。 ボタンのクリックを集計する場合は、こんな感じですね。 var ga = GAnalytics.getInstance(); ga.bindEvent( Buttonインスタンス, "click", "menu/button1/click"); これで、ボタンを押
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く