Packagecom.google.analytics.core
Classpublic class TrackerCache
ImplementsGoogleAnalyticsAPI

This queue is used in the GA trackers during the initialize process to keep in memory the users tracking. This cache is flushing when the tracker is initialize.



Public Properties
 PropertyDefined by
  CACHE_THROW_ERROR : Boolean
[static] Indicates if the object throws errors.
TrackerCache
  tracker : GoogleAnalyticsAPI
The GoogleAnalyticsAPI target of this tracker cache object.
TrackerCache
Public Methods
 MethodDefined by
  
Creates a new TrackerCache instance
TrackerCache
  
addIgnoredOrganic(newIgnoredOrganicKeyword:String):void
TrackerCache
  
addIgnoredRef(newIgnoredReferrer:String):void
TrackerCache
  
addItem(item:String, sku:String, name:String, category:String, price:Number, quantity:int):void
TrackerCache
  
addOrganic(newOrganicEngine:String, newOrganicKeyword:String):void
TrackerCache
  
addTrans(orderId:String, affiliation:String, total:Number, tax:Number, shipping:Number, city:String, state:String, country:String):Object
TrackerCache
  
clear():void
Removes all commands in memory.
TrackerCache
  
TrackerCache
  
TrackerCache
  
clearOrganic():void
TrackerCache
  
cookiePathCopy(newPath:String):void
TrackerCache
  
TrackerCache
  
element():*
Retrieves, but does not remove, the head of this queue.
TrackerCache
  
enqueue(name:String, ... args):Boolean
Enqueue a new tracker command in the tracker cache.
TrackerCache
  
flush():void
Flush the memory of the tracker cache.
TrackerCache
  
getAccount():String
TrackerCache
  
getClientInfo():Boolean
TrackerCache
  
getDetectFlash():Boolean
TrackerCache
  
getDetectTitle():Boolean
TrackerCache
  
getLocalGifPath():String
TrackerCache
  
TrackerCache
  
getVersion():String
TrackerCache
  
isEmpty():Boolean
Indicates if the tracker cache is empty.
TrackerCache
  
link(targetUrl:String, useHash:Boolean = false):void
TrackerCache
  
linkByPost(formObject:Object, useHash:Boolean = false):void
TrackerCache
  
resetSession():void
TrackerCache
  
setAllowAnchor(enable:Boolean):void
TrackerCache
  
setAllowHash(enable:Boolean):void
TrackerCache
  
setAllowLinker(enable:Boolean):void
TrackerCache
  
setCampaignTrack(enable:Boolean):void
TrackerCache
  
setCampContentKey(newCampContentKey:String):void
TrackerCache
  
setCampMediumKey(newCampMedKey:String):void
TrackerCache
  
setCampNameKey(newCampNameKey:String):void
TrackerCache
  
setCampNOKey(newCampNOKey:String):void
TrackerCache
  
setCampSourceKey(newCampSrcKey:String):void
TrackerCache
  
setCampTermKey(newCampTermKey:String):void
TrackerCache
  
setClientInfo(enable:Boolean):void
TrackerCache
  
setCookiePath(newCookiePath:String):void
TrackerCache
  
setCookieTimeout(newDefaultTimeout:int):void
TrackerCache
  
setDetectFlash(enable:Boolean):void
TrackerCache
  
setDetectTitle(enable:Boolean):void
TrackerCache
  
setDomainName(newDomainName:String):void
TrackerCache
  
setLocalGifPath(newLocalGifPath:String):void
TrackerCache
  
TrackerCache
  
TrackerCache
  
TrackerCache
  
setSampleRate(newRate:Number):void
TrackerCache
  
setSessionTimeout(newTimeout:int):void
TrackerCache
  
setVar(newVal:String):void
TrackerCache
  
size():uint
Returns the number of commands in the tracker cache.
TrackerCache
  
trackEvent(category:String, action:String, label:String = null, value:Number):Boolean
TrackerCache
  
trackPageview(pageURL:String = ""):void
TrackerCache
  
trackTrans():void
TrackerCache
Property detail
CACHE_THROW_ERRORproperty
public static var CACHE_THROW_ERROR:Boolean

Indicates if the object throws errors.

trackerproperty 
public var tracker:GoogleAnalyticsAPI

The GoogleAnalyticsAPI target of this tracker cache object.

Constructor detail
TrackerCache()constructor
public function TrackerCache(tracker:GoogleAnalyticsAPI = null)

Creates a new TrackerCache instance

Parameters
tracker:GoogleAnalyticsAPI (default = null) — GoogleAnalyticsAPI tracker object caching in memory.
Method detail
addIgnoredOrganic()method
public function addIgnoredOrganic(newIgnoredOrganicKeyword:String):voidParameters
newIgnoredOrganicKeyword:String
addIgnoredRef()method 
public function addIgnoredRef(newIgnoredReferrer:String):voidParameters
newIgnoredReferrer:String
addItem()method 
public function addItem(item:String, sku:String, name:String, category:String, price:Number, quantity:int):voidParameters
item:String
 
sku:String
 
name:String
 
category:String
 
price:Number
 
quantity:int
addOrganic()method 
public function addOrganic(newOrganicEngine:String, newOrganicKeyword:String):voidParameters
newOrganicEngine:String
 
