Comment

Breaking: ABC Bails on Breitbart

35
Walter L. Newton11/02/2010 2:39:41 pm PDT

re: #30 Charles

Here’s a little bit of geekery that I don’t want to make a full post out of, but I’ll mention here in a comment:

I realized that our “Views” counters were actually missing quite a few real world views, because they were only being incremented when someone loaded the individual post for that article. Since our front page contains the full text of the last 10 (or more, it’s configurable) articles, every time someone loads the front page the views for those articles should be incremented too. And the same for the Pages.

So now that’s what happens. Every time someone loads the front page, the LGF Javascript app sends the list of articles to the server via Ajax, where a PHP script connects to the database and increments the counters for those articles.

The immediate thing you’ll notice is that the counts will be higher - a lot of Views were being missed by not counting the front pages.

How do you know that someone is actually reading all of those front page entries?