Packagecom.google.analytics.components
Classpublic class FlashTracker
InheritanceFlashTracker Inheritance flash.display.Sprite
ImplementsAnalyticsTracker



Public Properties
 PropertyDefined by
  account : String
The Urchin Account.
FlashTracker
  boundingBox_mc : DisplayObject
FlashTracker
  componentInspectorSetting : Boolean
[write-only]
FlashTracker
  config : Configuration
The Tracker configuration.
FlashTracker
  debug : DebugConfiguration
The Tracker debug configuration.
FlashTracker
  mode : String
The Traker mode.
FlashTracker
  version : Version
[static]
FlashTracker
  visualDebug : Boolean
Indicates if the tracker use a visual debug.
FlashTracker
Protected Properties
 PropertyDefined by
  _componentInspectorSetting : Boolean
FlashTracker
  _height : Number = 18
FlashTracker
  isLivePreview : Boolean
FlashTracker
  livePreviewHeight : Number
FlashTracker
  livePreviewWidth : Number
FlashTracker
  preview : MovieClip
FlashTracker
  _width : Number = 18
FlashTracker
Public Methods
 MethodDefined by
  
FlashTracker
  
addIgnoredOrganic(newIgnoredOrganicKeyword:String):void
Sets the string as ignored term(s) for Keywords reports.
FlashTracker
  
addIgnoredRef(newIgnoredReferrer:String):void
Excludes a source as a referring site.
FlashTracker
  
addItem(item:String, sku:String, name:String, category:String, price:Number, quantity:int):void
Adds a transaction item to the parent transaction object.
FlashTracker
  
addOrganic(newOrganicEngine:String, newOrganicKeyword:String):void
Adds a search engine to be included as a potential search engine traffic source.
FlashTracker
  
addTrans(orderId:String, affiliation:String, total:Number, tax:Number, shipping:Number, city:String, state:String, country:String):Object
Creates a transaction object with the given values.
FlashTracker
  
Clears all strings previously set for exclusion from the Keyword reports.
FlashTracker
  
Clears all strings previously set for exclusion from the Keyword reports.
FlashTracker
  
clearOrganic():void
Clears all search engines as organic sources.
FlashTracker
  
cookiePathCopy(newPath:String):void
Changes the paths of all GATC cookies to the newly-specified path.
FlashTracker
  
Creates an event tracking object with the specified name.
FlashTracker
  
getAccount():String
Returns the Google Analytics tracking ID for this tracker object.
FlashTracker
  
getClientInfo():Boolean
Gets the flag that indicates whether the browser tracking module is enabled.
FlashTracker
  
getDetectFlash():Boolean
Gets the Flash detection flag.
FlashTracker
  
getDetectTitle():Boolean
Gets the title detection flag.
FlashTracker
  
getLocalGifPath():String
Gets the local path for the Urchin GIF file.
FlashTracker
  
Returns the server operation mode.
FlashTracker
  
getVersion():String
Returns the GATC version number.
FlashTracker
  
isReady():Boolean
Indicates if the tracker is ready to use.
FlashTracker
  
link(targetUrl:String, useHash:Boolean = false):void
This method works in conjunction with the setDomainName() and setAllowLinker() methods to enable cross-domain user tracking.
FlashTracker
  
linkByPost(formObject:Object, useHash:Boolean = false):void
This method works in conjunction with the setDomainName() and setAllowLinker() methods to enable cross-domain user tracking.
FlashTracker
  
resetSession():void
Reset the current session clearing the utmb and utmc cookies.
FlashTracker
  
setAllowAnchor(enable:Boolean):void
Allows the # sign to be used as a query string delimiter in campaign tracking.
FlashTracker
  
setAllowHash(enable:Boolean):void
Sets the allow domain hash flag.
FlashTracker
  
setAllowLinker(enable:Boolean):void
Sets the linker functionality flag as part of enabling cross-domain user tracking.
FlashTracker
  
setCampaignTrack(enable:Boolean):void
Sets the campaign tracking flag.
FlashTracker
  
setCampContentKey(newCampContentKey:String):void
Sets the campaign ad content key.
FlashTracker
  
setCampMediumKey(newCampMedKey:String):void
Sets the campaign medium key, which is used to retrieve the medium from your campaign URLs.
FlashTracker
  
setCampNameKey(newCampNameKey:String):void
Sets the campaign name key.
FlashTracker
  
setCampNOKey(newCampNOKey:String):void
Sets the campaign no-override key variable, which is used to retrieve the campaign no-override value from the URL.
FlashTracker
  
