With the TrackAction behavior selected, go to the Properties window and locate the Trigger window. Locate the ConsoleAnalytics behavior and drag it onto the LayoutRoot node in the Objects and timeline window.ĭo the same for the TrackAction behavior, dragging it onto the ContentFrame node. Open up the Assets window in Expression Blend and expand out the Behaviors node. I prefer the latter as it gives you great designer support for adding behaviors to your pages. To wire up the MSAF you can either manually write the XAML, or you can open your Silverlight application in Expression Blend. We’ll create a new Silverlight application within Visual Studio using the Silverlight Navigation Application project template.Īdd references to the dlls you copied to the temporary folder to your Silverlight application (not the associated web project). Also from the Assemblies folder (eg ) copy out the Google.WebAnalytics assembly). Once loaded, you want to rebuild the following projects:įor each of these projects grab the generated dll and copy it to a temporary folder.
You will see some prompts, one for the password to a signing key (just cancel this dialog) and some relating to source control (you can permanently remove the source control bindings). Within the expanded folder locate the Silverlight 3 solution file (eg .sln) and open it in Visual Studio 2008. This will download a zip file, which you should expand on your machine.
Go to the codeplex site, click on the Source Code tab and then click the Download link under the Latest Version sign. The first thing to do is to download the latest MSAF bits. We’ll add Google Analytics tracking so that you can track when users go between pages. To demonstrate how you can do this let’s use the default Silverlight Navigation project template from Visual Studio.
– Google’s information on working with the MSAF ( ) – The Microsoft Silverlight Analytics Framework ( ) This issue has now been resolved so if you are going to work with the GoogleAnalytics library with the SL Analytics Framework, make sure you get the latest source code, rather than downloading the initial release.įirstly, some important URLs that you may want to take a look at: It was frustrating not because the framework is hard to use, in fact far from it, but because there was a small bug in the GoogleAnalytics library that prevented it working in certain timezones (I tested it in Australia, New Zealand and parts of Europe and it appeared that there were issues in most timezones outside the US). Yesterday I spent a somewhat frustrating day getting familiar with the Microsoft Silverlight Analytics Framework that was announced at MIX.