Packagecom.google.analytics.core
Classpublic class DomainNameMode

The domain name mode enumeration class.



Public Methods
 MethodDefined by
  
DomainNameMode(value:int = 0, name:String = "")
Creates a new DomainNameMode instance.
DomainNameMode
  
toString():String
Returns the String representation of the object.
DomainNameMode
  
valueOf():int
Returns the primitive value of the object.
DomainNameMode
Public Constants
 ConstantDefined by
  auto : DomainNameMode
[static] Attempts to automaticaly resolve the domain name.
DomainNameMode
  custom : DomainNameMode
[static] Custom is used to set explicitly to your domain name if your website spans multiple hostnames, and you want to track visitor behavior across all hosts.
DomainNameMode
  none : DomainNameMode
[static] Determinates the "none" DomainNameMode value.
DomainNameMode
Constructor detail
DomainNameMode()constructor
public function DomainNameMode(value:int = 0, name:String = "")

Creates a new DomainNameMode instance.

Parameters
value:int (default = 0) — The enumeration value representation.
 
name:String (default = "") — The enumeration name representation.
Method detail
toString()method
public function toString():String

Returns the String representation of the object.

Returns
String — the String representation of the object.
valueOf()method 
public function valueOf():int

Returns the primitive value of the object.

Returns
int — the primitive value of the object.
Constant detail
autoconstant
public static const auto:DomainNameMode

Attempts to automaticaly resolve the domain name.

customconstant 
public static const custom:DomainNameMode

Custom is used to set explicitly to your domain name if your website spans multiple hostnames, and you want to track visitor behavior across all hosts.

For example, if you have two hosts : server1.example.com and server2.example.com, you would set the domain name as follows :

         pageTracker.setDomainName( new Domain( DomainName.custom, ".example.com" ) ) ;
         
noneconstant 
public static const none:DomainNameMode

Determinates the "none" DomainNameMode value.

"none" is used in the following two situations :

- You want to disable tracking across hosts.

- You want to set up tracking across two separate domains.

Cross- domain tracking requires configuration of the setAllowLinker() and link() methods.