Package | com.rojored.gatracking.net |
Class | public class CookieJar |
CookieJar
class stores the persistent values for the
"umt cookies" used in Google Analytics tracking.
Persistent values are kept using flash's SharedObject
.
Property | Defined by | ||
---|---|---|---|
currentVisit : Number [read-only]
Timestamp of the begining of the user's current visit, in UNIX epoch.
| CookieJar | ||
domain : String [read-only]
The domain name for which this jar stores cookie values.
| CookieJar | ||
domainHash : int [read-only]
The domain hash, used in
__utma , __utmb and
__utmz cookies. | CookieJar | ||
firstVisit : Number [read-only]
Timestamp of the user's first visit, in UXIX epoch.
| CookieJar | ||
lastVisit : Number [read-only]
Timestamp of the user's last visit, in UNIX epoch.
| CookieJar | ||
numSessions : Number [read-only]
Number of sessions the user has had since their first visit.
| CookieJar | ||
visitorId : int [read-only]
Random number used as a unique ID for visitors.
| CookieJar |
Method | Defined by | ||
---|---|---|---|
CookieJar(domain:String)
Constructor.
| CookieJar | ||
generateNewUTMAValue():String
Generate a new value for the utma cookie, updating the
lastVisit and utmaExpiration properties. | CookieJar | ||
utmaExpiration():int
Expiration date for the utma cookie, in UNIX epoch time.
| CookieJar |
currentVisit | property |
currentVisit:Number
[read-only]Timestamp of the begining of the user's current visit, in UNIX epoch.
Implementation public function get currentVisit():Number
domain | property |
domain:String
[read-only]The domain name for which this jar stores cookie values.
Implementation public function get domain():String
domainHash | property |
domainHash:int
[read-only]
The domain hash, used in __utma
, __utmb
and
__utmz
cookies.
public function get domainHash():int
firstVisit | property |
firstVisit:Number
[read-only]Timestamp of the user's first visit, in UXIX epoch.
Implementation public function get firstVisit():Number
lastVisit | property |
lastVisit:Number
[read-only]Timestamp of the user's last visit, in UNIX epoch.
Implementation public function get lastVisit():Number
numSessions | property |
numSessions:Number
[read-only]Number of sessions the user has had since their first visit.
Implementation public function get numSessions():Number
visitorId | property |
visitorId:int
[read-only]Random number used as a unique ID for visitors.
Implementation public function get visitorId():int
CookieJar | () | constructor |
public function CookieJar(domain:String)
Constructor.
Parametersdomain:String — The domain name for which the CookieJar
will manage cookies.
|
generateNewUTMAValue | () | method |
public function generateNewUTMAValue():String
Generate a new value for the utma cookie, updating the
lastVisit
and utmaExpiration
properties.
String |
utmaExpiration | () | method |
public function utmaExpiration():int
Expiration date for the utma cookie, in UNIX epoch time.
Returnsint |