Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats Traffic: stats_period_accessed event called when opening Insights tab #22717

Closed
staskus opened this issue Feb 28, 2024 · 1 comment · Fixed by #22722
Closed

Stats Traffic: stats_period_accessed event called when opening Insights tab #22717

staskus opened this issue Feb 28, 2024 · 1 comment · Fixed by #22722
Assignees

Comments

@staskus
Copy link
Contributor

staskus commented Feb 28, 2024

Steps

  1. Enable Stats Traffic feature flag
  2. Open Stats
  3. Select Insights tab
  4. Leave Stats
  5. Return to Stats
  6. Confirm Insights tab is opened
  7. Notice both stats_period_accessed and stats_insights_accessed are tracked

It happens because SiteStatsDashboardViewController initializes trafficTableViewController which initializes StatsTrafficDatePickerViewModel which calls period.track() within the initializer.

⚠️ It even happens with Stats Traffic feature flag disabled. trafficTableViewController is incorrectly initialized even when feature flag is disabled.

@dangermattic
Copy link
Collaborator

dangermattic commented Feb 28, 2024

Thanks for reporting! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants