Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GoogleAnalytics 1.0.0

Get all the stats on YOUR server!!

  1. DarkN3ss
    For PocketMine-MP:
    Alpha_1.4 - API 1.0.0
    Hello all (Please note this was entered for the contest but i have to remove the contest tag as it has been updated for the new API)
    Today I have a new plugin for you called GoogleAnalytics. What is it you might ask? well the name sorta says it all... its a plugin that sends server/player stats to your Google Analytics page. This plugin will allow you to track events:

    • connections (With IP)
    • Player Logins/spawns
    • Quits(and time spent on the server)
    • respawns
    • deaths(Aswell as by who/what)
    • kills
    As well as the ton of other stuff you can track/do with Google Analytics, like track what country the player comes from.

    How did I come up with this idea? Well Fox32 over on the bukkit website made one for bukkit with the bukkit API in Java Link Here, So I thought why not have one for PocketMine in PHP, that way I can keep track of my servers without even needing to connect to them, as well as being able to access my live stats on the go!

    Install

    1. Setup a Google Analytics Account Here
    2. Setup a Profile for your Server o n Google Analytics(Admin>Under account click "Create new account">enter details and save)
    3. Put the plugin file in your plugin folder
    4. Run the plugin once to generate the default config file of the plugin
    5. Setup the configuration file as described under this sentence
    analytics Setup:
    • analyticsServerDomain: example.com The domain you choosed for your google analytics report without the protocol ("http://") or empty if you didn't choosed a domain. You can leave it empty if you don't now what to insert.
    • analyticsServerAccount: UA-XXXXXXXX-X or MO-XXXXXXXX-X The tracking id of your google analytics report (I recommend to use a the MO version, you only need to replace UA by MO).
    • How do I set up my Google Analytics account page?
      At 0:35 I mean the "At the moment" number wont be correct, the rest of the plugin stats are 100% correct :)
    • Another tip would be to experiment in Google Analytics and click on everything in the sidebar, because you never know what ausome stats you might stumble upon.
    Updating the data in Google Analytics can take some time, the data is live EXCEPT for the "At the moment" number under the "Real-Time" heading, that is not live/correct! The first setup takes at least one day or two!(for generating daily graphs etc)

    I am leaving this plugin in its PHP format so anyone can download it and modify it for their liking. If anyone finds fixes to the few bugs, please report them to me so I can fix the plugin and update it, as well if anyone finds any improvements, please do the same.

    P.S Judges there are free cookies and milk in this plugin if you know were to look :p
    Alternate Categories:
    • Informational

Recent Updates

  1. Updated for 1.4

Recent Reviews

  1. DamarAlbaribin
    DamarAlbaribin
    5/5,
    Version: 1.0.0
    Excellent
  2. Toom_Raider
    Toom_Raider
    5/5,
    Version: 1.1
    NICE WORK! At first I thought it didn't work but I didn't look into the server description well. So I didn't know how to set the config file up. But now it works :D
    1. DarkN3ss
      Author's Response
      Thanks :D I will hopefully be updating it soon for the new API
  3. Hexxah24
    Hexxah24
    5/5,
    Version: 1.1
    This. Is. Awesome. Love it. Yeah. This idea is awesome. One thing: Can you add what commands are being done through Google Analytics?
    1. DarkN3ss
      Author's Response
      Yea I guess so, I will add that in the next update for 1.4 :)
  4. jerlegoman
    jerlegoman
    5/5,
    Version: 1.1
    best server monitoring plugin EVER!
    1. DarkN3ss
      Author's Response
      Thanks! :D
  5. TheLastPixel
    TheLastPixel
    5/5,
    Version: 1.1
    This Plugin IS Awesome, Very Useful & Helpful Information. Good Job Darkn3ss. Hope This Plugin Wins The Plugin Contest.
    1. DarkN3ss
      Author's Response
      Thanks. and I do to :D
  6. iksaku
    iksaku
    5/5,
    Version: 1.1
    Awesome! I will use it once I get my website online ;)
    1. DarkN3ss
      Author's Response
      Thanks, let me know how you like it later on :D
  7. xktiverz
    xktiverz
    5/5,
    Version: 1.1
    Yeah, this idea was just awesome xD
    1. DarkN3ss
      Author's Response
      Thanks for the awesome feedback!
  8. Blair
    Blair
    5/5,
    Version: 1.1
    This plugin is the best ever i am using it at the moment and i cant see any better way to have a good plugin Good job dude keep running the good plugins never give up
    1. DarkN3ss
      Author's Response
      Thanks so much, i'm glad you like it :D
  9. Falk
    Falk
    5/5,
    Version: 1.1
    Awesome idea!
    1. DarkN3ss
      Author's Response
      Thanks! :)
Advertisement