-
Notifications
You must be signed in to change notification settings - Fork 11
Home
Welcome to the **as3-universal-analytics** project.
This is basically Google Universal Analytics for ActionScript 3.0 we also refer to this project as **uanalytics** for short.
The current and latest version is **uanalytics v0.8** you can [download](https://github.com/zwetan/as3-universal-analytics/releases)
Documentation
Each release contains the source code HTML documentation with examples and usages.
[Getting](GettingStarted) An overview of tracking with Google Analytics.
[Tracking](TrackingConfiguration) How to configure the analytics trackers.
[Tracking](TrackingDetailsAndTricks) Google Analytics tracking in details, some workaround and some tricks.
[Tracking](trackWithFlash) For when you want to track from a SWF file.
[Tracking](trackWithAIR) For when you want to track from an AIR application.
[Tracking](trackWithRedtamarin) For when you want to track from the command line.
[The](SimplestTracker) A simple implementation with the essentials explained, if you want to understand how the measurement protocol works.
[Web](WebVsAppProperty) The blurry line between Google Analytics properties.
[Google](GoogleAnalyticsServicesSDK) Google to Sunset Support for Google Analytics Services SDK, Transitions Mobile Analytics to Firebase.
TODO
Minimum Requirement
This library require **Flash Player 11.0** and/or **AIR 3.0** (both released on 04/10/2011).
This library can also work on the command-line and server-side with [RedTamarin](https://github.com/Corsaair/redtamarin) and/or [as3shebang](https://github.com/Corsaair/as3shebang) (both released around 25/10/2014).
It is possible to backport the library for earlier versions (FP 10.0 and AIR 2.0), you will need to provide your own implementation of `libraries.uanalytics.utils.generateUUID()`.
It is even possible to backport the library for much earlier versions (FP 9.0 and AIR 1.0), you will need to rewrite the code without using the `Vector` class.
Legacy
If you absolutely need support for **Flash Player 9.0** you can use the library [gaforflash](https://code.google.com/p/gaforflash/), which is now considered legacy (old!).
Non Goals
There is no plan to reduce the Minimum Requirement.
There is no plan to support a full JavaScript Bridge with `analytics.js`.
It is out of question to port the library to ActionScript 2.0 (feel free to fork the project).
Support
Not only I have a spent some time writing the code, I have also put quite some time writing the documentation, please do read the [documentation](#documentation) first.
If you still encounter problems, and/or things do not work please do not send me direct email or direct twitter/google+/facebook messages [Create](https://github.com/zwetan/as3-universal-analytics/issues/new) instead.
Misc.
If you like this analytic library and want to show your appreciation please star this Github project, and mucho thanks for that.
If you mention this library in a blog post or other tutorials please provide a clear link to the library eg. https://github.com/zwetan/as3-universal-analytics/ , if possible try to refer to the library as "Google Universal Analytics for ActionScript 3.0" and/or "as3-universal-analytics" and/or "uanalytics".
for example: > Credits: This project use open source software [as3-universal-analytics](https://github.com/zwetan/as3-universal-analytics/) (MPL 2.0)
Don't be an a\*\*hole
If you reuse this library in source or binary form for one of your product(s) wether open source or commercial the least you can do is provide due credits and links to this project, and certainly not pretend you developed this library yourself.
If you really want to piss me off, do something like that: [Google](http://www.webanalyticsworld.net/2008/11/google-analytics-and-adobe-flash.html) > Today at Adobe MAX 2008, Sprout (http://www.sproutinc.com/), the premier platform for developing and managing creative engagement marketing campaigns, announced it has integrated Google Analytics™ Tracking for Adobe® Flash® technology into its solution built with the open source Flex framework. The integration of Google Analytics Tracking for Adobe Flash with the Sprout Platform will allow all Sprout Mixer customers that publish rich media content to have access to one of the most robust analytics solutions in the marketplace. They will now be able to track the length of time the consumer interacted with the content, what actions were taken within the application, and detailed anonymous user demographic data.
Not a single reference nor mention to the open source project gaforflash, the news is presented "as if" they developed the solution themselves, extremely infuriating ...
I mean, really? here the context: to develop gaforflash on time to be released for Adobe MAX 2008, I have worked night and day on it (I'm not even saying the half of it, here the [full](https://plus.google.com/u/0/117271975527324598054/posts/QFKV12jK4uS)).
And then, within weeks after you released an open source project, that everyone is happy with, you got this guy [Carnet](https://www.linkedin.com/in/carnet) from Sprout Inc. who present it as > "Our technology platform [...] I am thrilled that we will be able to provide our partners with comprehensive reporting data that combines enhanced event tracking with existing page tracking"
This is what I call being a f\*\*king a\*\*hole, don't do that.
That said, you are not forced to do anything, for example you don't have to mention uanalytics in your Adobe AIR game credits, maybe because you have no credits screen or maybe you want to list only the people and not the software, etc., nobody will enforce that (not me at least).
The Source Code is subject to the terms of the [Mozilla](https://www.mozilla.org/en-US/MPL/), v. 2.0 or [MPL2](https://www.mozilla.org/en-US/MPL/2.0/) for short; if you have doubt or questions about this licensing please consult the [MPL](https://www.mozilla.org/en-US/MPL/2.0/FAQ/).
Also if you need to mention your use of "Google Analytics" you would have to follow the [Google](https://developers.google.com/analytics/terms/branding-policy).