How to Add a Profile Views Counter to Your GitHub Profile README
A profile views counter shows how many times your GitHub profile has been visited. It is the simplest widget you can add — one line of markdown, no accounts, no API keys, no GitHub Actions. The counter increments each time the README is loaded and persists across visits. This guide covers the antonkomarev/github-profile-views-counter service, which is the most widely used option. It renders as a badge image and supports custom labels, colors, and styles.
Quick Setup Steps
- 1
Step 1: Open your GitHub profile repository and edit README.md.
- 2
Step 2: Add  replacing YOUR_USERNAME with your GitHub username.
- 3
Step 3: Optionally add style, color, and label parameters to match your profile design.
- 4
Step 4: Commit and push the change.
- 5
Step 5: Visit your GitHub profile to verify the counter badge renders and increments on refresh.
What Is the Profile Views Counter?
The profile views counter is a badge hosted at komarev.com that tracks page loads using a pixel-counting approach similar to analytics trackers. Each time your README renders — whether from someone visiting your profile, a search engine indexing the page, or a bot crawling GitHub — the counter increments. The badge updates in real time and displays the running total.
Because the count includes automated and bot traffic, it is not a precise measure of human visitors. Sophisticated profile visitors know this, so the counter is primarily a visual element rather than a meaningful metric. It is most useful when your profile has substantial real traffic — a five-figure count communicates reach in a way that a two-figure count does not.
How to Add the Profile Views Counter
Adding the counter requires one line of markdown. Replace YOUR_USERNAME with your GitHub username:

For a styled badge with a custom label and color:

Common style values: flat, flat-square, plastic, for-the-badge. The for-the-badge style matches the shields.io tech stack badges used in most skill sections. Place the counter in your README header near your name and bio, or at the bottom as a footer element.
Customizing the Profile Views Counter
The counter supports several URL parameters for customization:
color: Hex color without the#prefix (e.g.,color=0e75b6for blue)label: Custom text label (e.g.,label=Visitors)style: Badge style —flat,flat-square,plastic,for-the-badgebase: Starting count if you want to offset the displayed numberabbreviated: Set totrueto show abbreviated numbers (e.g., 1.2k instead of 1200)
To match the dark GitHub theme, use color=blueviolet or color=0079d3. For a minimal look that blends into markdown, use style=flat with no label (label=). The badge works identically in both GitHub's light and dark modes since it renders as a PNG rather than an SVG.
Troubleshooting the Profile Views Counter
If the badge shows a broken image, verify that your username is spelled correctly in the URL — it is case-sensitive. If it shows zero views even after several visits, try clearing your browser cache and reloading. The counter is sometimes slow to initialize on the first request.
If you need to reset your counter or set a specific starting number, use the base parameter: ?username=YOUR_USERNAME&base=500 will start counting from 500. Note that the komarev.com service does not offer authentication or account management — the counter tied to your username is publicly readable and can be embedded by anyone. This is a known limitation of the pixel-counter approach.
Frequently Asked Questions
How do I add a profile views counter to my GitHub README?
Add this line to your README: ``. Replace YOUR_USERNAME with your GitHub username. No signup, API key, or configuration needed. The counter starts at zero and increments on each page load.
Is the GitHub profile views counter free?
Yes. The komarev.com service provided by the antonkomarev/github-profile-views-counter project is free for all GitHub users. It requires no account creation, no API token, and no configuration beyond including the badge URL in your README.
Why is my GitHub profile views counter not showing up?
Check that your GitHub username is correct in the URL — the service is case-sensitive. If the image shows as broken, try loading the badge URL directly in your browser to see if the service is responding. GitHub caches images; use ?cache=1 appended to the URL to force a refresh.
Does the profile views counter work on private profiles?
The badge URL is publicly accessible regardless of your profile settings. However, if your GitHub profile is hidden or your README repository is private, visitors cannot see the counter. The counter tracks requests to the badge image URL itself, not your GitHub profile page directly.
From Our Blog
- Complete Guide to GitHub Badges for Your README
Learn how to add shields.io badges, GitHub stats cards, and tool badges to your GitHub profile README. Includes ready-to-use code for 50+ popular technologies.
- Best GitHub README Widgets and Tools: The Complete 2026 List
A curated list of the best GitHub profile README widgets — from snake animations to Spotify players, stats cards to 3D contribution graphs. Includes setup instructions for each.
- How to Add GitHub Stats Cards to Your README (2026 Guide)
Step-by-step guide to adding GitHub stats cards, language cards, streak stats, and WakaTime cards to your GitHub profile README using github-readme-stats.
Generate Your GitHub Profile README
Generate a GitHub profile README featuring Profile Views Counter with AI
Try It Free — No Sign UpMore Widget Guides
How to Add Spotify Now Playing
Step-by-step guide to adding Spotify Now Playing to your GitHub README
How to Add WakaTime Coding Stats
Step-by-step guide to adding WakaTime Coding Stats to your GitHub README
How to Add Snake Contribution Animation
Step-by-step guide to adding Snake Contribution Animation to your GitHub README
How to Add Typing SVG Animation
Step-by-step guide to adding Typing SVG Animation to your GitHub README
How to Add GitHub Streak Stats
Step-by-step guide to adding GitHub Streak Stats to your GitHub README
How to Add GitHub Stats Card
Step-by-step guide to adding GitHub Stats Card to your GitHub README