One of the features I'd like to see in Drupal is the ability of selecting which nodes to be included in the statistics module. I'm referring to those "Most viewed in the last period" blocks. The reason I'm proposing this is kind of selfish - but then again, maybe there are people who are in the same boat. I have a "Most viewed topics of all time" block on my main page, and it happens that the most viewed topic is the "About us" page. I mean, who cares? Anyway.

The way I see things, the way to do it (with minimal intrusion), is to populate the "node" table with an extra attribute, default value of 1. When creating a new node, the node header should present an extra checkbox (enabled by default), right below the "Default publishing options". The label would be "Include node in site statistics". It should be pretty straightforward from here on.

Alternatively, if the granularity is too high, another idea is to enable statistics by node type. Under this idea, the admin/configure/node/type/{nodetype} page should get a new checkbox (enabled by default), right below the "Default options" setting. Same principle as above, except that now one can restrict (or not) entire node types.

Do you think this is a neat feature or not?

Comments

magico’s picture

Version: 4.6.0 » x.y.z

Would this still apply to the CVS statistics.module?

LAsan’s picture

Version: x.y.z » 7.x-dev

Would this still apply to the CVS statistics.module?

Feature request go to cvs.

dave reid’s picture

Status: Active » Closed (won't fix)

I think you idea is good and would make a great contrib module or addition to Statistics Advanced module.