To use the counter just add https://hits.up.railway.app as an image and add the required queries.
To add the number of hits add {{hits}} to the label or the message.
π Required Queries
labelcolor
π Optional Queries
messagelabelColorlogoColorlogostyle
If you want more informations about the badge's customization here it is the shields.io docs
The counter automatically gets the origin header but github doesn't send it when requesting an image so you must add 2 more required queries: user, repository.
<img src="https://hits.up.railway.app/github?label={{hits}}_Github_Badge_Views&color=191724&logo=github&style=for-the-badge&user=NotGabry&repository=hits&labelColor=c4a7e7&logoColor=191724"><img src="https://hits.up.railway.app/badge?label={{hits}}_Classic_Badge_Views&color=191724&logo=github&style=for-the-badge&labelColor=c4a7e7&logoColor=191724">Warning The classic badge does not work here because we are in a github readme