newOrganicKeyword:String
addTrans()method 
public function addTrans(orderId:String, affiliation:String, total:Number, tax:Number, shipping:Number, city:String, state:String, country:String):ObjectParameters
orderId:String
 
affiliation:String
 
total:Number
 
tax:Number
 
shipping:Number
 
city:String
 
state:String
 
country:String

Returns
Object
clear()method 
public function clear():void

Removes all commands in memory.

clearIgnoredOrganic()method 
public function clearIgnoredOrganic():void
clearIgnoredRef()method 
public function clearIgnoredRef():void
clearOrganic()method 
public function clearOrganic():void
cookiePathCopy()method 
public function cookiePathCopy(newPath:String):voidParameters
newPath:String
createEventTracker()method 
public function createEventTracker(objName:String):EventTrackerParameters
objName:String

Returns
EventTracker
element()method 
public function element():*

Retrieves, but does not remove, the head of this queue.

Returns
*
enqueue()method 
public function enqueue(name:String, ... args):Boolean

Enqueue a new tracker command in the tracker cache.

Parameters
name:String — The name of the method to invoke.
 
... args — The optional arguments passed-in the method.

Returns
Boolean
flush()method 
public function flush():void

Flush the memory of the tracker cache.

getAccount()method 
public function getAccount():String

Returns
String
getClientInfo()method 
public function getClientInfo():Boolean

Returns
Boolean
getDetectFlash()method 
public function getDetectFlash():Boolean

Returns
Boolean
getDetectTitle()method 
public function getDetectTitle():Boolean

Returns
Boolean
getLocalGifPath()method 
public function getLocalGifPath():String

Returns
String
getServiceMode()method 
public function getServiceMode():ServerOperationMode

Returns
ServerOperationMode
getVersion()method 
public function getVersion():String

Returns
String
isEmpty()method 
public function isEmpty():Boolean

Indicates if the tracker cache is empty.

Returns
Boolean
link()method 
public function link(targetUrl:String, useHash:Boolean = false):voidParameters
targetUrl:String
 
useHash:Boolean (default = false)
linkByPost()method 
public function linkByPost(formObject:Object, useHash:Boolean = false):voidParameters
formObject:Object
 
useHash:Boolean (default = false)
resetSession()method 
public function resetSession():void
setAllowAnchor()method 
public function setAllowAnchor(enable:Boolean):voidParameters
enable:Boolean
setAllowHash()method 
public function setAllowHash(enable:Boolean):voidParameters
enable:Boolean
setAllowLinker()method 
public function setAllowLinker(enable:Boolean):voidParameters
enable:Boolean
setCampaignTrack()method 
public function setCampaignTrack(enable:Boolean):voidParameters
enable:Boolean
setCampContentKey()method 
public function setCampContentKey(newCampContentKey:String):voidParameters
newCampContentKey:String
setCampMediumKey()method 
public function setCampMediumKey(newCampMedKey:String):voidParameters
newCampMedKey:String
setCampNameKey()method 
public function setCampNameKey(newCampNameKey:String):voidParameters
newCampNameKey:String
setCampNOKey()method 
public function setCampNOKey(newCampNOKey:String):voidParameters
newCampNOKey:String
setCampSourceKey()method 
public function setCampSourceKey(newCampSrcKey:String):voidParameters
newCampSrcKey:String
setCampTermKey()method 
public function setCampTermKey(newCampTermKey:String):voidParameters
newCampTermKey:String
setClientInfo()method 
public function setClientInfo(enable:Boolean):voidParameters
enable:Boolean
setCookiePath()method 
public function setCookiePath(newCookiePath:String):voidParameters
newCookiePath:String
setCookieTimeout()method 
public function setCookieTimeout(newDefaultTimeout:int):voidParameters
newDefaultTimeout:int
setDetectFlash()method 
public function setDetectFlash(enable:Boolean):voidParameters
enable:Boolean
setDetectTitle()method 
public function setDetectTitle(enable:Boolean):voidParameters
enable:Boolean
setDomainName()method 
public function setDomainName(newDomainName:String):voidParameters
newDomainName:String
setLocalGifPath()method 
public function setLocalGifPath(newLocalGifPath:String):voidParameters
newLocalGifPath:String
setLocalRemoteServerMode()method 
public function setLocalRemoteServerMode():void
setLocalServerMode()method 
public function setLocalServerMode():void
setRemoteServerMode()method 
public function setRemoteServerMode():void
setSampleRate()method 
public function setSampleRate(newRate:Number):voidParameters
newRate:Number
setSessionTimeout()method 
public function setSessionTimeout(newTimeout:int):voidParameters
newTimeout:int
setVar()method 
public function setVar(newVal:String):voidParameters
newVal:String
size()method 
public function size():uint

Returns the number of commands in the tracker cache.

Returns
uint — the number of commands in the tracker cache.
trackEvent()method 
public function trackEvent(category:String, action:String, label:String = null, value:Number):BooleanParameters
category:String
 
action:String
 
label:String (default = null)
 
value:Number

Returns
Boolean
trackPageview()method 
public function trackPageview(pageURL:String = ""):voidParameters
pageURL:String (default = "")
trackTrans()method 
public function trackTrans():void