©2009 Google -
Code Home -
Terms of Service -
Privacy Policy -
Site Directory
Google Code offered in:
English -
Español -
日本語 -
한국어 -
Português -
Pусский -
中文(简体) -
中文(繁體)
The Google Analytics tracking API consists of two global objects; _gat for standard tracking and _gaq for asynchronous tracking. Both of these global objects contain methods for creating tracker objects. Tracker objects are used to track your pages and they have many methods to configure how that tracking will work.
This page is a complete reference of all the methods available in _gat, _gaq, and tracker objects.
_getTracker(accountId)_createAsyncTracker(accountId, opt_name)_getAsyncTracker(opt_name)push(commandArray)_addIgnoredOrganic(newIgnoredOrganicKeyword)_addIgnoredRef(newIgnoredReferrer)_addItem(orderId,
sku, name, category, price, quantity)_addOrganic(newOrganicEngine,
newOrganicKeyword, opt_prepend)_addTrans(orderId,
affiliation, total, tax, shipping, city, state, country)_clearIgnoredOrganic()_clearIgnoredRef()_clearOrganic()_cookiePathCopy(newPath)_deleteCustomVar(index)_getAccount()_getClientInfo(1)_getDetectFlash(1)_getDetectTitle(1)_getLinkerUrl(targetUrl,
useHash)_getLocalGifPath()_getServiceMode()_getVersion()_getVisitorCustomVar(index)_initData() deprecated_link(targetUrl,
useHash)_linkByPost(formObject,
useHash)_setAllowAnchor(bool)_setAllowHash(bool)_setAllowLinker(bool)_setCampContentKey(newCampContentKey)_setCampMediumKey(newCampMedKey)_setCampNameKey(newCampNameKey)_setCampNOKey(newCampNOKey)_setCampSourceKey(newCampSrcKey)_setCampTermKey(newCampTermKey)_setCampaignCookieTimeout(cookieTimeoutMillis)_setCampaignTrack(bool)_setClientInfo(bool)_setCookiePath(newCookiePath)_setCookiePersistence(milliseconds) deprecated_setCookieTimeout(newDefaultTimeout) deprecated_setCustomVar(index,
name, value, opt_scope)_setDetectFlash(bool)_setDetectTitle(bool)_setDomainName(newDomainName)_setLocalGifPath(newLocalGifPath)_setLocalRemoteServerMode()_setLocalServerMode()_setReferrerOverride(newReferrerUrl)_setRemoteServerMode()_setSampleRate(newRate)_setSessionTimeout(newTimeout) deprecated_setSessionCookieTimeout(cookieTimeoutMillis)_setVar(newVal) deprecated_setVisitorCookieTimeout(cookieTimeoutMillis)_trackEvent(category,
action, opt_label, opt_value)_trackPageview(opt_pageURL)_trackTrans()