For some reason, my site will show 0 anonymous users and 2-3 may be in Forum statistics section. We get 10,000+ uniques per day and sometimes up to 500 concurrent users so not sure why this is showing very small numbers.

Any known issues?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

troky’s picture

Status: Active » Closed (won't fix)

AF doesn't count online visitors count.

standingtall’s picture

Status: Closed (won't fix) » Active

This was probably not a very helpful resolution. Can you please explain more?

troky’s picture

Status: Active » Needs review
FileSize
2.09 KB

Please try attached patch.

troky’s picture

troky’s picture

Status: Needs review » Fixed

Above patch committed do 7.x.

Status: Fixed » Closed (fixed)

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

standingtall’s picture

Thanks - #3 fixed the issue.

MGParisi’s picture

Version: 7.x-2.0 » 7.x-2.1
Status: Closed (fixed) » Needs work

Not fixed to date.

troky’s picture

Status: Needs work » Closed (fixed)

Have you read #4?

AF reads "session" table to count guest/anonymous users. It is not AF problem when Drupal core doesn't populate that table.
Try to use workaround from #4.

MGParisi’s picture

I tried number 4 and it doesn't work, shouldn't this be "wont fix".

troky’s picture

Calculating and displaying guest count on forum page has been removed. Changes just committed to 7.x-2.x-dev.

ibedoya’s picture

Status: Closed (fixed) » Closed (won't fix)
FileSize
689 bytes

#3 Doesn't fix the issue because use DISTINCT and then only want to show uid 0, only 1 record will be shown.

I did a bit fix to this.

I think this should be "won't fix" since they removed the functionality.

I would like to ask, please, don't remove this functionality, with my patch and #4 is working on stable branch.

zietbukuel’s picture

Well this was a very nice feature, instead of removing it you could have made it optional and add a setting from the admin panel, of course warning the user that the it is not totally accurate. Just my 2c. Thanks for all the work though.

ibedoya’s picture

Issue summary: View changes
Status: Closed (won't fix) » Patch (to be ported)
FileSize
2.56 KB

This patch adds support for guest user count on statistics and is working properly.

Read #12 to know why #3 wasn't working.

Would be nice if this patch was committed on to 7.x-2.x-dev

Also can be useful if someone wants to add the guest user count on their forums.

NOTE:
To count guest is also needed to add this in your theme:

function your_theme_name_preprocess_node(&$variables) {
  //set session so we can track anonymous users
  $_SESSION["anonymous-tracker"]=time();
}
standingtall’s picture

Note #14 kills all caching on your site specially boost.

Michelle’s picture

Status: Patch (to be ported) » Needs review

Fixing the status. I wasn't involved with the discussion so not going to weigh in on whether it should be added right now but, per #15, sounds like it needs to be optional and come with a warning.

podarok’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Status: Needs review » Needs work
Issue tags: +Needs performance review

This can affect performance.
Needs performance review