Skip to main content

Command Palette

Search for a command to run...

Count page views on your GitHub profile with this one-liner

Do you know how many page views your GitHub profile gets?

Published
4 min read
Count page views on your GitHub profile with this
one-liner
S

Hey 👋🏻,

I am a Software Engineer from Austria 🇦🇹. I am interested in, write about, and develop (open source) software solutions for and with JavaScript, TypeScript, ReactJs, and NodeJS.

You can see what I am currently up to on natterstefan.me.

In the past, I was Product Owner of RAWR, Growth Hacker at the Speedinvest Startup Studio and Online Advertising Manager. Check out my LinkedIn profile for more details.

📬 Get in touch

📧 Sign up for my newsletter.

Ever wonder how often your GitHub profile gets opened? You can enhance your profile with various GitHub actions, images, badges, etc., but you get little to no feedback from GitHub on how often your profile is interacted with or viewed. The same goes for issues and pull requests, though I'm not sure if a page view counter makes sense there.

Regardless of this, I went in search of a solution for you and found a few. Several one-liners are at your disposal.

How To Add a Page View Counter

No matter which one you use, they all end up being very similar. With a one-liner, the badge is added and from then on every load of the badge counts as a pageview. So you just have to consider if you think the pageview service will persist, so you do not start from 0 again. But I do not have an answer for that. I have decided on one, and let's see how long that lasts. I use the pageviews on my profile only as an indicator of whether it rises, the absolute number interests me only limited I must say.

On my GitHub profile you see a page view counter from antonkomarev/github-profile-views-counter. All I had to do, to add it to my profile was adding this line (Note: I also changed the color with &color=<value>):

[![GitHub Views](https://komarev.com/ghpvc/?username=natterstefan&color=FAC151)][1]

Now I have a page view counter on my GitHub profile. That's it. You can get your own counter by adding your username.

![GitHub Views](https://komarev.com/ghpvc/?username=<username>)

Thanks, Anton Komarev for creating this!

Alternatives and DYI Solutions

I promised you to present more than one solution because there are several ways to Rome. Here are a few alternatives with the same result.

Do you use another one? Let me know in the comments below, please. 👇


Share 💛

Do you like this article? Do you want to support me? Tell your friends on Twitter about it. Thank you!

Questions and Feedback

You got any questions or want to add your thoughts? Let me know in the comments below, please.

Let's connect

#90DaysOfProse

Part 5 of 25

Make Writing a Habit. Write for at least 10 minutes a day for the next 90 days. Tweet your progress each day with the #90DaysOfProse hashtag. More details: https://www.90daysofprose.com/

Up next

2 Simple Growth Hacks to Get More Followers on YouTube and Twitter

Get More Followers With This Simple Change 💪