Is this what you are thinking off with regards to adding it to the 
TaskController?

TaskControllerImpl.java:
...
public void addTasks(Task tasks[], TaskPriority priority) {
        // Track module usage
        String taskClass = tasks[0].getClass().getName();
        taskClass = taskClass.substring(taskClass.lastIndexOf(".") + 1);
        GoogleAnalyticsTracker GAT = new GoogleAnalyticsTracker(taskClass, 
"/JAVA/"+taskClass);
        Thread gatThread = new Thread(GAT);
        gatThread.setPriority(Thread.MIN_PRIORITY);
        gatThread.start();
        
        ...
}
...

We could also do something like this to make the text more informative but that 
requires adding information about all modules to the taskcontroller:
String gatTaskTitle = null, gatTaskPath = null;
switch(taskClass) {
        case "MzMLReadTask": gatTaskTitle = "mzML Read"; gatTaskPath = 
"/JAVA/RAW/Import/mzML";
        case "MassDetectionTask": gatTaskTitle = "Mass Detection"; gatTaskPath 
= "/JAVA/RAW/MassDetection";
        ...
}

Or do you have another suggestion?

/Thomas

-----Original Message-----
From: Tomas Pluskal [mailto:plus...@oist.jp] 
Sent: 31. maj 2015 08:22
To: Developer discussion
Subject: Re: [Mzmine-devel] Track MZmine module usage in Google Analytics

Hi Thomas,

> 
> Here are my comments:
> 
> 1.
> Adding the tracking to the main menu will cause the tracking to be activated 
> every time the dialog box is opened. This does not necessary result in the 
> module being run.

How about adding it to the TaskController then? We can track each time a task 
is executed.

> 2.
> If we add it to the Preference dialog then the user cannot disable the 
> feature without opening the software which means that information will be 
> send when the user first opens the software. By allowing the user to control 
> it from the start up scripts then he or she can disable it all together.

True, but if we only track the execution of the modules, no tracking 
information is sent just by starting the software...

Cheers,

Tomas


===============================================
Tomas Pluskal
G0 Cell Unit, Okinawa Institute of Science and Technology Graduate University
1919-1 Tancha, Onna-son, Okinawa 904-0495, Japan
WWW: https://groups.oist.jp/g0
TEL: +81-98-966-8684
Fax: +81-98-966-2890


------------------------------------------------------------------------------
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

------------------------------------------------------------------------------
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

Reply via email to