setCampSourceKey(newCampSrcKey:String):void
Sets the campaign source key, which is used to retrieve the campaign source from the URL.
FlashTracker
  
setCampTermKey(newCampTermKey:String):void
Sets the campaign term key, which is used to retrieve the campaign keywords from the URL.
FlashTracker
  
setClientInfo(enable:Boolean):void
Sets the browser tracking module.
FlashTracker
  
setCookiePath(newCookiePath:String):void
Sets the new cookie path for your site.
FlashTracker
  
setCookieTimeout(newDefaultTimeout:int):void
Sets the campaign tracking cookie expiration time in seconds.
FlashTracker
  
setDetectFlash(enable:Boolean):void
Sets the Flash detection flag.
FlashTracker
  
setDetectTitle(enable:Boolean):void
Sets the title detection flag.
FlashTracker
  
setDomainName(newDomainName:String):void
Sets the domain name for cookies.
FlashTracker
  
setLocalGifPath(newLocalGifPath:String):void
Sets the local path for the Urchin GIF file.
FlashTracker
  
Invoke this method to send your tracking data both to a local server and to the Google Analytics backend servers.
FlashTracker
  
Invoke this method to send your tracking data to a local server only.
FlashTracker
  
Default installations of Google Analytics send tracking data to the Google Analytics server.
FlashTracker
  
setSampleRate(newRate:Number):void
Sets the new sample rate.
FlashTracker
  
setSessionTimeout(newTimeout:int):void
Sets the new session timeout in seconds.
FlashTracker
  
setSize(w:Number, h:Number):void
FlashTracker
  
setVar(newVal:String):void
Sets a user-defined value.
FlashTracker
  
trackEvent(category:String, action:String, label:String = null, value:Number):Boolean
Constructs and sends the event tracking call to GATC.
FlashTracker
  
trackPageview(pageURL:String = ""):void
Main logic for GATC (Google Analytic Tracker Code).
FlashTracker
  
trackTrans():void
Sends both the transaction and item data to the Google Analytics server.
FlashTracker
Events
 EventSummaryDefined by
   Dispatched after the factory has built the tracker object.FlashTracker
Property detail
accountproperty
account:String  [read-write]

The Urchin Account. You have to define this parameter to initialize the tracking.

Implementation
    public function get account():String
    public function set account(value:String):void
boundingBox_mcproperty 
public var boundingBox_mc:DisplayObject
_componentInspectorSettingproperty 
protected var _componentInspectorSetting:Boolean
componentInspectorSettingproperty 
componentInspectorSetting:Boolean  [write-only]Implementation
    public function set componentInspectorSetting(value:Boolean):void
configproperty 
config:Configuration  [read-write]

The Tracker configuration.

Implementation
    public function get config():Configuration
    public function set config(value:Configuration):void
debugproperty 
debug:DebugConfiguration  [read-write]

The Tracker debug configuration.

Implementation
    public function get debug():DebugConfiguration
    public function set debug(value:DebugConfiguration):void
_heightproperty 
protected var _height:Number = 18
isLivePreviewproperty 
protected var isLivePreview:Boolean
livePreviewHeightproperty 
protected var livePreviewHeight:Number
livePreviewWidthproperty 
protected var livePreviewWidth:Number
modeproperty 
mode:String  [read-write]

The Traker mode. You can select two modes: - AS3: use AS3 only, no dependency on HTML/JS - Bridge: use AS3 bridged to HTML/JS which define ga.js

Implementation
    public function get mode():String
    public function set mode(value:String):void
previewproperty 
protected var preview:MovieClip
versionproperty 
public static var version:Version
visualDebugproperty 
visualDebug:Boolean  [read-write]

Indicates if the tracker use a visual debug. If set to true, at compile time you will see a visual debug window with different informations about the tracking requests and parameters.

Implementation
    public function get visualDebug():Boolean
    public function set visualDebug(value:Boolean):void
_widthproperty 
protected var _width:Number = 18
Constructor detail
FlashTracker()constructor
public function FlashTracker()
Method detail
addIgnoredOrganic()method
public function addIgnoredOrganic(newIgnoredOrganicKeyword:String):void

Sets the string as ignored term(s) for Keywords reports.

Use this to configure Google Analytics to treat certain search terms as direct traffic, such as when users enter your domain name as a search term.

When you set keywords using this method, the search terms are still included in your overall page view counts, but not included as elements in the Keywords reports.

