Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ActionScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.settings
libs
src/com/soenkerohde/ga
.actionScriptProperties
.flexLibProperties
.gitignore
.project
README
build.xml

README

Flex/AIR Google Analytics Tracker library

Flash Builder (Flex 4) library project
The library is supposed to be used in combination with the Swiz framework: http://swizframework.org

API docs: http://srohde.github.com/fgatracker/

USAGE

Add FGATracker to your Swiz BeanLoader
<ga:FGATracker id="fgaTracker" account="[GOOGLE ANALYTICS ID]" xmlns:ga="com.soenkerohde.ga.*" />

dispatch TrackPageEvent or TrackActionEvent on Swiz event bus:

_dispatcher.dispatchEvent( new TrackPageEvent( TrackPageEvent.PAGE, "/pagename" ) );
_dispatcher.dispatchEvent( new TrackActionEvent( TrackActionEvent.ACTION, "category", "action", "label" ) );

_dipatcher is a reference to the Swiz event bus event dispatcher.
If you dispatch from a view set bubbles to true.
If you dispatch from a non-view class: http://swizframework.org/docs/event-handling/#non_view
Something went wrong with that request. Please try again.