|
Project Information
Members
Featured
Downloads
Links
|
IntroductionJGoogleAnalytics is a lightweight, unobtrusive Java utility for tracking usage information on Java applications through Google analytics. It can be used for gathering usage statistics on utilities, plugins(Eclipse, IntelliJ, Netbeans etc.), client-side, server-side, middleware, desktop or any Java based applications. Hence, allowing us to perform usage & trend analysis on the application of interest. Maven DependencyJGoogleAnalytics is available on maven repo. Following is the maven pom dependency snippet. <dependency> <groupId>com.boxysystems</groupId> <artifactId>jgoogleanalytics</artifactId> <version>0.5</version> <classifier>sources</classifier> </dependency> UsageIf you have a registered Google analytics account, you can write a code snippet like below to capture the usage data. FocusPoint is a logical point of focus in the application. It can be events like application/module load, user actions, error events etc. //Google analytics tracking code for Library Finder
JGoogleAnalyticsTracker tracker = new JGoogleAnalyticsTracker("Library Finder","1.3.2","UA-2184000-1");
FocusPoint focusPoint = new FocusPoint("PluginLoad");
tracker.trackAsynchronously(focusPoint);Proof Of ConceptFor the proof of concept, I have used this tool in Library Finder-IntelliJ plugin. I was tracking events like plugin load, user actions like Find Library action, Configuration changes action etc. I could see the usage statistics when I login to the google analytics account. If you want to know more, please read this posting. Caveat
|