View Counts

Do you have a fully fleshed idea that you think Baka-Tsuki should adopt? Post it here.

Moderators: thelastguardian, Fringe Security Bureau, Senior Editors, Senior Translators, Alt. Language Translator/Editor, Executive Council, Project Translators, Project Editors

User avatar
RikiNutcase
Project Translator
Posts: 250
Joined: Mon Jul 16, 2012 4:34 am
Favourite Light Novel: Ahouka!

Re: View Counts

Post by RikiNutcase »

Is the view counts having problems, or is it officially gone?
User avatar
cloudii
Project Translator
Posts: 512
Joined: Mon Mar 25, 2013 4:30 pm
Favourite Light Novel: Ahouka!
Location: awkward buttface
Contact:

Re: View Counts

Post by cloudii »

RikiNutcase wrote:Is the view counts having problems, or is it officially gone?
I'm pretty sure TLG disabled it again, in favor of faster caching.
Twitter: @cloudiirain | BT Userpage | OreShura Translator | Biblia Editor (@HereticLNT) | Clockwork Editor (@HereticLNT)
User avatar
Nurin
馬鹿月の衛星保障機構 [F.S.B]
Posts: 3206
Joined: Fri Jun 07, 2013 6:09 pm
Favourite Light Novel: Ahouka!
Location: お前の頭にある存在だけ。つまり、幻想。
Contact:

Re: View Counts

Post by Nurin »

thelastguardian wrote:More importantly, however, is that the server is getting overloaded. Mediawiki is not very efficient and requires much computation power. One common way to cut down on usage is to disable the page counter and enable caching.

However every time I do that, people start complaining.

^that...

We already changed to a new server, but still...
Call me Nurin!

Image
User avatar
RikiNutcase
Project Translator
Posts: 250
Joined: Mon Jul 16, 2012 4:34 am
Favourite Light Novel: Ahouka!

Re: View Counts

Post by RikiNutcase »

Nurin wrote:
thelastguardian wrote:More importantly, however, is that the server is getting overloaded. Mediawiki is not very efficient and requires much computation power. One common way to cut down on usage is to disable the page counter and enable caching.

However every time I do that, people start complaining.

^that...

We already changed to a new server, but still...
We still have spammers so i think that is a bigger problem.
User avatar
cloudii
Project Translator
Posts: 512
Joined: Mon Mar 25, 2013 4:30 pm
Favourite Light Novel: Ahouka!
Location: awkward buttface
Contact:

Re: View Counts

Post by cloudii »

We have some smart cs people here, right? I don't think view-counts are going to be re-enabled on Baka-Tsuki.

So let's talk about alternatives to track page views (or link clicks) with a third party application. Naturally, it has to be free. xD

I was imagining some kind of javascript click counter. "Onclick", it'll submit things to a third party database that tracks the number of times a link on the sidebar is clicked. Would this work on BT (provided the code is added to common.js)? XDD
Twitter: @cloudiirain | BT Userpage | OreShura Translator | Biblia Editor (@HereticLNT) | Clockwork Editor (@HereticLNT)
User avatar
EusthEnoptEron
Project Translator
Posts: 836
Joined: Mon Jul 13, 2009 10:39 am
Favourite Light Novel: Ahouka!
Location: Switzerland

Re: View Counts

Post by EusthEnoptEron »

I was imagining some kind of javascript click counter. "Onclick", it'll submit things to a third party database that tracks the number of times a link on the sidebar is clicked. Would this work on BT (provided the code is added to common.js)? XDD
It would be a bit tricky because of the same-origin policy, i.e. you can't easily call another website via AJAX. A common workaround is using a script (or img) tag to force the browser to load the external site nonetheless (see JSONP). But in general I think it would be better to use the load event on all pages, because you have no guarantee that the request will be fired at all when the user leaves the page after the click event. On the other hand, using that workaround, the user will have to load additional content if you use an external script, increasing the loading time depending on the bandwidth of the external server.
Another alternative, using the onclick event, might be storing the values in the local storage of the user and then, after a certain threshold, committing the numbers to an external server using <script>, <img>, or whatever. But that's silly, I guess.

