Google Analytics Real Time tracking for Windows Phone, who’s using my app right now?

Interested to see what happens right after you send everyone a push notification? I am!

At first I thought it wasn’t possible to do Page tracking from within the MSAF + Google Analytics. But after a little bit of investigation I saw that it was always overwritten by MSAF, a small modification made it possible.

The NuGet Package I created (now updated) has new methods to track the page on the AnalyticsTracker helper-class.

public interface IAnalyticsTracker
{
    void Track(string category, string name);
    void Track(string category, string name, string label);
    void TrackPage(Uri pageUri);
    void TrackPage(string page);
}

I now have a simple extra call inside the OnNavigatedTo methods on the Page.

protected override void OnNavigatedTo(NavigationEventArgs e)
{
    base.OnNavigatedTo(e);
    var analyticsTracker = new AnalyticsTracker();
    analyticsTracker.TrackPage(e.Uri);
}

And the result with testing both my emulator and on the phone itself was this image.

image

Try it out yourself.

  • Gravatar Alejandro August 23rd, 2012 at 03:41
    Hi mark, I could implement analytics in my apps thanks to your tutorial.
    I have a question, where am I supposed to see the events tracked by AnalyticsTracker.Track in the dashboard. I see the TrackPage method tracking in the dashboard, but I am unable to find the tracking with the string category, string name, string label information.
    Thanks and keep on the good work :)
  • Gravatar Reggie September 11th, 2012 at 05:04
    Hi mark, there is a question about Google analytics in WP7. Do you know how to get the UTMA when track event happening?
    I found one UTMA data save in IsolatedStorageSettings.ApplicationSettings, but this data seem not changed when track event happening.
  • Gravatar irving cab May 17th, 2013 at 03:57
    Hiya very cool web site!! Man .. Excellent .. Wonderful .
    . I'll bookmark your web site and take the feeds additionally? I'm happy to
    find a lot of useful information here in the put up, we'd like develop more strategies in this regard, thank you for sharing. . . . . .
  • Gravatar autocad May 21st, 2013 at 03:26
    I blog often and I truly appreciate your content.
    This article has truly peaked my interest. I am going to bookmark your
    website and keep checking for new information about once a week.
    I subscribed to your RSS feed too.
  • Gravatar nike air max 90 May 21st, 2013 at 11:29
    his or her long-term durability can be a concern if you should regularly cram them in a travel back pack.
  • Gravatar chaussure adidas May 21st, 2013 at 11:29
    I agree! For Ferrari name brand headphones, they check great. I could possibly never around my life pull off that seem.
  • Gravatar ラルフローレンポロ May 22nd, 2013 at 11:15
    Fascinating blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple adjustements would really make my blog stand out. Please let me know where you got your theme. Thank you
  • Hey! I just wanted to ask if you ever have any issues with hackers? My last blog (wordpress) was hacked and I ended up losing several weeks of hard work due to no backup. Do you have any solutions to prevent hackers?
  • Gravatar kate spade May 22nd, 2013 at 20:40
    Hey there would you mind letting me know which web host you're utilizing? I've loaded your blog in 3 different web browsers and I must say this blog loads a lot faster then most. Can you suggest a good internet hosting provider at a fair price? Thank you, I appreciate it!
  • Gravatar nike May 23rd, 2013 at 04:00
    Think it similar to a journal or maybe a magazine in general interest for anybody to look over. Funny, witty, controversial, entertaining, useful, acerbic, thoughtful, serious, curious, unexpected comebacks usually are welcome.
  • Gravatar power balance band May 24th, 2013 at 00:20
    Think it just like a journal as well as a magazine involving general interest for everybody to look at. Funny, witty, controversial, entertaining, useful, acerbic, thoughtful, serious, curious, unexpected comebacks will be welcome.
Gravatar