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.
Question:
How to do setup a native application for Analytics?
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?
I know Android supports Java Script via WebViews(Webkit);my application does not have webviews, it is native!
I have not worked on JavaScript since school so excuse me if I sound naive.
Thanks.
Google Analytics provide a guide for implementation on a mobile device.
Refer to http://code.google.com/apis/analytics/docs/tracking/mobileAppsTracking.html
To get started have a look at this guide from google.
Related
Im trying to get my Iphones live location to show on a map on my website.
Is there a way to acomplish this easily using HTML5 Geolocation or is it better to use Google Maps Geolocation API, or some other library?
Thanks.
I use Google Maps Geolocation API in WEB APP developed with .NET C #
And it was great
At HyperTrack we have an SDK which you can plugin to your app in as little as 3 lines of code and automatically enable location tracking in your application and view (for free) on our Dashboard. In our Sandbox mode (read: Test Mode) you can track and assign actions for up to 20 users for free as well. This mode also gives you an Action Widget that you can embed anywhere to see the activity of your user(s)/device(s).
For iOS you can visit our iOS Integration Guide.
I have decided to learn how to create Android APK on windows for personal/learning use (Not for Android Play).
My design plan is to load a remote HTML page on android app and allow user to click a few links and then app make a post request to an API to get m3u8 of the video and play it !I already created the HTML web page and have the API access.
So could you guys point me to a beginner tutorial/example and what software and tools I need and which one is easiest to start with (to achieve my design goal)? (I installed PhoneGap but not sure if that is the only tool I need and if it is the easiest path. So I wait for your advice).
Furthermore, does installing java JDK creates any security issues for my PC? (since I heard lots of bad news about Java in past few years.)
If you are going with Phonegap, I would recommend you to first read the phonegap documentation so you can setup a basic phonegap project (phonegap). I would recommend to implement the site functionality inside phonegap instead of just loading an external site; this way you have access to more phone controls than from a web browser. But if it is really a requirement to load the external site, basically, the phone gap would load an empty page that would load your external site using the cordova inappbrowser plugin, here is the github page of this project (inappbrowser).
I am looking to integrate Push Notification in my Jquery mobile web App using PhoneGap for Android. Is there any solution to put cloud messaging in web app like push notification.
My app is based on getting friends location and checked in new location so i was looking for messaging or push notification in web app.
i am also read about http://www.html5rocks.com/en/tutorials/eventsource/basics/
but this was not helpful for me.
If real time Push Notification not possible in HTML5 web app Please let me about asynchronous messaging like offline messaging in my app.
I recently implemented realtime messaging with the WebSocket protocol, it is easy to implement, very performant and it supports encryption.
Try Urban Airship. You get 1 million free push notifications every month.
It is also working with Phonegap.
Link: http://docs.urbanairship.com/build/phonegap.html
ScaleDrone allows pushing to (and from) PhoneGap and web. It will use Websockets if possible and other technologies when Websockets are unavailable.
There is an API for this: http://www.w3.org/TR/2014/WD-push-api-20141007/, but I wouldn't count on platform support here. However, since you are using PhoneGap, you can integrate your app with native cloud messaging. Here's a tutorial.
Push Notification can be implemented. If you are using Phonegap, PushPlugin ia a good available option. This plugin is for use with Cordova, and allows your application to receive push notifications on Amazon Fire OS, Android, iOS, Windows Phone and Windows8 devices. ALso it is free to use.
The Android implementation uses Google's GCM (Google Cloud Messaging) service.
For detailed implementation guide using Android refer Android section in this link.
Hope it will answer your question. this is late answer here, can be helpful to you as well as others looking for similar kind of solution.
how do I make in-app purchases from my javascript application which will be bundled into an apk? I discovered the google javascript api but it only allows you to verify whether purchases have been made, not to make actual transactions. I can't find any third party apps that bundle a hardware accelerated canvas with an HTML5 app, and provide plugins for android/iOS in-app purchases. Is there somewhere I can find the full REST api for the Google Play store?
There is no REST API for in-app billing from Android applications. Your best bet is to write the code in Java and use JavaScript hooks in your HTML app to call them as necessary. Using WebView.addJavascriptInterface, etc.
How does one go about including Google analytics for Trigger.io-built apps? I can see that the mobile web built with trigger.io would be just a matter of embedding the GA JS code. But what about iOS or Android?
We have integrated the Flurry Analytics SDK as of our v1.4.19 platform release. Documentation available here:
http://docs.trigger.io/en/v1.4/modules/flurry.html
It is also possible to integrate the Google Analytics native SDK (or any other analytics SDK) using the plugin system.
Simple answer:
You already answered your own question - embed the Google GA JS code.
Alternative answer:
Another alternative is that you could utilize forge.ajax and fire the .trackPageView method in the success callback. In this case you would have to add the proper domain permission in your config file.
However, isn't GA tied to a specific domain (or group of domains)? In the case of PhoneGap or trigger.io there is no domain name.
Also, see this question & answer -
Step by step to get Google Analytics working in PhoneGap 1.2.0 on iOS (phonegapalytics)
Embedding the JavaScript version of Google Analytics won't work - for some reason, the tracking calls don't fire any events, so you need to use the measurement API.
I've created a plugin that allows you to use Google Analytics with Trigger.io on github, which you can use: http://bit.ly/1F3VM1J
The plugin uses the Request and Prefs module to send analytics data to Google, and it works with the realtime dashboard too. You can track screenviews and events only at the moment, but it should be sufficient for your application.
To track a pageview, you can do the following:
// send screenview tracking data
ga('send', 'screenview', 'App Load');