Tracking events and setting up Google Analytics for websites seems easy. You are creating an account with one of the Google Analytics service providers, such as Google. They give you javascript code that you embed on your pages (which event you want to track) and voila .. you did.
I wrote my own application for Android phones, which is actually an adaptation of the actual website. Now I need to configure Google Analytics and track this native application.
Question:
How to set up my own application for Google Analytics?
We have Java Script code (not Google Analytics, but for some other engines) that runs on the original website. Is there any way to include this in my own application?
I know that Android supports Java Script through WebViews (Webkit), my application does not have web views, it is native!
I have not worked on JavaScript since school, so excuse me if I will be naive.
Thanks.
Samuh source share