Skip to content

Improved Stats: Visitor count can be wrong #1795

@rachelmcr

Description

@rachelmcr

Describe the bug

When I select the current month on the "This Year" tab, I expect the stats to match what I see on the "This Month" tab. However, the Visitors count doesn't match — the visitor count for "This Month" is too high.

It looks like the Visitors count for "This Month" may simply be adding up the total visitors for each day in the month. However, this is not accurate if the same visitor comes to the site on multiple days in the month.

To Reproduce
Steps to reproduce the behavior:

  1. Log in to a store with WC Admin where at least one visitor has returned to the store on multiple days in the same month.
  2. Enable the Improved Stats feature.
  3. Select the "This Year" tab, select the current month, and note the number of visitors displayed.
  4. Select the "This Month" tab and note that the number of visitors is different.

Screenshots

This Month tab (in January) This Year tab (January selected)

Mobile Environment
Please include:

  • Device: iPhone XS
  • iOS version: 13.3
  • WooCommerce iOS version: 3.5.0.0 TestFlight beta

Metadata

Metadata

Assignees

Labels

feature: statsRelated to stats, including Top Performers.type: bugA confirmed bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions