Exclude counter visits by roles and owner

edde42 - March 27, 2009 - 18:44
Project:Statistics Advanced Settings
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I do like the improved stats this module gives the site. There are though two features that I believe would be very useful, especially for page counts.

  • Role Filtering - Be able to set what roles that shall not affect the counter, including UID #1
  • Own content - Option not to count up the users own content

#1

Dave Reid - April 17, 2009 - 02:25

Added ignoring counter visits by role. I'm not going to implement a special case for uid #1 since it is an un-Drupal way to handle those.

#2

Dave Reid - April 17, 2009 - 02:31
Title:Filter on roles and owner» Exclude counter visits by roles and owner

#3

wrunt - May 26, 2009 - 03:29

It looks like this change only disabled access logging per role. The node counter still operates.

AttachmentSize
adstats_role_counter.patch 668 bytes

#4

wrunt - May 26, 2009 - 03:31

How bizarre, my comment was truncated. The rest of it reads:

Attached is a simple patch to correct this. Also note that user_access() always returns TRUE for uid #1 in Drupal, so it may be worth implementing a special case.

#5

Dave Reid - May 26, 2009 - 03:46
Status:active» fixed

Access log and node counter are two separate things. You can't put that in the check for excluding from the access log. There is already the 'exclude visits from counters' permission that should be used. Marking as fixed since this is all implemented.

#6

Dave Reid - May 26, 2009 - 03:48
Version:6.x-1.4» 6.x-1.x-dev

I should note that this functionality is in the 6.x-1.x-dev version right now. I have yet to create a new release.

#7

System Message - June 9, 2009 - 03:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#8

doublejosh - September 29, 2009 - 22:27

Super awesome great. Looking forward to this ('exclude visits from counters.')

#9

littlemisssunshine - October 7, 2009 - 18:30

I've installed the dev version of this module (6.x-1.x-dev) and I can't seem to find the option to disable hits by the admin account.

Am I missing something?

Thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.