google-analytics-with-ludei-cocconjs-canvas
===================================
Use analytics.js (GA Universal Analytics) with Ludei's CocoonJS Canvas+ apps by making use of the WebView
No external hosting is needed anymore.
To use:
- Download http://www.google-analytics.com/analytics.js and add contents to file analytics.js.
- Set up a new property in Google Analytics to track a mobile app.
- Modify the web property ID (UA-#) in index.html
- Test it on your phone using Canvas+ environment on your CocoonJS Launcher.
- Your ScreenView should be visible in your real-time Google Analytics report.
I found quite some outdated information when I wanted to use Google Analytics with my Canvas+ game. I found this two very helpful articles and made this up to date example:
http://www.blastam.com/blog/index.php/2013/07/ga-universal-analytics-phonegap-mobile-apps/
http://remvst.com/article-49-using-google-analytics-within-cocoonjs.html