Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scribd/GAProxy
A wrapper for Google Analytics in Actionscript
https://github.com/scribd/GAProxy
Last synced: 3 months ago
JSON representation
A wrapper for Google Analytics in Actionscript
- Host: GitHub
- URL: https://github.com/scribd/GAProxy
- Owner: scribd
- License: mit
- Archived: true
- Created: 2010-01-21T01:31:48.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-02-11T00:44:00.000Z (over 14 years ago)
- Last Synced: 2024-06-24T01:40:17.135Z (5 months ago)
- Language: ActionScript
- Homepage:
- Size: 78.1 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-actionscript-sorted - GAProxy - A wrapper for Google Analytics in Actionscript (Unsorted / Other API)
README
## GAProxy
GAProxy is a simple wrapper for Google Analytics in actionscript. It dynamically loads Google's GA.js into the parent page and makes calls directly to the javascript. As a result, it supports every feature of GA with the least amount of code. Including GAProxy will add around 5k to your swf size.
## Features
* Works with all browsers
* SSL support
* Support for terminal events, which get sent during onUnload## Example Usage
### Tracking a page viewvar tracker:GAProxy = new GAProxy(account);
tracker.addEventListener(Event.INIT, onTrackerInit);
private function onTrackerInit(event:Event):void
{
tracker._trackPageview();
}### Sending an event
var tracker:GAProxy = new GAProxy(account);
tracker.addEventListener(Event.INIT, onTrackerInit);
private function onTrackerInit(event:Event):void
{
tracker._trackEvent(category, action, label, value);
}## License
The MIT license. See the [license file](https://github.com/scribd/GAProxy/blob/master/LICENSE)