urchin event tracking code   [点评]

var pageTracker = _gat._getTracker(hc_urchin);
pageTracker._setCookiePath(cookie_path);

/**
* Backwards-compatibility w/ urchinTracker
*
* @param {string} url The URL to track
*/

function urchinTracker(url) {
pageTracker._trackPageview(url);
}

/**
* General function for tracking outgoing links
* Category is set to ‘Outgoing’ so that they all show up under
* the ‘Outgoing’ category in Analytics
*
* @param {string} link The link to track
*/

function trackOutgoing(link) {
pageTracker._trackEvent(‘Outgoing’, link, hc_page_info + ‘ hl=’ + hc_lang);
}

/**
* General function for tracking links
*
* @param {string} category The category for the link (i.e., ‘Left Nav’)
* @param {string} link The link to track
*/

function track(category, link) {
pageTracker._trackEvent(category, link, hc_page_info + ‘ hl=’ + hc_lang);
}

发布于 2009 年 03 月 02 日 by fisher in 未分类

Tagged with ,

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注