Help us understand the problem. What is going on with this article?

Google Analytics Outbound Link

More than 5 years have passed since last update.

毎回"_gaq.push();"を書くのがだるいので、関数として用意。
エラー処理は特にしてない。

JavaScript
/**
 *  Google Analytics Outbound Link
 *  ※) 要Google Analytics
 *
 *  @param  category    イベントカテゴリ
 *  @param  lnk         イベント アクション 
 *
 */
function trackOutboundLink(category, action) { 
    try { 
        _gaq.push(['_trackEvent', category , action]); 
    } catch(err){}
}
Evolutor_web
Webサイトを中心にいろいろとやってる人。FlashやらHTMLやらPHPやらJavaScriptやらもろもろ。 趣味はPC/Mac、スマホ、音楽、サバゲ、東方。 つまり、金のかかるただのオタク。
http://www.evolutor.net/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away