Click or drag to resize
IAnalyticsMonitorTrackFeature Method
Register a feature usage. It is recommended that related features are grouped by using simple dot-notation in the featureName such as e.g. relating print to pdf and print to file by naming the features "print.pdf" and "print.file" respectively

Namespace: EQATEC.Analytics.Monitor
Assembly: EQATEC.Analytics.Monitor (in EQATEC.Analytics.Monitor.dll) Version: 3.2.1.0 (3.2.1)
Syntax
void TrackFeature(
	string featureName
)

Parameters

featureName
Type: SystemString
The name of the feature. If it is null or empty the request is ignored.
Examples
The following shows an example of how you can track features in your application
static class Program 
{   
  [STAThread]
  static void Main(string[] args)
  {
    IAnalyticsMonitor monitor = AnalyticsMonitorFactory.CreateMonitor("YOUR-PRODUCT_KEY");
    monitor.Start();
    try 
    {
       bool exportToFile = ShouldExportToFile(); //omitted for brevity
       if (exportToFile)
         monitor.TrackFeature("export.file");
    }
    finally
    {
      monitor.Stop();
    }
  } 
}
See Also