GithubHelp home page GithubHelp logo

jdevfullstack-tutorials / page-metrics Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 786 KB

add a simple way to count the visitors of your GitHub Page or repo

License: MIT License

tutorial page-counter page-hits informative legit-info hits metrics

page-metrics's Introduction

Page Metrics Tutorial

updated 22 April 2022

Hits

GitHub has its own Traffic to show unique visitors, views, etc. But this one is not so useful. First, there is no total views, as in total from the very start. Second, visitors cannot see that, compared to YouTube, views are very important and it's placed there below the video.

Google Analytics is another option. But, first you need to turn your repo as a web page. Second, the setup is very tedious. It's really the best way but when it comes to simplicity, this is not the best.

The HITS Page Counter Service

So, I did not stop looking for the exact answer. Then I discovered HITS service to simply count the visitors of your page or repo. Every page hit will be counted and the best thing is you can embed that on your page or repo README file.

Visit the site: https://hits.seeyoufarm.com/. That is where you generate the badge.

Step 1: Paste your URL. step 1

Step 2: Change the settings. For me, the most important one is the words to be displayed, instead of hits, I'll change that to PAGE VIEWS. step 2

Step 3: Get the embed code, for README file use the provided markdown code, for HTML use the provided html code. step 3

Paste it at the README file of your repo or web page. If ever you used the main branch as your page also, there is no need to add that separately. And that's it! sample

How It Works

The service will count every page hit, meaning every request for that particular URL will be counted, including yours. You can test that by reloading the page or repo. If the counter is incrementing for every reload, it's working.

Take note, this is not using any data from GitHub or Google Analytics, it's simply a page counter that will record how many times a page or repo is requested.

Of course, this one can be faked easily. But, there is no sense faking the views, right? You install it for the very reason you need to see the total visitors. Why would you fake it? Unless you want to cheat yourself.

You can visit the app development: https://github.com/gjbae1212/hit-counter

page-metrics's People

Contributors

jdevfullstack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.