Analytics file statistics: 204,288 files
Forty numbers on how developers write analytics code, counted on 21 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 analytics files exist, by file name.
204,288 files have analytics.ts in the name, and 4,152 have Analytics.kt in the name.
The analytics.ts file leads, and it is 49.2 times as common as Analytics.kt.
| Statistic | Number |
|---|---|
| analytics.ts | 204,288 |
| analytics.js | 188,416 |
| analytics.py | 116,992 |
| Analytics.tsx | 98,432 |
| analytics.html | 67,328 |
| analytics.php | 44,672 |
| analytics.go | 8,320 |
| Analytics.kt | 4,152 |
.ts files
Eight numbers on the words that analytics.ts files use.
The word track is in 38.6 in 100 analytics.ts files, and anonymous in 2.8 in 100.
The word track leads, and session follows at 15.2 in 100.
| Statistic | In 100 |
|---|---|
| Track | 38.6 |
| Session | 15.2 |
| Pageview | 12.0 |
| Consent | 6.1 |
| Funnel | 5.3 |
| Cookie | 5.0 |
| Identify | 4.0 |
| Anonymous | 2.8 |
.js files
Eight numbers on the words that analytics.js files use.
The word track is in 35.9 in 100 analytics.js files, and anonymous in 1.6 in 100.
The word track leads, and pageview follows at 19.5 in 100.
| Statistic | In 100 |
|---|---|
| Track | 35.9 |
| Pageview | 19.5 |
| Session | 15.5 |
| Cookie | 10.3 |
| Consent | 2.4 |
| Identify | 2.3 |
| Funnel | 2.2 |
| Anonymous | 1.6 |
.py files
Eight numbers on the words that analytics.py files use.
The word session is in 28.3 in 100 analytics.py files, and consent in 0.7 in 100.
The word session leads, and track follows at 12.8 in 100.
| Statistic | In 100 |
|---|---|
| Session | 28.3 |
| Track | 12.8 |
| Identify | 3.0 |
| Funnel | 2.9 |
| Anonymous | 1.7 |
| Pageview | 1.1 |
| Cookie | 0.8 |
| Consent | 0.7 |
.tsx files
Eight numbers on the words that Analytics.tsx files use.
The word track is in 34.0 in 100 Analytics.tsx files, and anonymous in 1.0 in 100.
The word track leads, and session follows at 9.7 in 100.
| Statistic | In 100 |
|---|---|
| Track | 34.0 |
| Session | 9.7 |
| Pageview | 6.4 |
| Consent | 4.6 |
| Cookie | 4.2 |
| Funnel | 3.2 |
| Identify | 1.6 |
| Anonymous | 1.0 |
What is in the file
Forty numbers, one CSV
Every figure sits in one CSV, with the group and unit written on each row.
Five groups
File names, then the words used in four kinds of analytics file.
Counts, not apps
You get totals and shares only, and no app, author or host is called out.
Easy to cite
Use any figure, or all forty, with this page named and the read date given.
How the files were counted
One code search for each file name and each word.
Start from a file name
Every word query was kept to one file name, so each share has a known total below it.
Bring in a word
A query joined one word to a file name and counted the files holding both.
Repeat partial answers
A partial answer was sent again after the limit reset, up to three more times.
Check the maths
Each share came from code, and a test confirmed it before it went on the page.
What changes between file types
No single word wins everywhere: the top place goes to track in analytics.ts, analytics.js and Analytics.tsx files; session in analytics.py files. The word track moves the most between file types, from 38.6 in 100 in analytics.ts files down to 12.8 in analytics.py files. The steadiest word is anonymous, holding between 1.0 and 2.8 in 100 across all four file types.
The words track and session hold a top three place in every file type, analytics.js files and analytics.py files included. The word pageview swings the most in rank, second in analytics.js files and sixth in analytics.py files. Read across the pageview row and it runs 12.0 in analytics.ts files, 19.5 in analytics.js, 1.1 in analytics.py and 6.4 in Analytics.tsx.
| Word | analytics.ts | analytics.js | analytics.py | Analytics.tsx |
|---|---|---|---|---|
| Track | 38.6 | 35.9 | 12.8 | 34.0 |
| Session | 15.2 | 15.5 | 28.3 | 9.7 |
| Pageview | 12.0 | 19.5 | 1.1 | 6.4 |
| Cookie | 5.0 | 10.3 | 0.8 | 4.2 |
| Consent | 6.1 | 2.4 | 0.7 | 4.6 |
| Funnel | 5.3 | 2.2 | 2.9 | 3.2 |
| Identify | 4.0 | 2.3 | 3.0 | 1.6 |
| Anonymous | 2.8 | 1.6 | 1.7 | 1.0 |
What these numbers leave out
- A count covers files, not apps, and one analytics file copied between projects is counted in each of them.
- Many public analytics files come from starter templates and wrappers, so a share describes hosted code, not live products.
- A word counts wherever it appears, so a log line or a type name adds as much as the code that does the tracking.
- The search has no date filter, so abandoned files count the same as maintained ones.
- Track and session turn up in code that has nothing to do with analytics, which lifts part of those shares.
- Event and optout were cut from every group, optout because it matched only 37 Python files.
- Four file names, one Vue, one Ruby and two Swift, were counted and left out of the table.
- An analytics file often mentions several of these words, so the shares in a group overlap.
- Tracking set up inside a larger file, or named metrics or stats, is missing from every count.
- Words written in another language are invisible here, because all eight searched words are English.
- A word shows a file mentions it, not that any visitor was ever counted.
- Counts above a few thousand come back in coarse steps, so the 204,288 analytics.ts files are a close figure, not an exact one.
- A file name search matches any name that contains the text, so analytics.ts also counts analytics.tsx files. The analytics.ts and analytics.tsx groups overlap.
What people ask about analytics code
How many public analytics.ts files are there?
204,288 public files have analytics.ts in the name.
How many public analytics.js files are there?
188,416 files have analytics.js in the name.
How many public analytics.py files are there?
116,992 files have analytics.py in the name.
How many public Analytics.tsx files are there?
98,432 files have Analytics.tsx in the name.
How many analytics.ts files mention track?
The word track is in 38.6 in 100 analytics.ts files.
How many analytics.ts files mention consent?
The word consent is in 6.1 in 100 analytics.ts files.
How many analytics.js files mention a pageview?
The word pageview is in 19.5 in 100 analytics.js files.
How many analytics.js files mention a cookie?
The word cookie is in 10.3 in 100 analytics.js files.
How many analytics.py files mention a session?
The word session is in 28.3 in 100 analytics.py files.
How many analytics.py files mention a pageview?
The word pageview is in 1.1 in 100 analytics.py files.
How many Analytics.tsx files mention a funnel?
The word funnel is in 3.2 in 100 Analytics.tsx 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 analytics-file-statistics-2026-11.csv, so a reader can check it.
More files, counted
More counts from public code.
Billing file statistics, 40 numbers
Subscription and payment words in billing code.
Dashboard file statistics, 40 numbers
Chart and filter words in dashboard code.
Notification file statistics, 40 numbers
Push and email words in notification code.
Environment file statistics, 40 numbers
Setting names in example and production env files.
Webhook handler file statistics, 40 numbers
Signature and retry words in webhook code.
Sign in code file statistics, 40 numbers
Redirect and nonce words in sign in code.
Ask users instead of counting them
Ask your users what they want instead of guessing from clicks, on a board that is free with one project and 100 votes. The 14 day trial of Lite or Pro needs no card.