Page MenuHomePhabricator

Should temp users be counted as registered & active users on Special:Statistics?
Open, HighPublic

Description

https://de.wikipedia.beta.wmflabs.org/wiki/Spezial:Aktive_Benutzer shows all the temp users from the last 30 days.

Would not expect them counted as active as that not the case when ips doing the edits

One fix should fix also {{NUMBEROFACTIVEUSERS}} and the count on Special:Statistics

Code is in RecentChangesUpdateJob::updateActiveUsers, needs to call isTemp on each actor_name

Event Timeline

@Mayakp.wiki @nshahquinn-wmf Do you have thoughts on this task? Basically temp accounts are currently being included in the user-related counts on Special:Statistics: https://test.wikipedia.org/wiki/Special:Statistics.
Relevant previous discussion: T337103#9143741

Niharika renamed this task from Should temp users are counted on Special:ActiveUsers / parser function numberofactiveusers / active users on Special:Statistics? to Should temp users be counted as registered & active users on Special:Statistics?.Dec 16 2024, 8:39 AM
Niharika triaged this task as Medium priority.

I would say that temp users should not be counted in these statistics.

The main reason is continuity: temp users would have previously been IP users and would not have been counted. This is the same reason that we are not including temp users in the active editors metric. (It seems like @kostajh and @jhsoby had the same reasoning as well.)

Not necessary for this task, but other ideas that I like:

  • Renaming "registered users" to "permanent users"
  • Changing the description of active users to "permanent users who have..." (changing the title from "active users" to "active permanent users" would be even more precise, but that might be excessive)
  • Adding an "active temporary users" row (this would make it more beneficial to change "active users" to "active permanent users"—otherwise it would seem like "active temporary users" would be included in "active users")

FWIW, English Wikipedia already customizes "active users" to "active registered users".

@Niharika which team would this need input from? I don't see another team tag on this task and I think the page is unowned (so we may need to handle updating it).

@kzimmerman do you have an input on this task? Or if you know who does please include them.

@Niharika what kind of input are you looking for?

In case you missed it, I already provided a Movement Insights opinion in T339291#10455982. That opinion (temp users shouldn't be counted) seems to align with what most people are thinking, so it seems reasonable at this point just to move to implementation.

Obviously, if you want broader consultation about what the definition should be, that's fine, but from your comment it's not clear that that's what you're looking for 😊

@kzimmerman do you have an input on this task? Or if you know who does please include them.

Hey @Niharika, I don't have good context on this. What kind of input are you looking for? Is this in addition to the input Neil previously provided?

Also - I don't always see Phab comments, so please ping me on Slack if you need something and I haven't responded.

@kzimmerman @nshahquinn-wmf My apologies I completely missed Neil's original comment in T339291#10455982 before I wrote mine. I think that comment answers what we need to do here:

I would say that temp users should not be counted in these statistics.
The main reason is continuity: temp users would have previously been IP users and would not have been counted. This is the same reason that we are not including temp users in the active editors metric.

I will update the task description to reflect this. Thanks for your help!

This came up in multiple community discussions and should have higher priority in my opinion. Special:Statistics should at least indicate that it now includes logged out editors as well (which greatly inflates the numbers, especially when users delete their cookies...). Ideally TA should be excluded, just like IPs used to be.

Niharika raised the priority of this task from Medium to High.Jan 29 2026, 4:06 PM

Thanks for that @Johannnes89. I will mark this as higher priority.

Niharika added a subscriber: Madalina.

@Madalina I'm adding this to Next since this feels important in light of the threads Johannes shared above.

Change #1308578 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/core@master] SiteStats: Exclude temporary accounts from active user counts

https://gerrit.wikimedia.org/r/1308578

Change #1308588 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/core@master] SiteStats: Add temporary account columns to site_stats

https://gerrit.wikimedia.org/r/1308588

Change #1308589 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/core@master] SiteStats: Add temporary account counts to site statistics

https://gerrit.wikimedia.org/r/1308589

Adding DBA for any comment on the above proposed schema change

Schema change has my sign off. Feel free to go ahead. It's a pretty low risk table. One thing to note that is that this table was one of the busiest tables in our production in terms of writes. So things might be a bit complicated, e.g. in deploying the schema change. While it's only one row in almost all wikis and ten in three largest ones.

Change #1308588 merged by jenkins-bot:

[mediawiki/core@master] SiteStats: Add temporary account columns to site_stats

https://gerrit.wikimedia.org/r/1308588

Change #1310470 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/core@wmf/1.47.0-wmf.11] SiteStats: Add temporary account columns to site_stats

https://gerrit.wikimedia.org/r/1310470

Change #1310470 merged by jenkins-bot:

[mediawiki/core@wmf/1.47.0-wmf.11] SiteStats: Add temporary account columns to site_stats

https://gerrit.wikimedia.org/r/1310470

Mentioned in SAL (#wikimedia-operations) [2026-07-15T07:06:06Z] <kharlan@deploy2003> Started scap sync-world: Backport for [[gerrit:1310470|SiteStats: Add temporary account columns to site_stats (T339291)]]

Mentioned in SAL (#wikimedia-operations) [2026-07-15T07:08:11Z] <kharlan@deploy2003> kharlan: Backport for [[gerrit:1310470|SiteStats: Add temporary account columns to site_stats (T339291)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-07-15T07:13:54Z] <kharlan@deploy2003> Finished scap sync-world: Backport for [[gerrit:1310470|SiteStats: Add temporary account columns to site_stats (T339291)]] (duration: 07m 48s)