Packagecom.rojored.gatracking.net
Classpublic class RequestVariables

The RequestVariables class encapsulates all of the possible __utm.gif's request parameters.



Public Properties
 PropertyDefined by
  utmac : String
Account string.
RequestVariables
  utmcc : String
Cookie values.
RequestVariables
  utmcn : String
Starts a new campaign session.
RequestVariables
  utmcr : String
Indicates a repeat campaign visit.
RequestVariables
  utmcs : String = "-"
Browser language encoding.
RequestVariables
  utmdt : String
Page title.
RequestVariables
  utme : String
Event tracking data.
RequestVariables
  utmfl : String
Adobe Flash Player version.
RequestVariables
  utmhn : String
Host name.
RequestVariables
  utmje : String
Whether the browser is Java-enabled.
RequestVariables
  utmn : String
Unique generater request ID, used to prevent caching of the GIF image.
RequestVariables
  utmp : String
Page name.
RequestVariables
  utmr : String
Referrer.
RequestVariables
  utmsc : String
Screen color depth.
RequestVariables
  utmsr : String
Screen resolution.
RequestVariables
  utmt : String
Type variable applied to events (utmt=event), transactions, items and user-defined variables.
RequestVariables
  utmul : String
Browser language.
RequestVariables
  utmwv : String = "4"
Tracking code version.
RequestVariables
Public Methods
 MethodDefined by
  
Constructor
RequestVariables
  
toString():String
Concatenates all defined properties, to be used as GET parameters.
RequestVariables
Property detail
utmacproperty
utmac:String  [read-write]

Account string.

The value of this property is not URL-encoded in the request.

This parameter is mandatory; it must appear on every request, it must be non-empty.

Implementation
    public function get utmac():String
    public function set utmac(value:String):void
utmccproperty 
public var utmcc:String

Cookie values. This parameters encodes all the cookies requested from the page.

The value for this property is URL-encoded in the request.

This parameter is mandatory; it must appear on every request, it must be non-empty.

utmcnproperty 
public var utmcn:String

Starts a new campaign session.

Either utmcn or utmcr is present on any given request. Possible values for this parameter are 1 (true) or 0 (false).

This parameter is optional.

utmcrproperty 
public var utmcr:String

Indicates a repeat campaign visit.

Either utmcn or utmcr is present on any given request. Possible values for this parameter are 1 (true) or 0 (false).

This parameter is optional.

utmcsproperty 
public var utmcs:String = "-"

Browser language encoding.

The value of this property is not URL-encoded in the request.

This parameter is optional. If it's not set by the browser, the default is used.

The default value is -.

utmdtproperty 
public var utmdt:String

Page title.

The value of this property is URL-Encoded in the request.

This parameter is optional.

utmeproperty 
public var utme:String

Event tracking data.

Event data, encoded; FIXME: figure the format.

This parameter is optional, used in event tracking.

utmflproperty 
public var utmfl:String

Adobe Flash Player version.

The value of this property is URL-encoded in the request.

This parameter is optional.

utmhnproperty 
public var utmhn:String

Host name.

The value of this property is URL-encoded in the request.

Mandatory, since Analytics tracks sites.

utmjeproperty 
public var utmje:String

Whether the browser is Java-enabled.

Possible values are 1 (true) or 0 (false).

This parameter is optional.

utmnproperty 
public var utmn:String

Unique generater request ID, used to prevent caching of the GIF image.

Our implementation uses epoch time when the request is made as a value.

This parameter is mandatory, but it would be handled by the library.

utmpproperty 
public var utmp:String

Page name.

The value of this property is URL-encoded in the request.

This parameter is mandatory.

utmrproperty 
public var utmr:String

Referrer.

Complete URL, including request parameters. The value of this property is URL-encoded.

This parameter is optional.

utmscproperty 
public var utmsc:String

Screen color depth.

The value of this property is URL-encoded.

This parameter is optional.

utmsrproperty 
public var utmsr:String

Screen resolution.

The value of this property is URL-encoded.

This parameter is optional.

utmtproperty 
public var utmt:String

Type variable applied to events (utmt=event), transactions, items and user-defined variables.

The value of this property is URL-encoded.

This parameter is mandatory for events.

utmulproperty 
public var utmul:String

Browser language.

The value of this property is URL-encoded.

This parameter is optional.

utmwvproperty 
public var utmwv:String = "4"

Tracking code version.

FIXME: not sure how this works, using "4" for now.

The value of this property is not URL-encoded.

This parameter is optional.

Constructor detail
RequestVariables()constructor
public function RequestVariables()

Constructor

Method detail
toString()method
public function toString():String

Concatenates all defined properties, to be used as GET parameters.

Returns
String