Setting up Android application for Analytics and tracking


Tracking events and setting up Analytics for Websites seems easy. You create an account with one of the Analytics service providers like Google. They give you javascript code that you embed in your pages (whichever event you wish to track) and voila..you're done.

I have written a native application for Android phones, which is actually an adaptation of the actual web site. Now, I am required to setup Analytics and tracking for this native application.



How to do setup a native application for Analytics?

</li> <li>

We have Java Script code(not Google Analytics but for some other engine) that works for the original web site. Is there a way to incorporate that in the native application?

</li> <li>

I know Android supports Java Script via WebViews(Webkit);my application does not have webviews, it is native!

</li> </ol>

I have not worked on JavaScript since school so excuse me if I sound naive.



Google Analytics provide a guide for implementation on a mobile device. Refer to <a href="http://code.google.com/apis/analytics/docs/tracking/mobileAppsTracking.html" rel="nofollow">http://code.google.com/apis/analytics/docs/tracking/mobileAppsTracking.html</a>

To get started have a look at this <a href="http://code.google.com/intl/de/mobile/analytics/docs/android/#gettingStarted" rel="nofollow">guide</a> from google.


  • What is the efficient way to find some pattern in a big text?
  • Impress Pages - HTML widget not saving/publishing
  • Computing the binomial coefficient in C
  • Need help translating C# to VB
  • ASP Net Core - Mixing External Identity Provider with Individual User Accounts for Audit Tracking
  • Change color of row programmatically in WatchKit
  • UML diagram generator in Visual Studio 2010
  • Stitching 2 images (OpenCV)
  • Embedded Glassfish JPA Datasource connection fail
  • Prevent page break in text block with iText, XMLWorker
  • Responsive design method for collapsing a div
  • Python 3.2.2, error(scripts to exe)
  • NSIS decompiler
  • JSR-330 support in Picocontainer : @Inject … @Named(\"xxx)
  • Possible to get mouse events fired when cursor is outside page?
  • UWP/C# - Issue with AQS and USB Devices
  • Can I programmatically choose the Android layout folder?
  • Does Mobilefirst provide a provision to access web services directly?
  • Insert new calendar with SyncAdapter- Calendar API Android
  • Problem while Building a Setup Project for a windows Service?
  • Ensure fsync did its job
  • d3 v4 drag and drop with TypeScript
  • Custom Tabgroup Appcelerator
  • JQuery Internet Explorer and ajaxstop
  • Admob requires api-13 or later can I not deploy on old API-8 phones?
  • Disable Enter in editText android
  • why do I get the error when installing the gem 'pg'? [duplicate]
  • Cannot resolve symbol 'MyApi'
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • C# - Serializing and deserializing static member
  • Opengl-es onTouchEvents problem or a draw problem? [closed]
  • Sending data from AppleScript to FileMaker records
  • Release, debug version and Authorization Google?
  • How to include full .NET prerequisite for Wix Burn installer
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • Linking SubReports Without LinkChild/LinkMaster
  • Is it possible to post an object from jquery to bottle.py?
  • Does armcc optimizes non-volatile variables with -O0?
  • How can i traverse a binary tree from right to left in java?