kidker / gaforflash

Automatically exported from code.google.com/p/gaforflash
Apache License 2.0
0 stars 0 forks source link

Doesn't support V5 Google Analytics in Bridge or AS3 mode #101

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Setup:
* Create a GA tag on your site to track pageviews, using either Async or legacy 
style
* Load the library into your AS3/Flash project and set it up with your account 
code

In AS3 mode:
* Fire a tracking event and watch the result in HTTPFox or similar proxy monitor
* Note the difference between the "utmcc" attributes - basically the domain 
hashing is different, as is the referrer. This causes the two requests to be 
reported as different users, hyperinflating your traffic.

In Bridge Mode:
* It is not possible to use bridge mode with v5 javascript, in Async mode. 
because the methods no longer exist on window.pageTracker or similar, and the 
library does not wait until ga.js is loaded async before trying to use it
* It is necessary to write an additional bridge on the page to accept the 
proxied function calls from AS to Javascript to create compatibility

Proposed resolution:
Requires that a V5 set of classes is written to the codebase, or a bridge 
javascript file included in the project
Unfortunately I don't have the necessary AS3 programming knowledge to 
contribute at the moment.

At very least, it should be clearly stated that this is happening so users are 
aware of the limitation.

Original issue reported on code.google.com by joe.con...@livestation.com on 10 Apr 2012 at 12:15