FlexHub Forum

Web statistics

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 505
Web statistics
« on: July 01, 2012, 17:13:23 »
With the new FlexHub release svn 1358, we have added web statistics.


Here's an example: http://flexhub.org/stats/flexhub.php?hubid=VKAFLB
The statistics charts are interactive, you can click on a legend item to hide the graph for that item, and you can zoom in by dragging over the desired area in the chart.

From now on flexhub.org will host those web statistics for your hub for free.
To enable it for your hub, there are three simple steps.

1. Make sure your hubsoft is up to date. If you're not running svn 1358 yet: use '!update now' and restart your hub.

2. Make sure that the hubaddress set with !set hub_address is the proper address for your hub.
This address is used to verify the source when your hub sends the statistics to the flexhub.org server. If the address doesn't match the external IP of the hub, the statistics are ignored.

3. Use !webstats_reg <forumnick> <forumpass>
Instead of <forumnick> and <forumpass> use the nickname and password you use when logging into the flexhub.org forum. If you don't have an account yet, register there first.

That's all.
If the webstats registration is successful you'll see a website address for your hub statistics. If you want to broadcast it to your users or operators, you can use the %[webstats] parameter to add to any textcommand.

Some planned features that aren't working yet:
- Password protection of statistics (for private hubs or hubowners who don't want their statistics to be public)
- Worldmap: Shows geolocation of the users in the hub (testversion is working for the support hub only)
- Live chat: Will allow registered users to use webchat from any browser.
« Last Edit: July 02, 2012, 23:36:25 by FlipFlop™ »
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

Offline LadyStardust

  • *****
  • 257
  • aka Puma
Re: Web statistics
« Reply #1 on: July 03, 2012, 08:20:30 »
All web stats settings you can check with !set webstats command. Please don't change them, all you need to be set up is !webstats_reg

Quote
[08:14:30] <`°º¤MotherNature¤º°`> *** !set webstats
[08:14:30] <`°º¤MotherNature¤º°`>

   Available settings:

____________________________________________________________
   !set webstats_enable                        Value: true                                      Use the flexhub.org statistics service
   !set webstats_id                            Value: meow                                    Set the hub ID you received from flexhub.org (don't share this ID, it's linked to this hub!)
   !set webstats_interval                      Value: 1800                                      Time interval between sending statistics
   !set webstats_page                          Value: http://flexhub.org/stats/flexhub.php?hubid=meow      The webpage showing your hub statistics
   !set webstats_token                         Value: gtokEWCWAOLZ                           Set the token you received from flexhub.org

If you can't remember your forum password please let us know and we will try to deal with it  ;)
« Last Edit: July 03, 2012, 10:09:33 by LadyStardust »
Best regards,
LS

Offline massi

  • FlexHub Ambassador and Forum Stalker
  • *
  • 301
Re: Web statistics
« Reply #2 on: July 04, 2012, 17:39:52 »
Very nice work ! Flex it's the right way to go !  ;)

Offline Neolo

Re: Web statistics
« Reply #3 on: July 05, 2012, 11:37:32 »
- Please fix charset problem, it always chasing me.
- I want to have translated stats to my own language.
- I want to embed stats on my website with style like this http://www.flexhub.org/dev/clientstats.php without left menu and big logo.
- I forced to set hub address by naked IP, because I wont accept domain name (my server has 2 IPs)
Error: 12 The specified hub address doesn't resolve to this hub IP.
Thank you. Appreciate your work.  :P
« Last Edit: July 05, 2012, 11:46:57 by Neolo »

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 505
Re: Web statistics
« Reply #4 on: July 05, 2012, 12:06:43 »
- Charset problem will be fixed on next update
- Translation is planned
- Hosting your own stats: I've answered this already. You can edit the Hub-WebStats.lua file to let it send the data you want to your own server. Then you can store that data in a MySQL database and can create and host your own statistics with some php, javascript and the help of http://www.highcharts.com
- I've set that second IP as alternative now for that hub, you should be able to use the domain name now in !set hub_address
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

Offline þ††i£øû]v[™

  • ***
  • 103
  • ::.(Ô;Ô).::
Re: Web statistics
« Reply #5 on: July 09, 2012, 06:42:28 »
yes very nice
good job :)
Greetings
þ††i£øû]v[™

Offline sergius_s

  • *
  • 236
  • Be yourself...
Re: Web statistics
« Reply #6 on: June 12, 2013, 13:43:02 »
It is a very good idea !!!
« Last Edit: August 04, 2013, 14:52:21 by sergius_s »
- I'm sorry for my terrible english...

Offline sergius_s

  • *
  • 236
  • Be yourself...
Re: Web statistics
« Reply #7 on: June 17, 2013, 05:14:27 »
I had one problem today with the web statistics. This is the log bot:

04:06:53] <«»Siberia«»> [FI]
  • Result of sending hub statistics to flexhub.org server: Statistics denied by flexhub.org server: 12 This hub doesn't match the IP for the registered address: siberia.sytes.net:2012, statistics ignored.

