Event Tracking Example
| html/javascript code | Button | equivalent code in my actionscript |
|---|---|---|
| onClick="javascript:pageTracker._trackEvent('button', 'pressed', 'btn1', 1);" | trackGA("button", "pressed", "btn1", 1); | |
| onClick="javascript:pageTracker._trackPageview('pressed/btn2');" | trackGA("page", "pressed/btn2"); | |
| Pick the ball up and throw it! | ||
This experiment was borrowed from Circle-cube
Watch the calls go to Google Analytics:
- Get firebug- you must have this Firefox plugin
- Enable Network monitoring in this page
- Click the Net tab
- Google Analytics calls go out as calls to images so itf you want to see only those drill down to watch images by clicking the images tab
- Everytime a call is fired you will see it and can even inspect it's parameters and headers (they show up as GET_utm.gif?utmwv=.....)

