Consent file statistics: 25,664 consent.ts files
Forty numbers on how developers write consent code, read on 22 November 2026.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
File names
Eight numbers on how many public consent files exist, by file name.
25,664 files have consent.ts in the name, and 3,976 have consent.sql in the name.
The consent.ts name leads, and it is 6.5 times as common as consent.sql.
| Statistic | Number |
|---|---|
| consent.ts | 25,664 |
| Consent.tsx | 17,664 |
| consent.js | 13,328 |
| consent.py | 11,696 |
| consent.html | 9,488 |
| consent.md | 9,280 |
| consent.php | 7,264 |
| consent.sql | 3,976 |
.ts files
Eight numbers on the words that consent.ts files use.
The word cookie is in 25.2 in 100 consent.ts files, and gdpr in 4.3 in 100.
The word cookie leads, and analytics follows at 24.2 in 100.
| Statistic | In 100 |
|---|---|
| Cookie | 25.2 |
| Analytics | 24.2 |
| Reject | 13.6 |
| Marketing | 12.5 |
| Scope | 10.9 |
| Necessary | 9.0 |
| Withdraw | 7.7 |
| Gdpr | 4.3 |
.tsx files
Eight numbers on the words that Consent.tsx files use.
The word cookie is in 66.8 in 100 Consent.tsx files, and withdraw in 5.0 in 100.
The word cookie leads, and analytics follows at 47.3 in 100.
| Statistic | In 100 |
|---|---|
| Cookie | 66.8 |
| Analytics | 47.3 |
| Reject | 25.0 |
| Necessary | 17.7 |
| Marketing | 17.0 |
| Scope | 9.8 |
| Gdpr | 5.8 |
| Withdraw | 5.0 |
.js files
Eight numbers on the words that consent.js files use.
The word cookie is in 58.5 in 100 consent.js files, and scope in 6.2 in 100.
The word cookie leads, and analytics follows at 31.2 in 100.
| Statistic | In 100 |
|---|---|
| Cookie | 58.5 |
| Analytics | 31.2 |
| Reject | 21.5 |
| Necessary | 13.0 |
| Marketing | 12.2 |
| Withdraw | 7.7 |
| Gdpr | 7.6 |
| Scope | 6.2 |
.py files
Eight numbers on the words that consent.py files use.
The word scope is in 25.5 in 100 consent.py files, and necessary in 1.7 in 100.
The word scope leads, and reject follows at 13.9 in 100.
| Statistic | In 100 |
|---|---|
| Scope | 25.5 |
| Reject | 13.9 |
| Withdraw | 11.0 |
| Cookie | 6.2 |
| Marketing | 4.9 |
| Analytics | 4.4 |
| Gdpr | 3.0 |
| Necessary | 1.7 |
What is in the file
Forty numbers, one CSV
All forty figures sit in the CSV, each row with a group and a unit.
Five groups
File names lead, and four kinds of consent file follow with their words.
Counts, not apps
The page gives totals and shares, and it names no app, author or host.
Easy to cite
Cite one figure or all forty, giving this page and the day it was read.
How the files were counted
One code search for each file name and each word.
Keep to one file name
Each word query stayed with one file name and extension, so every share has a known total.
Join a single word
A query joined one word to a file name and counted the files that held both.
Try partial reads again
A partial count was tried again after the limit reset, up to three more times.
Do the maths in code
Code did each division, and a test held every share between 0 and 100.
What changes between file types
No single word wins everywhere: the top place goes to cookie in consent.ts, Consent.tsx and consent.js files; scope in consent.py files. The gap from first to eighth place is narrowest in consent.ts files, 25.2 down to 4.3, and widest in Consent.tsx files, 66.8 down to 5.0. The word cookie moves the most between file types, from 66.8 in 100 in Consent.tsx files down to 6.2 in consent.py files.
The steadiest word is gdpr, holding between 3.0 and 7.6 in 100 across all four file types. Only reject holds a top three place in every file type, Consent.tsx files and consent.js files included. The word scope swings the most in rank, first in consent.py files and eighth in consent.js files.
| Word | consent.ts | Consent.tsx | consent.js | consent.py |
|---|---|---|---|---|
| Cookie | 25.2 | 66.8 | 58.5 | 6.2 |
| Analytics | 24.2 | 47.3 | 31.2 | 4.4 |
| Reject | 13.6 | 25.0 | 21.5 | 13.9 |
| Scope | 10.9 | 9.8 | 6.2 | 25.5 |
| Marketing | 12.5 | 17.0 | 12.2 | 4.9 |
| Necessary | 9.0 | 17.7 | 13.0 | 1.7 |
| Withdraw | 7.7 | 5.0 | 7.7 | 11.0 |
| Gdpr | 4.3 | 5.8 | 7.6 | 3.0 |
What these numbers leave out
- A count covers files, not apps, and a consent file copied between projects is counted in each of them.
- Many public consent files come from templates and tutorials, so a share describes hosted code, not live products.
- A word counts anywhere in a file, so a config key or a type name adds as much as text a visitor reads.
- No date range can be set, so a file idle for years is counted beside one written this month.
- The name search matches any name that contains the text, so a file called myconsent.ts is counted.
- A file named consent can be a cookie banner or a permission screen, so one share can mix both.
- Every query carries the extension, so consent.js leaves out consent.jsx and consent.ts leaves out Consent.tsx.
- Counts above a few thousand come back in coarse steps, so a figure is close and not exact.
- Accept and preferences were cut from every group, because both are everyday words in any interface code.
- Scope and necessary turn up in many files that request no consent, which lifts part of those shares.
- The CSV also holds counts for JSX, Go, Vue and Ruby file names, which the table leaves out.
- A visitor prompt built by a hosted tool leaves no file with this name, so it is missing from every count.
- Every figure is a count read on 22 November 2026.
What people ask about consent code
How many public consent.ts files are there?
25,664 public files have consent.ts in the name.
How many public Consent.tsx files are there?
17,664 files have Consent.tsx in the name.
How many public consent.js files are there?
13,328 files have consent.js in the name.
How many public consent.py files are there?
11,696 files have consent.py in the name.
How many consent.ts files mention a cookie?
The word cookie is in 25.2 in 100 consent.ts files.
How many consent.ts files mention analytics?
The word analytics is in 24.2 in 100 consent.ts files.
How many Consent.tsx files mention marketing?
The word marketing is in 17.0 in 100 Consent.tsx files.
How many Consent.tsx files mention reject?
The word reject is in 25.0 in 100 Consent.tsx files.
How many consent.js files mention scope?
The word scope is in 6.2 in 100 consent.js files.
How many consent.js files mention withdraw?
The word withdraw is in 7.7 in 100 consent.js files.
How many consent.py files mention gdpr?
The word gdpr is in 3.0 in 100 consent.py files.
May a page quote these figures?
Yes, with this page named and the read date. Every figure is one of the 40 rows in consent-file-statistics-2026-11.csv, so a reader can check it.
More files, counted
More counts from public code.
Analytics file statistics, 40 numbers
Track and session words in analytics code.
Privacy and terms page statistics, 40 numbers
File names, privacy words, laws and terms clauses.
Sign in code file statistics, 40 numbers
Redirect and nonce words in sign in code.
Settings screen file statistics, 40 numbers
Password and theme words in settings code.
Newsletter file statistics, 40 numbers
Subscribe and unsubscribe words in newsletter code.
Modal file statistics, 40 numbers
Backdrop and aria words in modal code.
Let visitors tell you what to build
Let visitors tell you what to build, on a board that is free with one project and 100 votes. The 14 day trial of Lite or Pro needs no card.