Using Google Analytics to your Windows Phone Apps

For developers that would like to track the usage of your Windows Phone app that are in the marketplace. Google Analytics is actually a decent choice given that setting up is fairly easy.

Simply head over to and login with your existing Google Account. Next click on the “Admin” tab for administration controls to create a new account as shown in the screenshot below.

Create new Account

Since we are going to track Windows Phone apps, select Mobile app instead of website and click on “Get Tracking ID”
Get Tracking ID

In the next page, you will be presented with the Tracking ID.

Now we will move on to how to use the Tracking ID. The Google Analytics SDK is available on codeplex. Alternatively you could get it through Nuget by searching for “Google Analytics SDK for Windows 8 and Windows Phone”.

After the SDk is installed, you will see an analytics.xml file appearing in your project. For Google Analytics to work, we would just need to uncomment one entry in the xml file. Uncomment the below code and add in your Tracking ID.


For another advance features of the SDK, please refer to the documentation at codeplex

Some examples of the other features are such as page tracking, event tracking and exceptions.

Lastly you would be able to see the gathered data via Google Analytics portal.

This entry was posted in Google, Windows Phone, winrt and tagged , , . Bookmark the permalink.

4 Responses to Using Google Analytics to your Windows Phone Apps

  1. Does your site have a contact page? I’m having
    problems locating it but, I’d like to shoot you an email.
    I’ve got some ideas for your blog you might be interested in hearing.
    Either way, great site and I look forward to seeing it develop over


  2. I’m not sure exactly why but this blog is loading very slow
    for me. Is anyone else having this issue or is it a issue on
    my end? I’ll check back later and see if the problem still exists.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s