Google Analytics ट्रैकिंग एपीआई में दो ग्लोबल ऑब्जेक्ट होते हैं; स्टैंडर्ड ट्रैकिंग के लिए _gat
और एसिंक्रोनस ट्रैकिंग के लिए _gaq
. इन दोनों ग्लोबल ऑब्जेक्ट में, ट्रैकर ऑब्जेक्ट बनाने के तरीके मौजूद हैं. ट्रैकर ऑब्जेक्ट का इस्तेमाल आपके पेजों को ट्रैक करने के लिए किया जाता है. साथ ही, ट्रैकिंग के काम करने के तरीके को कॉन्फ़िगर करने के लिए, उनके पास कई तरीके हैं.
इस पेज पर _gat
, _gaq
, और ट्रैकर ऑब्जेक्ट में उपलब्ध सभी तरीकों के बारे में पूरी जानकारी दी गई है.
_gat ऑब्जेक्ट के तरीके
_getTracker(account)
अब सेवा में नहीं है_createTracker(opt_account, opt_name)
_getTrackerByName(opt_name)
_anonymizeIp()
_gaq ऑब्जेक्ट के तरीके
_createAsyncTracker(accountId, opt_name)
अब सेवा में नहीं है_getAsyncTracker(opt_name)
अब सेवा में नहीं हैpush(commandArray)
ट्रैकर ऑब्जेक्ट के तरीके
_addIgnoredOrganic(newIgnoredOrganicKeyword)
_addIgnoredRef(newIgnoredReferrer)
_addItem(transactionId, sku, name, category, price, quantity)
_addOrganic(newOrganicEngine, newOrganicKeyword, opt_prepend)
_addTrans(transactionId, affiliation, total, tax, shipping, city, state, country)
_clearIgnoredOrganic()
_clearIgnoredRef()
_clearOrganic()
_cookiePathCopy(newPath)
_deleteCustomVar(index)
_getName()
_setAccount()
_getAccount()
_getClientInfo(1)
_getDetectFlash(1)
_getDetectTitle(1)
_getLinkerUrl(targetUrl, useHash)
_getLocalGifPath()
_getServiceMode()
_getVersion()
_getVisitorCustomVar(index)
_initData()
अब सेवा में नहीं है_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)
अब सेवा में नहीं है_setCookieTimeout(newDefaultTimeout)
अब सेवा में नहीं है_setCustomVar(index, name, value, opt_scope)
_setDetectFlash(bool)
_setDetectTitle(bool)
_setDomainName(newDomainName)
_setLocalGifPath(newLocalGifPath)
_setLocalRemoteServerMode()
_setLocalServerMode()
_setReferrerOverride(newReferrerUrl)
_setRemoteServerMode()
_setSampleRate(newRate)
_setSessionTimeout(newTimeout)
अब सेवा में नहीं है_setSiteSpeedSampleRate(sampleRate)
_setSessionCookieTimeout(cookieTimeoutMillis)
_setVar(newVal)
अब सेवा में नहीं है_setVisitorCookieTimeout(cookieTimeoutMillis)
_storeGac(bool)
_trackEvent(category, action, opt_label, opt_value, opt_noninteraction)
_trackPageLoadTime()
अब सेवा में नहीं है_trackPageview(opt_pageURL)
_trackSocial(network, socialAction, opt_target, opt_pagePath)
_trackTiming(category, variable, time, opt_label, opt_sampleRate)
_trackTrans()