If this is another hub, first use !set hub_address <address>:<port> and then use !webstats_reg <forumnick> <forumpass> to register.
[04:36:53] <«»Siberia«»> [FI]
  • Result of sending hub statistics to flexhub.org server: Statistics denied by flexhub.org server: 12 This hub doesn't match the IP for the registered address: siberia.sytes.net:2012, statistics ignored.

If this is another hub, first use !set hub_address <address>:<port> and then use !webstats_reg <forumnick> <forumpass> to register.
[05:36:55] <«»Siberia«»> [FI]
  • Result of sending hub statistics to flexhub.org server: Statistics denied by flexhub.org server: 12 This hub doesn't match the IP for the registered address: siberia.sytes.net:2012, statistics ignored.

If this is another hub, first use !set hub_address <address>:<port> and then use !webstats_reg <forumnick> <forumpass> to register.

But the hub worked fine at this time, hublist pinged the hub normally and users did not have the disconnects.
Then returned to normal job statistics.

P.S.: I'm sorry for my terrible english, I do not speak English - only russian, i use google translator ;)
« Last Edit: June 17, 2013, 05:19:11 by sergius_s »
- I'm sorry for my terrible english...

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 505
Re: Web statistics
« Reply #8 on: June 17, 2013, 09:15:37 »
I think that for some reason the FlexHub webserver couldn't resolve the address siberia.sytes.net to the proper IP for a while.
If it happens more often please let me know.
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

Offline sergius_s

  • *
  • 236
  • Be yourself...
Re: Web statistics
« Reply #9 on: June 17, 2013, 09:25:37 »
Ok, FlipFlop and thanks :)

Maybe the problem was on the server NoIP?
« Last Edit: June 17, 2013, 09:33:12 by sergius_s »
- I'm sorry for my terrible english...

Offline sergius_s

  • *
  • 236
  • Be yourself...
Re: Web statistics
« Reply #10 on: June 19, 2013, 19:55:32 »
On the chart N2 share=0, but It is not so.
Statistics determines the number of users correctly, but share - no...
« Last Edit: June 24, 2013, 17:35:02 by sergius_s »
- I'm sorry for my terrible english...

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 505
Re: Web statistics
« Reply #11 on: June 21, 2013, 10:13:24 »
Thanks for reporting, fixed for next release.
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

Offline sergius_s

  • *
  • 236
  • Be yourself...
Re: Web statistics
« Reply #12 on: June 29, 2013, 16:37:38 »
One of my friends has a problem with the Cyrillic alphabet on the site web statistics.
How can I fix it?
In the settings hub he did !set char_set windows-1251 but it did not help.
May be necessary to replace UTF-8 into cp1251 or windows-1251 in the script Hub-WebStats.lua?
- I'm sorry for my terrible english...

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 505
Re: Web statistics
« Reply #13 on: July 01, 2013, 00:28:32 »
Thanks for reporting. It's a known problem, due to a charset mismatch with the webserver's database fields.
It's on the todo-list to be fixed, but in the meantime: apart from the hubname, the statistics will be correct.
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

Offline sergius_s

  • *
  • 236
  • Be yourself...
Re: Web statistics
« Reply #14 on: July 31, 2013, 17:42:50 »
I saw an interesting phenomenon in the WebStatistics...
Tell me what kind of time loop on the diagrams? Or i do not understand anything in the diagrams :DD
- I'm sorry for my terrible english...