GoogleAnalyticsPlugin
The Google Analytics Plugin allows to use Google Analytics for basic statistics.
The current version tracks events like logins, quits, deads, and kills by user (for all events see here).
You can see some examples how the data is visualized in Google Analytics on the images page.
Install
Updating the data in Google Analytics can take some time, the data is not live! The first setup takes at least one day or two!
Future updates

- Setup a Google Analytics Account
- Setup a Profile for your Server on Google Analytics (You need the entered domain name and the tracking in for the configuration)
- Put the jar file in the plugin folder
- Run the plugin once to generate the default config file of the plugin
- Setup the configuration file as described here
Updating the data in Google Analytics can take some time, the data is not live! The first setup takes at least one day or two!
Future updates
- Add more events (Leave your ideas for events in the comments).
- Integrate tracking of other plugins like iConomy .
- Add an better interface for other modders, to allow them tracking events in their plugins.
is this plugin stil alive? will there be a fix?
@Fox32
Sorry I should have done that... I'll do it sometime soon.
@Connor_13_
How about sending a pull request at https://github.com/Fox32/GoogleAnalyticsPlugin ?
I deleted a few lines of code to get the plugin working for Spigot. I can confirm that it works with spigot 1.7.9.
I AM NOT THE DEVELOPER OR OWNER OF THIS PLUGIN. I HAVE SIMPLY EDITED IT TO MY NEEDS.
here is the file: Link Removed: https://www.mediafire.com/?2xdt1owoqad6uc6
I am also having the String Index Out of Range: -1 error with my 1.7.2 SPIGOT server. I have traced it down to a try catch statement in the event listener class but I'm not 100% sure what is specifically screwing it up.
EDIT: I noticed that it worked perfectly fine on craftbukkit 1.7.9 but it did not on SPIGOT.
SECOND EDIT: Using a previous version of the plugin, I traced the error back to line 321 in GoogleAnalyticsEventListener. This line: String serverVersion = plugin.getServer().getVersion().substring("git-Bukkit-".length()); doesn't return anything because a spigot server would not have "git-Bukkit-" therefore it cannot get the length for the next line to use.
Might be worth mentioning a similar plugin I wrote which Fox32's work inspired me to create. http://dev.bukkit.org/bukkit-plugins/openanalytics
@Fox32
Ok, I can't help but hopefully someone can! It looks like a really good plugin.
@xtechgamer735
I don't have time ATM, but as it is open source now, someone may help me with it: https://github.com/Fox32/GoogleAnalyticsPlugin
@Fox32 Will this plugin be updated to/is it working with 1.7.2?
I'm getting an error with this plugin :/
[22:15:21 WARN]: [GoogleAnalyticsPlugin] Event Listener Error: String index out of range: -1
Using Spigot 1.7.2
@jsnbrown1989
If you selected your Profile > Admin (upper right) > View Settings for Profile (on the right) > "Website's URL" option has a dropdown where you can select it.
But even if you don't set anything, or set something it should work. This setting shouldn't have an influence on the data.
@Fox32
Sorry to be a pain but w/ google's new layout of analytcs, i dont see the option, "Not a website" in Property Settings / Basic Settings where I would assume it would be located.
If you have a second, could you point me in the correct direction?
@jsnbrown1989
You don't need to set a website anymore. Choose "Not a website" in Google Analytics and leave the server_domain in the plugin config empty.
@Fox32 Ok cool. I see that now in the images.
So, just to be clear, When I place a url into the analytics settings, I am placing the server ip in there, correct? And I need to add this ip/url into the config settings as well.
I am unsure as when I type the address into the browser it directs to my hostings website so I dont want to be waiting for two days or so for something I did incorrectly.
I have had several website tracked using analytics before but never a server so I just wanna be sure. :) Thanks for the assistance! This is going to be prove invaluable I'm sure and I'm surprised there is only one plugin for this.
@jsnbrown1989
It's already possible to distinct between players that connect for the first time (new visitors) and players that have already played on the server (returning visitors). See the Google Analytics interface for these informations.
What the plugin can't do and what I can't implement because of limitations on the Minecraft side, is campain tracking.
How possible would it be to add a "First time user" to help track working advertising methods? That could be huge. I feel like this plugin will be great to track activity but tracking first time players could be killer.
@Re4ly
Sure can I updated it. But why and what should I update? Do you have problems with the plugin? For me it's working fine.
Can anyone updatet this please?
is the source available somwhere ? I wanted to add support for Piwik (open source self-hosted analytics).
@Martijnie
Sure