| Package | com.remitoffoli.gaff |
| Class | public class PageTracker |
GAFF (Google Analytics For Flex/Flash) is an open-source project witch goal is to provide an easy way to use Google Analytics with ActionScript.
See also
| Property | Defined by | ||
|---|---|---|---|
| name : String [read-only]
The
name property has to correspond to the
JavaScript PageTracker propertie name. | PageTracker | ||
| Method | Defined by | ||
|---|---|---|---|
|
PageTracker(name:String)
Constructor.
| PageTracker | ||
|
_setVar(newVal:String):void
This method allow you to add a custom value to filter
your analytics results.
| PageTracker | ||
|
_trackPageview(... arguments):void
With this method you add page view to your Google Analytics
account/profile.
| PageTracker | ||
|
getPageTracker(name:String = "pageTracker"):PageTracker
[static]
This static method returns a
PageTracker
object wich name is the name argument value. | PageTracker | ||
| name | property |
name:String [read-only]
The name property has to correspond to the
JavaScript PageTracker propertie name.
The default name of the tracker given by GA (Google Analytics)
during the creation of a new account or profile is
pageTracker.
public function get name():String
See also
| PageTracker | () | constructor |
public function PageTracker(name:String)Constructor.
You must use getPageTracker static method
to create or retrieve already created PageTracker
instances.
name:String |
See also
| _setVar | () | method |
public function _setVar(newVal:String):voidThis method allow you to add a custom value to filter your analytics results.
ParametersnewVal:String — The value of pageTracker's custom value.
|
| _trackPageview | () | method |
public function _trackPageview(... arguments):voidWith this method you add page view to your Google Analytics account/profile.
Parameters... arguments — One or more (comma separated) expressions.
|
/myApp/general/page02 :
var pageTracker:PageTracker = PageTracker.getPageTracker();
pageTracker._trackPageview("myApp","general","page02");
| getPageTracker | () | method |
public static function getPageTracker(name:String = "pageTracker"):PageTracker
This static method returns a PageTracker
object wich name is the name argument value.
If there is no PageTracker instance
corresponding to this name, the method will return a
new PageTracker instance.
name:String (default = "pageTracker") |
PageTracker —
A PageTracker object wich name is the
name argument value.
|
See also