SFML community forums

General => SFML website => Topic started by: Tank on May 10, 2013, 08:17:56 am

Title: Statistics
Post by: Tank on May 10, 2013, 08:17:56 am
I'd like to ask for some website statistics:

- Average visitors per day (unique).
- Average downloads per day (unique, current version, grouped by operating system and architecture, also bindings).
- Total downloads (also grouped and bindings, per version).

Thanks. :)
Title: Re: Statistics
Post by: Laurent on May 10, 2013, 10:36:27 am
I forgot to add the tracking code to the new website... so there's no stat after the new website was released ;D :-[

Downloads are a little more complicated to track, I found some code but it doesn't seem to work, I'll need to investigate more.
Title: Re: Statistics
Post by: fer_t on May 10, 2013, 11:21:53 am
This stats would be very interessting.

If you need code to track downloads: in most cases they work so:
Your download link links to a PHP which gets operating system and saves it to database then it redirects to the file.
Title: Re: Statistics
Post by: Laurent on May 10, 2013, 03:52:38 pm
Quote
Your download link links to a PHP which gets operating system and saves it to database then it redirects to the file.
Why would I have to do that?
Title: Re: Statistics
Post by: Foaly on May 10, 2013, 09:16:23 pm
I think the point is, that the PHP increments a counter to see how many people downloaded the file (you can additionally log the OS).
Title: Re: Statistics
Post by: Laurent on May 11, 2013, 08:47:54 am
Do you really think that I'm counting everything manually? I use Google Analytics... :P

Adding a download counter is just a javascript call to add to the corresponding <a> tags, I'll get it working as soon as I have more than 5 minutes to spend on it ;)
Title: Re: Statistics
Post by: Laurent on May 11, 2013, 01:00:48 pm
My tracking code was outdated, I updated it and got everything working, including downloads.

So, statistics for SFML 2.0 and the new website start from today. I'll post them when I get enough numbers (most likely next week-end); don't hesitate to remind me if I forget ;)
Title: Re: Statistics
Post by: Tank on May 11, 2013, 05:08:47 pm
Downloads of people having JS disabled however won't be tracked.
Title: Re: Statistics
Post by: Laurent on May 11, 2013, 07:18:03 pm
Same for pages, everything is based on javascript.

I can't get the PHP script to work, but as usual, should be ok as soon as I get more than 5 minutes ;)
Title: Re: Statistics
Post by: Laurent on May 11, 2013, 10:32:38 pm
It seems that their PHP script is totally buggy. I don't even know if it's still maintained.

Since I'm not very interested by statistics, I'm not going to invest more time on this issue and stick to javascript and its inaccurate results for now. Sorry :-\
Title: Re: Statistics
Post by: Tank on May 12, 2013, 12:41:06 am
Piwik (http://piwik.org/)
Title: Re: Statistics
Post by: timo777 on May 17, 2013, 09:05:55 pm
Maybe you can take a look at this (http://goaccess.prosoftcorp.com/) for your server.
Title: Re: Statistics
Post by: Laurent on May 17, 2013, 09:10:56 pm
I can't afford both the price and time required to run a dedicated server. I'm on shared hosting ;)
Title: Re: Statistics
Post by: kralo9 on May 21, 2013, 06:53:14 pm
I can't afford both the price and time required to run a dedicated server. I'm on shared hosting ;)

What host? I am just curious :)
Title: Re: Statistics
Post by: Laurent on May 21, 2013, 08:12:14 pm
OVH (http://www.ovh.com/fr/index.xml) (french).
Title: Re: Statistics
Post by: firefly2442 on May 26, 2013, 09:14:05 pm
http://awstats.sourceforge.net/

Awstats is another.  It may be provided/packaged by your shared host.