| Package | com.google.analytics.core |
| Class | public class DomainNameMode |
| Method | Defined 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 | ||
| Constant | Defined 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 | ||
| DomainNameMode | () | constructor |
public function DomainNameMode(value:int = 0, name:String = "")Creates a new DomainNameMode instance.
Parametersvalue:int (default = 0) — The enumeration value representation.
|
|
name:String (default = "") — The enumeration name representation.
|
| toString | () | method |
public function toString():StringReturns the String representation of the object.
ReturnsString — the String representation of the object.
|
| valueOf | () | method |
public function valueOf():intReturns the primitive value of the object.
Returnsint — the primitive value of the object.
|
| auto | constant |
public static const auto:DomainNameModeAttempts to automaticaly resolve the domain name.
| custom | constant |
public static const custom:DomainNameModeCustom 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" ) ) ;
| none | constant |
public static const none:DomainNameModeDeterminates 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.