Parameters
newIgnoredOrganicKeyword:String — Keyword search terms to treat as direct traffic.
addIgnoredRef()method 
public function addIgnoredRef(newIgnoredReferrer:String):void

Excludes a source as a referring site. Use this option when you want to set certain referring links as direct traffic, rather than as referring sites. For example, your company might own another domain that you want to track as direct traffic so that it does not show up on the "Referring Sites" reports. Requests from excluded referrals are still counted in your overall page view count.

Parameters
newIgnoredReferrer:String — Referring site to exclude.
addItem()method 
public function addItem(item:String, sku:String, name:String, category:String, price:Number, quantity:int):void

Adds a transaction item to the parent transaction object. Use this method to track items purchased by visitors to your ecommerce site. This method tracks items by SKU and performs no additional ecommerce calculations (such as quantity calculations). Therefore, if the item being added is a duplicate (by SKU) of an existing item for that session, then the old information is replaced with the new. Additionally, it does not enforce the creation of a parent transation object, but it is advised that you set this up explicitly in your transaction tracking code. If no parent transaction object exists for the item, the item is attached to an empty transaction object instead.

Parameters
item:String
 
sku:String — Item's SKU code (required).
 
name:String — Product name.
 
category:String — Product category.
 
price:Number — Product price (required).
 
quantity:int — Purchase quantity (required).
addOrganic()method 
public function addOrganic(newOrganicEngine:String, newOrganicKeyword:String):void

Adds a search engine to be included as a potential search engine traffic source. By default, Google Analytics recognizes a number of common search engines, but you can add additional search engine sources to the list.

Parameters
newOrganicEngine:String — Engine for new organic source.
 
newOrganicKeyword:String — Keyword name for new organic source.
addTrans()method 
public function addTrans(orderId:String, affiliation:String, total:Number, tax:Number, shipping:Number, city:String, state:String, country:String):Object

Creates a transaction object with the given values. As with addItem(), this method handles only transaction tracking and provides no additional ecommerce functionality. Therefore, if the transaction is a duplicate of an existing transaction for that session, the old transaction values are over-written with the new transaction values.

Parameters
orderId:String — Internal unique order id number for this transaction.
 
affiliation:String — Optional partner or store affiliation. (undefined if absent)
 
total:Number — Total dollar amount of the transaction.
 
tax:Number — Tax amount of the transaction.
 
shipping:Number — Shipping charge for the transaction.
 
city:String — City to associate with transaction.
 
state:String — State to associate with transaction.
 
country:String — Country to associate with transaction.

Returns
Object — The tranaction object that was modified.
clearIgnoredOrganic()method 
public function clearIgnoredOrganic():void

Clears all strings previously set for exclusion from the Keyword reports.

clearIgnoredRef()method 
public function clearIgnoredRef():void

Clears all strings previously set for exclusion from the Keyword reports.

clearOrganic()method 
public function clearOrganic():void

Clears all search engines as organic sources. Use this method when you want to define a customized search engine ordering precedence.

cookiePathCopy()method 
public function cookiePathCopy(newPath:String):void

Changes the paths of all GATC cookies to the newly-specified path. Use this feature to track user behavior from one directory structure to another on the same domain. In order for this to work, the GATC tracking data must be initialized (initData() must be called).

Parameters
newPath:String — New path to store GATC cookies under.
createEventTracker()method 
public function createEventTracker(objName:String):EventTracker

Creates an event tracking object with the specified name.

Call this method when you want to create a new web page object to track in the Event Tracking section of the reporting.

See the Event Tracking Guide for more information.

Parameters
objName:String — The name of the tracked object.

Returns
EventTracker — A new EventTracker instance.
getAccount()method 
public function getAccount():String

Returns the Google Analytics tracking ID for this tracker object. If you are tracking pages on your website in multiple accounts, you can use this method to determine the account that is associated with a particular tracker object.

Returns
String — the Account ID this tracker object is instantiated with.
getClientInfo()method 
public function getClientInfo():Boolean

Gets the flag that indicates whether the browser tracking module is enabled. See setClientInfo() for more information.

Returns
Boolean — 1 if enabled, 0 if disabled.
getDetectFlash()method 
public function getDetectFlash():Boolean

Gets the Flash detection flag. See setDetectFlash() for more information.

Returns
Boolean — 1 if enabled, 0 if disabled.
getDetectTitle()method 
public function getDetectTitle():Boolean

Gets the title detection flag.

Returns
Boolean — 1 if enabled, 0 if disabled.
getLocalGifPath()method 
public function getLocalGifPath():String

