Instructions for SilverLight (3.0) The Anvato Analytics Plugin for Microsoft Silverlight player is a small module that tracks both user engagement and video player statistics. Once activated, it will collect statistics and deliver them to the Anvato Analytics server farm so that you can view analytics online at http://analytics.anvato.com . Because the plug-in sends data silently to your Anvato analytics account, you will not notice anything different about your player after it is installed.
This section shows how to silverlight 3.0 based player dynamiclly loads Anvato Anlaytics plugin.
Player will load XAP file from http://plugins.anvato.com/anvatoanlaytics.sl.plugin.3.0.xap using WebClient class and extract DLL from XAP file and
get assemply from extrcated DLL.
This will allow to create and access Anvato Analytics plugin object that is loaded from plugins.anvato.com.
We first define three variables within the player class to
an object (private Object analytics) access anlaytics plugin, a list (private List
After the plugin is loaded and ready, "AnvatoAnlytics.dll" is accessed by traversing the all dll files loaded to player to create anaytics object which contains necessay plugin assemblies and add them to asembly list.
Once a new instance of the plugin object from the AnvatoAnalytics.SLAnalytics assembly is created. and the plugin is initialized with tracker and other parameters. Anvato Anlaytics plugin is simple listen events and send those event to Anvato Anlaytics server farms. In order to that some of the h events should be attcahed a handles such as mediaOpen event fullscreen event etc.
Download sample player implementation and source code to understand how to load and use plugin with Silverlight player Sample Player with Anvato Anlaytics Plugin source code
Deploying Anvato Analytics with an existing instance of Silverlight player is simple: All you need to do is set set your Anvato tracker ID as tracker parameter in HTML embed code . Note that, Plugin uses default plugin directory to load plugins from http://plugins.anvato.com/1.7/. If you need to dowlodn the plugin any other itse, make sure that you set the plugin directoy using anvatoanalyticsplugi parameters