Alternatively, I often see: Google Analytics (Premium vs. Free) which is supported by MediaWiki via an extension.
User avatar
Aorii
Project Translator
Posts: 227
Joined: Sat Jan 09, 2010 8:48 pm
Favourite Light Novel: Ahouka!
Location: Veni, Vidi, Nates Calce Concidi

Re: View Counts

Post by Aorii »

Been using Google Analytics for years for things. Their pageview breakdown is very comprehensive and easy to use. Since B-T pages have project name, volume, and chapter as part of the URL this makes searching for the page desired a piece of cake.

Although account permission management with Analytics may prove more annoying, as Analytics is only accessed via Google account and permission given on such a basis. Since the extension seems to modify wiki's general setting and thus forcibly tie all pageview counting for the entire site into one Google Analytics account, information dissemination may require a lot of managing...
Daybreak Project
"You crazy b@stard! I'm gonna treat you like shit until you reveal your true form!!!"
"NO WAY. Over my dead, resurrected and killed again body." -- Kadi, when given a proposal about leaving [Miko-moe] 'as is' in TL.
User avatar
EusthEnoptEron
Project Translator
Posts: 836
Joined: Mon Jul 13, 2009 10:39 am
Favourite Light Novel: Ahouka!
Location: Switzerland

Re: View Counts

Post by EusthEnoptEron »

Aorii wrote:Although account permission management with Analytics may prove more annoying, as Analytics is only accessed via Google account and permission given on such a basis. Since the extension seems to modify wiki's general setting and thus forcibly tie all pageview counting for the entire site into one Google Analytics account, information dissemination may require a lot of managing...
I think we would have to deal with that problem either way, since there would still be a "data manager" who has access to the server (unless we collectively rent a server that is, but that's overkill) — with the difference that Google might be more reliable than a (probably) cheap server, both in terms of stability and accessibility.

Speaking of which, I just exported the pageview data that I have collected for my lil' statistics web app. Those who are interested can grab them here. All saved as CSV files, but there's also an Excel workbook with a nice chart.
User avatar
cloudii
Project Translator
Posts: 512
Joined: Mon Mar 25, 2013 4:30 pm
Favourite Light Novel: Ahouka!
Location: awkward buttface
Contact:

Re: View Counts

Post by cloudii »

EusthEnoptEron wrote:
Aorii wrote:Although account permission management with Analytics may prove more annoying, as Analytics is only accessed via Google account and permission given on such a basis. Since the extension seems to modify wiki's general setting and thus forcibly tie all pageview counting for the entire site into one Google Analytics account, information dissemination may require a lot of managing...
I think we would have to deal with that problem either way, since there would still be a "data manager" who has access to the server (unless we collectively rent a server that is, but that's overkill) — with the difference that Google might be more reliable than a (probably) cheap server, both in terms of stability and accessibility.

Speaking of which, I just exported the pageview data that I have collected for my lil' statistics web app. Those who are interested can grab them here. All saved as CSV files, but there's also an Excel workbook with a nice chart.
I volunteer Simon. XD

Anyways, if we think the google analytics extension will work, then I'll add that to the mental list of issues to pass to TLG the next time a large cycle comes around.

Also, if people want monthly fb stats, I'll be uploading them here. Unfortunately I don't have raw versions of these past months 'cause I didn't think and already started arranging the data.
Twitter: @cloudiirain | BT Userpage | OreShura Translator | Biblia Editor (@HereticLNT) | Clockwork Editor (@HereticLNT)
User avatar
Simon
Editor-in-Chief
Posts: 508
Joined: Wed Dec 28, 2011 9:06 am
Favourite Light Novel:
Location: !=

Re: View Counts

Post by Simon »

*sigh*
My load average is somewhere around this: 0.30, 0.26, 0.19
ePUB generation doesn't even take 10% of that^.

So I have a few spare cores and 70% of the CPUs and 10TB traffic with a gigabit connection.
So the server would easily take on the analytics from B-T

Today I installed Piwik, so if TLG doesn't mind. He could embed it into the wiki.

And to show how it would look like, you can access this PAGE.
ePUB Generator <<Productive>> : BTE-GEN | Yay, I'm free. Let's see how long it takes for this place to go down.
Post Reply

Return to “Proposals and Suggestions”