Gets the local path for the Urchin GIF file. See setLocalGifPath() for more information.

Returns
String — Path to GIF file on the local server.
getServiceMode()method 
public function getServiceMode():ServerOperationMode

Returns the server operation mode. Possible return values are 0 for local mode (sending data to local server set by setLocalGifPath()), 1 for remote mode (send data to Google Analytics backend server), or 2 for both local and remote mode.

Returns
ServerOperationMode — Server operation mode.
getVersion()method 
public function getVersion():String

Returns the GATC version number.

Returns
String — GATC version number.
isReady()method 
public function isReady():Boolean

Indicates if the tracker is ready to use.

Returns
Boolean
link()method 
public function link(targetUrl:String, useHash:Boolean = false):void

This method works in conjunction with the setDomainName() and setAllowLinker() methods to enable cross-domain user tracking. The link() method passes the cookies from this site to another via URL parameters (HTTP GET). It also changes the document.location and redirects the user to the new URL.

Parameters
targetUrl:String — URL of target site to send cookie values to.
 
useHash:Boolean (default = false) — Set to true for passing tracking code variables by using the # anchortag separator rather than the default ? query string separator. (Currently this behavior is for internal Google properties only.)
linkByPost()method 
public function linkByPost(formObject:Object, useHash:Boolean = false):void

This method works in conjunction with the setDomainName() and setAllowLinker() methods to enable cross-domain user tracking. The linkByPost() method passes the cookies from the referring form to another site in a string appended to the action value of the form (HTTP POST). This method is typically used when tracking user behavior from one site to a 3rd-party shopping cart site, but can also be used to send cookie data to other domains in pop-ups or in iFrames.

Parameters
formObject:Object — Form object encapsulating the POST request.
 
useHash:Boolean (default = false) — Set to true for passing tracking code variables by using the # anchortag separator rather than the default ? query string separator.
resetSession()method 
public function resetSession():void

Reset the current session clearing the utmb and utmc cookies.

setAllowAnchor()method 
public function setAllowAnchor(enable:Boolean):void

Allows the # sign to be used as a query string delimiter in campaign tracking. This option is disabled by default. Typically, campaign tracking URLs are comprised of the question mark (?) separator and the ampersand (&) as delimiters for the key/value pairs that make up the query. By enabling this option, your campaign tracking URLs can use a pound (#) sign instead of the question mark (?).

Parameters
enable:Boolean — If this parameter is set to true, then campaign will use anchors. Else, campaign will use search strings.
setAllowHash()method 
public function setAllowHash(enable:Boolean):void

Sets the allow domain hash flag. By default, this value is set to true. The domain hashing functionality in Google Analytics creates a hash value from your domain, and uses this number to check cookie integrity for visitors. If you have multiple sub-domains, such as example1.example.com and example2.example.com, and you want to track user behavior across both of these sub-domains, you would turn off domain hashing so that the cookie integrity check will not reject a user cookie coming from one domain to another. Additionally, you can turn this feature off to optimize per-page tracking performance.

Parameters
enable:Boolean — If this parameter is set to true, then domain hashing is enabled. Else, domain hashing is disabled. True by default.
setAllowLinker()method 
public function setAllowLinker(enable:Boolean):void

Sets the linker functionality flag as part of enabling cross-domain user tracking. By default, this method is set to false and linking is disabled. See also link(), linkByPost(), and setDomainName() methods to enable cross-domain tracking.

Parameters
enable:Boolean — If this parameter is set to true, then linker is enabled. Else, linker is disabled.
setCampaignTrack()method 
public function setCampaignTrack(enable:Boolean):void

Sets the campaign tracking flag. By default, campaign tracking is enabled for standard Google Analytics set up. If you wish to disable campaign tracking and the associated cookies that are set for campaign tracking, you can use this method.

Parameters
enable:Boolean — True by default, which enables campaign tracking. If set to false, campaign tracking is disabled.
setCampContentKey()method 
public function setCampContentKey(newCampContentKey:String):void

Sets the campaign ad content key. The campaign content key is used to retrieve the ad content (description) of your advertising campaign from your campaign URLs. Use this function on the landing page defined in your campaign.

Parameters
newCampContentKey:String — New campaign content key to set.
setCampMediumKey()method 
public function setCampMediumKey(newCampMedKey:String):void

Sets the campaign medium key, which is used to retrieve the medium from your campaign URLs. The medium appears as a segment option in the Campaigns report.

