API ردیابی Google Analytics از دو شی سراسری تشکیل شده است. _gat
برای ردیابی استاندارد و _gaq
برای ردیابی ناهمزمان. هر دوی این اشیاء سراسری حاوی متدهایی برای ایجاد اشیاء ردیاب هستند. اشیاء ردیاب برای ردیابی صفحات شما استفاده می شوند و روش های زیادی برای پیکربندی نحوه عملکرد ردیابی دارند.
این صفحه یک مرجع کامل از تمام روش های موجود در اشیاء _gat
، _gaq
و tracker است.
_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 ()