Google Analytics is the enterprise-class web analytics solution that gives you rich insights into your website traffic and marketing effectiveness. Powerful, flexible and easy-to-use features now let you see and analyze your traffic data in an entirely new way. With Google Analytics, you're more prepared to write better-targeted ads, strengthen your marketing initiatives and create higher converting websites. The best part: this sophisticated, full-featured web analytics package is free.

Google Analytics Home Page

Google Analytics Developer Documentation

Google Analytics For Silverlight is integrated into the Silverlight Analytics Framework and makes it easy for developers and designers to quickly get insight into how users interact with their content. This solution includes:
  • Integration into the Silverlight Analytics Framework.
  • Drag and drop tracking into Microsoft Blend.

The following tracking features are supported:

Event Tracking docs
  • The Event Tracking Category field corresponds to the Category field of the TrackAction behavior.
  • The Event Tracking Action field corresponds to the EventName of the Trigger associated with the TrackAction behavior.
  • The Event Tracking Label field corresponds to the name of the TrackAction parent object.
  • The Event Tracking Value field corresponds to the value field of the TrackAction behavior.

Pageview Tracking through Silverlight Frames
  • URL sent to Google Analytics maps to the page name used in the Frame.

Custom Variables docs
  • Page scope custom variables will correspond to the Custom Properties collection of the TrackAction associated with a specific object on the page (like a button).
  • Session scope custom variables will correspond to the Custom Variables collection of the Google Analytics object connected to your Layout Root.
  • Visitor scope custom variables will correspond to the Custom Properties collection of the ABTesting object being used in the application.

Last edited Mar 15, 2010 at 7:58 PM by Nickski15, version 16

Comments

mules Oct 11, 2011 at 5:30 PM 
Is there anyway to directly set the name of the Page reported to GA through the MSAF interface?
I've tried to set the NavigationState of Microsoft.WebAnalytics.AnalyticsEvent but that just seems to be appended to the name of the aspx page
which "is" my silverlight application. Must be some way to do this???

jpchow Mar 18, 2011 at 11:21 PM 
Can I use Google Analytics on a standalone WPF executable with this framework?

mscherotter Sep 30, 2010 at 4:38 AM 
No - that is a limitation of Google Analytics.

deecodeplex Sep 29, 2010 at 3:43 PM 
I would like to send about 20 custom variables to Google Analytics every time a page is accessed. I see that GA restricts to only 5 variables. Is there a work around ?

PokerDIY Sep 24, 2010 at 8:23 AM 
It would be really nice to see some Google Analytics demos in code - the Console one is very simple and makes sense, but the Google one does not have a TrackAction class - does the Microsoft TrackAction EventTrigger write to Google too? How do you log an action in the Google service, it is not very clear. Thanks for framework, it´s great but there´s so little info on the web about it!

mscherotter Mar 17, 2010 at 5:49 AM 
You can watch the session here where it is demonstrated: http://live.visitmix.com/MIX10/Sessions/CL24

meteormatt Mar 17, 2010 at 4:14 AM 
Is there any Demo to see?