Parameters
newCampMedKey:String — Campaign medium key to set.
setCampNameKey()method 
public function setCampNameKey(newCampNameKey:String):void

Sets the campaign name key. The campaign name key is used to retrieve the name of your advertising campaign from your campaign URLs. You would use this function on any page that you want to track click-campaigns on.

Parameters
newCampNameKey:String — Campaign name key.
setCampNOKey()method 
public function setCampNOKey(newCampNOKey:String):void

Sets the campaign no-override key variable, which is used to retrieve the campaign no-override value from the URL. By default, this variable and its value are not set. For campaign tracking and conversion measurement, this means that, by default, the most recent impression is the campaign that is credited in your conversion tracking. If you prefer to associate the first-most impressions to a conversion, you would set this method to a specific key, and in the situation where you use custom campaign variables, you would use this method to set the variable name for campaign overrides. The no-override value prevents the campaign data from being over-written by similarly-defined campaign URLs that the visitor might also click on.

Parameters
newCampNOKey:String — Campaign no-override key to set.
setCampSourceKey()method 
public function setCampSourceKey(newCampSrcKey:String):void

Sets the campaign source key, which is used to retrieve the campaign source from the URL. "Source" appears as a segment option in the Campaigns report.

Parameters
newCampSrcKey:String — Campaign source key to set.
setCampTermKey()method 
public function setCampTermKey(newCampTermKey:String):void

Sets the campaign term key, which is used to retrieve the campaign keywords from the URL.

Parameters
newCampTermKey:String — Term key to set.
setClientInfo()method 
public function setClientInfo(enable:Boolean):void

Sets the browser tracking module. By default, Google Analytics tracks browser information from your visitors and provides more data about your visitor's browser settings that you get with a simple HTTP request. If you desire, you can turn this tracking off by setting the parameter to false. If you do this, any browser data will not be tracked and cannot be recovered at a later date, so use this feature carefully.

Parameters
enable:Boolean — Defaults to true, and browser tracking is enabled. If set to false, browser tracking is disabled.
setCookiePath()method 
public function setCookiePath(newCookiePath:String):void

Sets the new cookie path for your site. By default, Google Analytics sets the cookie path to the root level (/). In most situations, this is the appropriate option and works correctly with the tracking code you install on your website, blog, or corporate web directory. However, in a few cases where user access is restricted to only a sub-directory of a domain, this method can resolve tracking issues by setting a sub-directory as the default path for all tracking. Typically, you would use this if your data is not being tracked and you subscribed to a blog service and only have access to your defined sub-directory, or if you are on a Corporate or University network and only have access to your home directory. In these cases, using a terminal slash is the recommended practice for defining the sub-directory.

Parameters
newCookiePath:String — New cookie path to set.
setCookieTimeout()method 
public function setCookieTimeout(newDefaultTimeout:int):void

Sets the campaign tracking cookie expiration time in seconds. By default, campaign tracking is set for 6 months. In this way, you can determine over a 6-month period whether visitors to your site convert based on a specific campaign. However, your business might have a longer or shorter campaign time-frame, so you can use this method to adjust the campaign tracking for that purpose.

Parameters
newDefaultTimeout:int — New default cookie expiration time to set.
setDetectFlash()method 
public function setDetectFlash(enable:Boolean):void

Sets the Flash detection flag. By default, Google Analytics tracks Flash player information from your visitors and provides detailed data about your visitor's Flash player settings. If you desire, you can turn this tracking off by setting the parameter to false. If you do this, any Flash player data will not be tracked and cannot be recovered at a later date, so use this feature carefully.

Parameters
enable:Boolean — Default is true and Flash detection is enabled. False disables Flash detection.
setDetectTitle()method 
public function setDetectTitle(enable:Boolean):void

Sets the title detection flag. By default, page title detection for your visitors is on. This information appears in the Contents section under "Content by Title." If you desire, you can turn this tracking off by setting the parameter to false. You could do this if your website has no defined page titles and the Content by Title report has all content grouped into the "(not set)" list. You could also turn this off if all your pages have particularly long titles. If you do this, any page titles that are defined in your website will not be displayed in the "Content by Title" reports. This information cannot be recovered at a later date once it is disabled.

Parameters
enable:Boolean — Defaults to true, and title detection is enabled. If set to false, title detection is disabled.
setDomainName()method 
public function setDomainName(newDomainName:String):void

Sets the domain name for cookies. There are three modes to this method: ("auto" | "none" | [domain]). By default, the method is set to auto, which attempts to resolve the domain name based on the location object in the DOM.

