Google Analytics SDK for Windows and Windows Phone

The Google Analytics SDK makes it easy to connect your Windows and Windows Phone store apps to Google Analytics using its new Google Analytics Universal Analytics service.

UPDATE: v1.3 now supports UWP Windows 10 Store apps

In March of 2013, Google "reimagined" their analytics API and introduced the Universal Analytics service built specifically for mobile developers. If you are building a Windows or Windows Phone store app and want to use Google Analytics to track your users, this library is for you.

While Google currently only ships SDKs for iOS or Android, the Google Analytics platform and service is made to work with any platform. This SDK is not an official Google SDK but rather a community developed, open source SDK that exists to help developers take advantage of Google Analytics in their Windows and Windows Phone app. It is the most comprehensive and widely used Google Analytics SDK available and is used in thousands of apps in the Windows store today.

A brief history of Google Analytics

Google Analytics was originally built to track websites. Apps were allowed to participate by pretending to be websites. Over time, Google was able to hide this from developers by building SDKs for iOS and Android along with adding the ability to create new analytics properties without requiring a valid domain name.
In 2013, Google overhauled the service and shipped the public beta of it's newer Universal Analytics service. Along with this update, they invented the new measurement protocol. The universal analytics service (and underlying measurement protocol) were made with both websites and apps in mind and offers a variety of great features to help app developers track application usage better than before. Nice work Google!

How do app developers take use the latest and greatest Google Analytics platform?
If you're an iOS or Android developer, Google ships SDKs for these platforms:
Google Analytics SDK for Android
Google Analytics SDK for iOS

What about Windows, Windows Phone, and other platforms?
This is where the new measurement protocol comes in. Any app on any platform can utilize the analytics service in the same way that the iOS and Android SDKs do as long as it adheres to the measurement protocol spec and policy. The good news is, you don't have to do it yourself. This project makes it easy to add the latest and greatest version of Google Analytics to your Windows (JS and Xaml store apps) and Windows Phone apps just like you can in iOS and Android today.

What about other existing Google Analytics libraries out there for developers?
There are already some fantastic libraries out there today for the Google Analytics classic service (aka UTM or Urchin Tracking Module). These libraries will continue to work today and tomorrow. However, UTM does not support all the great features that the newer universal analytics service provides. Furthermore, Google no longer appears to support creating new UTM based properties for apps. Specifically, if you created a new Google Analytics property after 3/22/2013, you will need this SDK to track your app.
If you created your Google Analytics property before 3/22/2013 and you don't want to create a new property, use a different SDK such as Google Analytics for WinRT (Windows 8 "Metro" apps), Google Analytics for Windows Phone 7 and 8, or GoogleAnalyticsTracker

What is so great about the new universal analytics service and measurement protocol for apps?

Here are a few features that have stood out to me:
  • You can now create a single property for your app and create unique profiles to filter per platform and/or version of your app. This cleans up your GA account and allows you to easily compare and contrast performance on various platforms.
  • Application exception tracking!
  • E-commerce (in app purchase) tracking
  • Timing tracking to measure app performance at critical moments of your app.
  • Improved custom dimensions & metrics
You can also read more here and here.

About this SDK

This SDK is intended to have feature parity as well as API similarity (adjusted for .NET best practices) with the official Google Analytics SDK for Android. Download today or peruse the docs -- and don't forget to leave feedback in the discussion forum. Start tracking your apps today!

Last edited Aug 11 at 8:40 PM by timgreenfield, version 29