Windows 8 Metro and Google Analytics

Can I use the Google Analytics JavaScript library (https://developers.google.com/analytics/devguides/collection/gajs/) for a Windows Metro JavaScript-based application to track user views?

+4
source share
4 answers

In general, if the JavaScript library you want to use is located on a CDN or server external to your application, the answer is no, since Windows applications written using HTML / JavaScript cannot load external JavaScript libraries ... if you try, a security exception will occur.

Many libraries will work fine if you copy the JS file to your project and run it locally. For example, jQuery works just fine. I have not tried the Google Analytics library, so you can just test it and see if it will work with the local copy.

Something else to consider, however, is that, unlike a website, a Windows application written in HTML / JavaScript format can sometimes be disabled, in which case a library written with the assumption of a network connection is more likely total will not work. Therefore, in this particular case, you may not receive the data that you are hoping for.

Hope this helps.

+4
source

we tried http://w8ga.codeplex.com/ (w8ga) to work with GA in our win8 js application. Currently, W8GA does not seem to support html / js. Also, I have no idea why the developer did not increase it (it only supports C # / xaml metro application)

So we found another way to do this; Look for the cobra Tab answer at the bottom of this page: http://social.msdn.microsoft.com/Forums/en-US/winappswithhtml5/thread/f81ebbb9-d711-40f1-8a82-9aed44e2d8fe/

And finally, we are waiting for the Adobe Omniture sdk: http://microsite.omniture.com/t2/help/en_US/sc/appmeasurement/winrt/index.html#Developer_Quick_Start

Hope these answers help ...

+1
source

We use the free version of markedup in our applications with great success. In addition to simple pageviews, it shows some specific application numbers, such as the number of installations, exception information, etc.

+1
source

I would recommend using the Google Analytics SDK for Windows 8 and Windows Phone . It is built as a component of WinRT and therefore supports JS and Xaml Win8 applications.

Full disclosure: I am the author of this SDK; I built it for my application and decided to open it. There are other structures, but AFAIK, none of them support the new GA universal analytics protocol, so they only work with the old GA properties and do not support all the interesting new GA features recently added only for applications.

0
source

All Articles