Parameters
newDomainName:String — New default domain name to set.
setLocalGifPath()method 
public function setLocalGifPath(newLocalGifPath:String):void

Sets the local path for the Urchin GIF file. Use this method if you are running the Urchin tracking software on your local servers. The path you specific here is used by the setLocalServerMode() and setLocalRemoteServerMode() methods to determine the path to the local server itself.

Parameters
newLocalGifPath:String — Path to GIF file on the local server.
setLocalRemoteServerMode()method 
public function setLocalRemoteServerMode():void

Invoke this method to send your tracking data both to a local server and to the Google Analytics backend servers. You would use this method if you are running the Urchin tracking software on your local servers and want to track data locally as well as via Google Analytics servers. In this scenario, the path to the local server is set by setLocalGifPath().

setLocalServerMode()method 
public function setLocalServerMode():void

Invoke this method to send your tracking data to a local server only. You would use this method if you are running the Urchin tracking software on your local servers and want all tracking data to be sent to your servers. In this scenario, the path to the local server is set by setLocalGifPath().

setRemoteServerMode()method 
public function setRemoteServerMode():void

Default installations of Google Analytics send tracking data to the Google Analytics server. You would use this method if you have installed the Urchin software for your website and want to send particular tracking data only to the Google Analytics server.

setSampleRate()method 
public function setSampleRate(newRate:Number):void

Sets the new sample rate. If your website is particularly large and subject to heavy traffic spikes, then setting the sample rate ensures un-interrupted report tracking. Sampling in Google Analytics occurs consistently across unique visitors, so there is integrity in trending and reporting even when sampling is enabled, because unique visitors remain included or excluded from the sample, as set from the initiation of sampling.

Parameters
newRate:Number — New sample rate to set. Provide a numeric as a whole percentage, 0.1 being 10%, 1 being 100%.
setSessionTimeout()method 
public function setSessionTimeout(newTimeout:int):void

Sets the new session timeout in seconds. By default, session timeout is set to 30 minutes (1800 seconds).

Session timeout is used to compute visits, since a visit ends after 30 minutes of browser inactivity or upon browser exit.

If you want to change the definition of a "session" for your particular needs, you can pass in the number of seconds to define a new value.

This will impact the Visits reports in every section where the number of visits are calculated, and where visits are used in computing other values.

For example, the number of visits will increase if you shorten the session timeout, and will decrease if you increase the session timeout.

Parameters
newTimeout:int — New session timeout to set in seconds.
setSize()method 
public function setSize(w:Number, h:Number):voidParameters
w:Number
 
h:Number
setVar()method 
public function setVar(newVal:String):void

Sets a user-defined value. The value you supply appears as an option in the Segment pull-down for the Traffic Sources reports. You can use this value to provide additional segmentation on users to your website. For example, you could have a login page or a form that triggers a value based on a visitor's input, such as a preference the visitor chooses, or a privacy option. This variable is then updated in the cookie for that visitor.

Parameters
newVal:String — New user defined value to set.
trackEvent()method 
public function trackEvent(category:String, action:String, label:String = null, value:Number):Boolean

Constructs and sends the event tracking call to GATC.

Parameters
category:String — The general event category (e.g. "Videos").
 
action:String — The action for the event (e.g. "Play").
 
label:String (default = null) — An optional descriptor for the event.
 
value:Number — An optional value to be aggregated with the event.

Returns
Boolean — Whether the event was successfully sent.
trackPageview()method 
public function trackPageview(pageURL:String = ""):void

Main logic for GATC (Google Analytic Tracker Code). If linker functionalities are enabled, it attempts to extract cookie values from the URL. Otherwise, it tries to extract cookie values from document.cookie. It also updates or creates cookies as necessary, then writes them back to the document object. Gathers all the appropriate metrics to send to the UCFE (Urchin Collector Front-end).

Parameters
pageURL:String (default = "") — Optional parameter to indicate what page URL to track metrics under. When using this option, use a beginning slash (/) to indicate the page URL.
trackTrans()method 
public function trackTrans():void

Sends both the transaction and item data to the Google Analytics server. This method should be called after trackPageview(), and used in conjunction with the addItem() and addTrans() methods. It should be called after items and transaction elements have been set up.

Event detail
readyevent 
Event object type: com.google.analytics.events.AnalyticsEvent
AnalyticsEvent.type property = com.google.analytics.events.AnalyticsEvent.READY

Dispatched after the factory has built the tracker object.

The name of the event when the tracker is ready.