Possible Duplicate:
How to use Google Analytics with Phonegap without a plugin?
I want to use something like Phonegap to write an app for Android, iOS and Blackberry, as well as generate free analytics data such as session length and how often buttons are pressed. I'd like to be able to do all this in JavaScript if possible but I cannot find any analytics provider that allows this.
The only option I can see is to use Flurry which supports all those OSs. This would require some native code for each platform and a way to call this code from JavaScript. I'd rather avoid having to write native code if possible.
I tried using the web version of Google Analytics (e.g. adding JavaScript snippets to my app code) but this produces the logging error
http://www.google-analytics.com/u/ga_debug.js: Line 18 : Local file. Aborting hit.
which I assume means Google Analytics only works on actual web pages. Google Analytics for apps isn't available for Blackberry either.