Packagecom.google.analytics.v4
Classpublic class Configuration

Google Analytic Tracker Code (GATC)'s configuration / state component. This encapsulates all the configurations for the entire GATC module.



Public Properties
 PropertyDefined by
  allowAnchor : Boolean = false
Enable use of anchors for campaigns.
Configuration
  allowDomainHash : Boolean = true
Unique domain hash for cookies.
Configuration
  allowLinker : Boolean = false
Enable linker functionality.
Configuration
  allowLocalTracking : Boolean = true
To be able to track in local mode (when protocol is file://)
Configuration
  bucketCapacity : Number = 10
Capacity of the token bucket.
Configuration
  campaignKey : CampaignKey
The campaign key value of the application.
Configuration
  campaignTracking : Boolean = true
Track campaign information flag.
Configuration
  conversionTimeout : Number
Default cookie expiration time in seconds.
Configuration
  cookieName : String
[read-only] Indicates the name of the cookie.
Configuration
  cookiePath : String = "/"
Default cookie path to set in document header.
Configuration
  detectClientInfo : Boolean = true
Detect client browser information flag.
Configuration
  detectFlash : Boolean = true
Flash version detection option.
Configuration
  detectTitle : Boolean = true
Set document title detection option.
Configuration
  domain : Domain
[read-only] Domain name for cookies.
Configuration
  domainName : String = ""
The domain name value.
Configuration
  hasSiteOverlay : Boolean = false
Indicates if has site overlay.
Configuration
  idleLoop : Number = 30
Default idle timer loop time in seconds (30 seconds).
Configuration
  idleTimeout : Number = 60
Default idle timer inactivity time in seconds (1 minute).
Configuration
  isTrackOutboundSubdomains : Boolean = false
Boolean flag to indicate if outbound links for subdomains of the current domain needs to be considered as outbound links.
Configuration
  localGIFpath : String = "/__utm.gif"
Local service mode GIF url.
Configuration
  maxOutboundLinkExamined : Number = 1000
Upper limit for number of href anchor tags to examine.
Configuration
  organic : Organic
[read-only] Indicates the Organic reference.
Configuration
  remoteGIFpath : String = "http://www.google-analytics.com/__utm.gif"
The remote service mode GIF url.
Configuration
  sampleRate : Number
Indicates the sample rate value of the application.
Configuration
  secureRemoteGIFpath : String = "https://ssl.google-analytics.com/__utm.gif"
The secure remote service mode GIF url.
Configuration
  serverMode : ServerOperationMode
Actual service model.
Configuration
  sessionTimeout : Number
Default inactive session timeout in seconds (30 minutes).
Configuration
  tokenCliff : int = 10
The number of tokens available at the start of the session.
Configuration
  tokenRate : Number = 0.20
The rate of token being released into the token bucket.
Configuration
  trackingLimitPerSession : int
[read-only] This is the max number of tracking requests to the backend allowed per session.
Configuration
  transactionFieldDelim : String = "|"
Delimiter for e-commerce transaction fields.
Configuration
  version : String
[read-only] Indicates the version String representation of the application.
Configuration
Public Methods
 MethodDefined by
  
Creates a new Configuration instance.
Configuration
  
addOrganicSource(engine:String, keyword:String):void
Adds a new organic source.
Configuration
Property detail
allowAnchorproperty
public var allowAnchor:Boolean = false

Enable use of anchors for campaigns.

allowDomainHashproperty 
public var allowDomainHash:Boolean = true

Unique domain hash for cookies.

allowLinkerproperty 
public var allowLinker:Boolean = false

Enable linker functionality.

allowLocalTrackingproperty 
public var allowLocalTracking:Boolean = true

To be able to track in local mode (when protocol is file://)

bucketCapacityproperty 
public var bucketCapacity:Number = 10

Capacity of the token bucket.

campaignKeyproperty 
public var campaignKey:CampaignKey

The campaign key value of the application.

See also

campaignTrackingproperty 
public var campaignTracking:Boolean = true

Track campaign information flag.

conversionTimeoutproperty 
public var conversionTimeout:Number

Default cookie expiration time in seconds. (6 months).

cookieNameproperty 
cookieName:String  [read-only]

Indicates the name of the cookie.

Implementation
    public function get cookieName():String
cookiePathproperty 
public var cookiePath:String = "/"

Default cookie path to set in document header.

detectClientInfoproperty 
public var detectClientInfo:Boolean = true

Detect client browser information flag.

detectFlashproperty 
public var detectFlash:Boolean = true

Flash version detection option.

detectTitleproperty 
public var detectTitle:Boolean = true

Set document title detection option.

domainproperty 
domain:Domain  [read-only]

Domain name for cookies. (auto | none | domain) If this variable is set to "auto", then we will try to resolve the domain name based on the HTMLDocument object. note: for Flash we try to auto detect the domain name by using the URL info if we are in HTTP or HTTPS if we can not detect the protocol or find file:// then the "auto" domain is none.

Implementation
    public function get domain():Domain
domainNameproperty 
public var domainName:String = ""

The domain name value.

hasSiteOverlayproperty 
public var hasSiteOverlay:Boolean = false

Indicates if has site overlay.

idleLoopproperty 
public var idleLoop:Number = 30

Default idle timer loop time in seconds (30 seconds).

idleTimeoutproperty 
public var idleTimeout:Number = 60

Default idle timer inactivity time in seconds (1 minute).

isTrackOutboundSubdomainsproperty 
public var isTrackOutboundSubdomains:Boolean = false

Boolean flag to indicate if outbound links for subdomains of the current domain needs to be considered as outbound links. Default value is false.

localGIFpathproperty 
public var localGIFpath:String = "/__utm.gif"

Local service mode GIF url.

maxOutboundLinkExaminedproperty 
public var maxOutboundLinkExamined:Number = 1000

Upper limit for number of href anchor tags to examine.

If this number is set to -1, then we will examine all the href anchor tags.

In other words, a -1 value indicates that there is no upper limit.

Note: maybe use Number.INFINITY instead of -1

organicproperty 
organic:Organic  [read-only]

Indicates the Organic reference.

Implementation
    public function get organic():Organic
remoteGIFpathproperty 
public var remoteGIFpath:String = "http://www.google-analytics.com/__utm.gif"

The remote service mode GIF url.

sampleRateproperty 
sampleRate:Number  [read-write]

Indicates the sample rate value of the application.

Implementation
    public function get sampleRate():Number
    public function set sampleRate(value:Number):void
secureRemoteGIFpathproperty 
public var secureRemoteGIFpath:String = "https://ssl.google-analytics.com/__utm.gif"

The secure remote service mode GIF url.

serverModeproperty 
public var serverMode:ServerOperationMode

Actual service model.

Note : "service" is wrong we name it server

sessionTimeoutproperty 
public var sessionTimeout:Number

Default inactive session timeout in seconds (30 minutes).

tokenCliffproperty 
public var tokenCliff:int = 10

The number of tokens available at the start of the session.

tokenRateproperty 
public var tokenRate:Number = 0.20

The rate of token being released into the token bucket. Unit for this parameter is number of token released per second. This is set to 0.20 right now, which translates to 1 token released every 5 seconds.

trackingLimitPerSessionproperty 
trackingLimitPerSession:int  [read-only]

This is the max number of tracking requests to the backend allowed per session.

Implementation
    public function get trackingLimitPerSession():int
transactionFieldDelimproperty 
public var transactionFieldDelim:String = "|"

Delimiter for e-commerce transaction fields.

versionproperty 
version:String  [read-only]

Indicates the version String representation of the application.

Implementation
    public function get version():String
Constructor detail
Configuration()constructor
public function Configuration(debug:DebugConfiguration = null)

Creates a new Configuration instance.

Parameters
debug:DebugConfiguration (default = null)
Method detail
addOrganicSource()method
public function addOrganicSource(engine:String, keyword:String):void

Adds a new organic source.

Parameters
engine:String — The engine value.
 
keyword:String — The keyword of the specified engine value.