views:

221

answers:

4

40k of compiled code seems like a lot to me to be making some straightforward flash-javascript calls and makes GA unsuitable for banner ad work as well.

Does anyone know if there is a 'lite' version of Google Analytics for Flash?

+2  A: 

How about using directly the javascript functions? say:

ExternalInterface.call("pageTracker._trackPageview", "section/subsection");
ExternalInterface.call("pageTracker._trackEvent", "event", "cat", "label", "value");
Cay
Cay, yes I'm pretty sure thats the answer thought took some sleuthing on the GA pages to find this, and they only mention being able to call pageTracker._trackPageview directly....
eco_bach
What is lost with this solution is the ability to make Google Analytics function calls without a corresponding Javascript implementation on the page (ie: in the case of a banner on another site). Yes, I definitely admit the size is an issue, but it eschews the need for the JavaScript file entirely.
Tegeril
A: 

I don't believe there is a lite version, similarly i don't believe google analytics intended its service be used for ad tracking. That being said, you should try compressing your swf. You can often shave off a big chunk of the file size especially from text source files.

http://www.compress-swf.com/
http://www.softpedia.com/get/Internet/WEB-Design/Flash/swf-compressor.shtml

greg
of course it is meant for ad tracking! It was born out of ad-words and ad-sense.
TandemAdam
I agree with greg. GA was born out of urchin, and I don't think any of them were thought for banner tracking (or even flash). I would evaluate another solution more suited to your problem, like eyeblaster or something similar.
Cay
Event tracking definitely suggests this is designed exactly for ad tracking.
Tegeril
A: 

Cay That should work but how would you pass your custom account ID?

ie If using the GATracker object

var myTacker=GATracker(containerdisplayObject,'customaccountID','Bridge',false)

eco_bach
My solution is only suitable if you have control over the HTML your swf is embedded in. I don't think there is a lite version of the AS3 library, but maybe it wouldn't be too hard to make a custom lite version yourself (you already have the source of the big one to get the procedures).
Cay
A: 

Depending on what you are trying to track, why not just have the flash call home. Posting some variables to a script that loads them in a database?

var counter:LoadVars = new LoadVars();
counter.gamename = gametitle; //set variables here
counter.sendAndLoad("http://your script", result_lv, "POST");
Joey Blake