Marked Up is a fantastic tool for user analytics with Windows 8 apps and with Caliburn Micro really easy to setup. For the sake of this blog post I’m going to assume you already have an app up and running with Caliburn Micro and are looking to integrate Marked Up analytics into your app.
First pull in the MarkedUp client from Nuget, nice and easy! We then need to set up the client in the Configure override of your application in App.xaml.cs.
We then want to hook into the lifecycle methods of the application in App.xaml.cs. In particular we want to override the following methods. Some you will most likely already have implemented.
- PreviewViewFirst (if you are using a view first approach).
We can then hook the appropriate methods into the Marked Up client. The really useful one if you’re using a view first approach is as you’re registering the navigation service in Caliburn Micro is to register it with the Marked Up client so that all app page navigations are recorded.
And we’re done! Couldn’t get much easier.