| Package | com.google.analytics.components |
| Class | public class FlashTracker |
| Inheritance | FlashTracker flash.display.Sprite |
| Implements | AnalyticsTracker |
| Property | Defined 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 | ||
| Property | Defined by | ||
|---|---|---|---|
| _componentInspectorSetting : Boolean | FlashTracker | ||
| _height : Number = 18 | FlashTracker | ||
| isLivePreview : Boolean | FlashTracker | ||
| livePreviewHeight : Number | FlashTracker | ||
| livePreviewWidth : Number | FlashTracker | ||
| preview : MovieClip | FlashTracker | ||
| _width : Number = 18 | FlashTracker | ||
| Method | Defined 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 | ||
|
clearIgnoredOrganic():void
Clears all strings previously set for exclusion from the Keyword reports.
| FlashTracker | ||
|
clearIgnoredRef():void
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 | ||
|
createEventTracker(objName:String):EventTracker
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 | ||
|
setLocalRemoteServerMode():void
Invoke this method to send your tracking data both to a local server
and to the Google Analytics backend servers.
| FlashTracker | ||
|
setLocalServerMode():void
Invoke this method to send your tracking data to a local server only.
| FlashTracker | ||
|
setRemoteServerMode():void
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 | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched after the factory has built the tracker object. | FlashTracker | |||
| account | property |
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_mc | property |
public var boundingBox_mc:DisplayObject
| _componentInspectorSetting | property |
protected var _componentInspectorSetting:Boolean
| componentInspectorSetting | property |
componentInspectorSetting:Boolean [write-only]Implementation
public function set componentInspectorSetting(value:Boolean):void
| config | property |
config:Configuration [read-write]The Tracker configuration.
Implementation public function get config():Configuration
public function set config(value:Configuration):void
| debug | property |
debug:DebugConfiguration [read-write]The Tracker debug configuration.
Implementation public function get debug():DebugConfiguration
public function set debug(value:DebugConfiguration):void
| _height | property |
protected var _height:Number = 18
| isLivePreview | property |
protected var isLivePreview:Boolean
| livePreviewHeight | property |
protected var livePreviewHeight:Number
| livePreviewWidth | property |
protected var livePreviewWidth:Number
| mode | property |
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
| preview | property |
protected var preview:MovieClip
| version | property |
public static var version:Version
| visualDebug | property |
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
| _width | property |
protected var _width:Number = 18
| FlashTracker | () | constructor |
public function FlashTracker()
| addIgnoredOrganic | () | method |
public function addIgnoredOrganic(newIgnoredOrganicKeyword:String):voidSets 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.
ParametersnewIgnoredOrganicKeyword:String — Keyword search terms to treat as direct traffic.
|
| addIgnoredRef | () | method |
public function addIgnoredRef(newIgnoredReferrer:String):voidExcludes 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.
ParametersnewIgnoredReferrer:String — Referring site to exclude.
|
| addItem | () | method |
public function addItem(item:String, sku:String, name:String, category:String, price:Number, quantity:int):voidAdds 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.
Parametersitem: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):voidAdds 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.
ParametersnewOrganicEngine: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):ObjectCreates 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.
ParametersorderId: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.
|
Object — The tranaction object that was modified.
|
| clearIgnoredOrganic | () | method |
public function clearIgnoredOrganic():voidClears all strings previously set for exclusion from the Keyword reports.
| clearIgnoredRef | () | method |
public function clearIgnoredRef():voidClears all strings previously set for exclusion from the Keyword reports.
| clearOrganic | () | method |
public function clearOrganic():voidClears 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):voidChanges 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).
ParametersnewPath:String — New path to store GATC cookies under.
|
| createEventTracker | () | method |
public function createEventTracker(objName:String):EventTrackerCreates 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.
ParametersobjName:String — The name of the tracked object.
|
EventTracker —
A new EventTracker instance.
|
| getAccount | () | method |
public function getAccount():StringReturns 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.
ReturnsString — the Account ID this tracker object is instantiated with.
|
| getClientInfo | () | method |
public function getClientInfo():BooleanGets the flag that indicates whether the browser tracking module is enabled. See setClientInfo() for more information.
ReturnsBoolean — 1 if enabled, 0 if disabled.
|
| getDetectFlash | () | method |
public function getDetectFlash():BooleanGets the Flash detection flag. See setDetectFlash() for more information.
ReturnsBoolean — 1 if enabled, 0 if disabled.
|
| getDetectTitle | () | method |
public function getDetectTitle():BooleanGets the title detection flag.
ReturnsBoolean — 1 if enabled, 0 if disabled.
|
| getLocalGifPath | () | method |
public function getLocalGifPath():StringGets the local path for the Urchin GIF file. See setLocalGifPath() for more information.
ReturnsString — Path to GIF file on the local server.
|
| getServiceMode | () | method |
public function getServiceMode():ServerOperationModeReturns 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.
ReturnsServerOperationMode —
Server operation mode.
|
| getVersion | () | method |
public function getVersion():StringReturns the GATC version number.
ReturnsString — GATC version number.
|
| isReady | () | method |
public function isReady():BooleanIndicates if the tracker is ready to use.
ReturnsBoolean |
| link | () | method |
public function link(targetUrl:String, useHash:Boolean = false):voidThis 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.
ParameterstargetUrl: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):voidThis 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.
ParametersformObject: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():voidReset the current session clearing the utmb and utmc cookies.
| setAllowAnchor | () | method |
public function setAllowAnchor(enable:Boolean):voidAllows 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 (?).
Parametersenable: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):voidSets 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.
Parametersenable: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):voidSets 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.
Parametersenable:Boolean — If this parameter is set to true, then linker is enabled. Else, linker is disabled.
|
| setCampaignTrack | () | method |
public function setCampaignTrack(enable:Boolean):voidSets 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.
Parametersenable:Boolean — True by default, which enables campaign tracking. If set to false, campaign tracking is disabled.
|
| setCampContentKey | () | method |
public function setCampContentKey(newCampContentKey:String):voidSets 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.
ParametersnewCampContentKey:String — New campaign content key to set.
|
| setCampMediumKey | () | method |
public function setCampMediumKey(newCampMedKey:String):voidSets 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.
ParametersnewCampMedKey:String — Campaign medium key to set.
|
| setCampNameKey | () | method |
public function setCampNameKey(newCampNameKey:String):voidSets 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.
ParametersnewCampNameKey:String — Campaign name key.
|
| setCampNOKey | () | method |
public function setCampNOKey(newCampNOKey:String):voidSets 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.
ParametersnewCampNOKey:String — Campaign no-override key to set.
|
| setCampSourceKey | () | method |
public function setCampSourceKey(newCampSrcKey:String):voidSets 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.
ParametersnewCampSrcKey:String — Campaign source key to set.
|
| setCampTermKey | () | method |
public function setCampTermKey(newCampTermKey:String):voidSets the campaign term key, which is used to retrieve the campaign keywords from the URL.
ParametersnewCampTermKey:String — Term key to set.
|
| setClientInfo | () | method |
public function setClientInfo(enable:Boolean):voidSets 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.
Parametersenable:Boolean — Defaults to true, and browser tracking is enabled. If set to false, browser tracking is disabled.
|
| setCookiePath | () | method |
public function setCookiePath(newCookiePath:String):voidSets 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.
ParametersnewCookiePath:String — New cookie path to set.
|
| setCookieTimeout | () | method |
public function setCookieTimeout(newDefaultTimeout:int):voidSets 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.
ParametersnewDefaultTimeout:int — New default cookie expiration time to set.
|
| setDetectFlash | () | method |
public function setDetectFlash(enable:Boolean):voidSets 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.
Parametersenable:Boolean — Default is true and Flash detection is enabled. False disables Flash detection.
|
| setDetectTitle | () | method |
public function setDetectTitle(enable:Boolean):voidSets 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.
Parametersenable:Boolean — Defaults to true, and title detection is enabled. If set to false, title detection is disabled.
|
| setDomainName | () | method |
public function setDomainName(newDomainName:String):voidSets 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.
ParametersnewDomainName:String — New default domain name to set.
|
| setLocalGifPath | () | method |
public function setLocalGifPath(newLocalGifPath:String):voidSets 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.
ParametersnewLocalGifPath:String — Path to GIF file on the local server.
|
| setLocalRemoteServerMode | () | method |
public function setLocalRemoteServerMode():voidInvoke 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():voidInvoke 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():voidDefault 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):voidSets 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.
ParametersnewRate: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):voidSets 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.
ParametersnewTimeout: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):voidSets 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.
ParametersnewVal:String — New user defined value to set.
|
| trackEvent | () | method |
public function trackEvent(category:String, action:String, label:String = null, value:Number):BooleanConstructs and sends the event tracking call to GATC.
Parameterscategory: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.
|
Boolean — Whether the event was successfully sent.
|
| trackPageview | () | method |
public function trackPageview(pageURL:String = ""):voidMain 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).
ParameterspageURL: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():voidSends 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.
| ready | event |
com.google.analytics.events.AnalyticsEvent
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.