Skip to content
GuidesChecked 22 November 2026

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.

Consent file names
StatisticNumber
consent.ts25,664
Consent.tsx17,664
consent.js13,328
consent.py11,696
consent.html9,488
consent.md9,280
consent.php7,264
consent.sql3,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.

Words in consent.ts
StatisticIn 100
Cookie25.2
Analytics24.2
Reject13.6
Marketing12.5
Scope10.9
Necessary9.0
Withdraw7.7
Gdpr4.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.

Words in Consent.tsx
StatisticIn 100
Cookie66.8
Analytics47.3
Reject25.0
Necessary17.7
Marketing17.0
Scope9.8
Gdpr5.8
Withdraw5.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.

Words in consent.js
StatisticIn 100
Cookie58.5
Analytics31.2
Reject21.5
Necessary13.0
Marketing12.2
Withdraw7.7
Gdpr7.6
Scope6.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.

Words in consent.py
StatisticIn 100
Scope25.5
Reject13.9
Withdraw11.0
Cookie6.2
Marketing4.9
Analytics4.4
Gdpr3.0
Necessary1.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.

Share of files that hold each word, in 100
Wordconsent.tsConsent.tsxconsent.jsconsent.py
Cookie25.266.858.56.2
Analytics24.247.331.24.4
Reject13.625.021.513.9
Scope10.99.86.225.5
Marketing12.517.012.24.9
Necessary9.017.713.01.7
Withdraw7.75.07.711.0
Gdpr4.35.87.63.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.

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.