Replies: 30 comments 31 replies
-
@Artucuno Hey there, I believe that feature (or at least most of it) is available in GitHub already. You can follow the steps below:
Hope this answers your question 😁 |
Beta Was this translation helpful? Give feedback.
-
that sounds exactly like Google Analytics, well you can use Google Analytics for GitHub Pages if you are really into it, I tried it before |
Beta Was this translation helpful? Give feedback.
-
Hello, @melvincwng - the Traffic stats at the location you specified appear to be directly related to repository traffic (https://docs.github.com/en/rest/metrics/traffic). In other words, when folks view the repository via github.com, stats are tracked. What I would like to see (and what I think @Artucuno is asking), is a set of similar traffic stats as to what GitHub Pages (project.github.io) traffic is happening:
My primary reason for asking this is that a tool like Google Analytics is over-engineered for these basic needs. Also, it's far less privacy-focused. I'm simply looking for equivalent-type of stats for GitHub Pages as what is provided for Github Repos. UPDATE: I did just manage to figure out that you can get some of this type of reporting if you sign up for a free Cloudflare account and enable web analytics on cloudflare. You can read about it on the Cloudflare Blog |
Beta Was this translation helpful? Give feedback.
-
I agree with this proposal and I think it should be kind of mandatory. Most of us are privacy focused folks and I’d love to have, not just analytics, but direct access to logs of every request to GitHub pages, I mean server logs. We could then use any software or tool to generate analytics from them. |
Beta Was this translation helpful? Give feedback.
-
Just wanted to echo the sentiment in this thread that having some built-in mechanism for:
Would be super useful! |
Beta Was this translation helpful? Give feedback.
-
Oh yes please! |
Beta Was this translation helpful? Give feedback.
-
can I haz log? |
Beta Was this translation helpful? Give feedback.
-
Would be nice to have something super simple, like the visitor counts for different pages. Similar to Popular content on the Traffic data, but for pages hosted on Pages. |
Beta Was this translation helpful? Give feedback.
-
This would be very useful. |
Beta Was this translation helpful? Give feedback.
-
Google analytics can be used instead |
Beta Was this translation helpful? Give feedback.
-
Having the logs would be super helpful, even if user info has to be scrubbed. I'd be very interested in knowing what URLs are referring my pages. |
Beta Was this translation helpful? Give feedback.
-
Bump! Like a lot of posters, I don't use Google Analytics for ethical reasons (third-party tracking scripts are nasty), but I'd love to have basic server-side traffic info — even just pageviews/day — to know how many people are visiting. |
Beta Was this translation helpful? Give feedback.
-
In case any product people read this: The number 1 reason that would make me churn right now is need to have insight into my site's traffic. I've deliberately chosen to not include any cookies nor 3rd party content in my site, and would have to rely solely on server logs to have this kind of insight. I can do without it for now, but eventually that'll be my reason to host somewhere else. |
Beta Was this translation helpful? Give feedback.
-
Seems like we can do this using a |
Beta Was this translation helpful? Give feedback.
-
No progress on this topic yet? All the people I know who migrates from Pages is precisely because of the lack of this feature. Nobody talks about exposing IP addresses or anything similar, but rather something as simple as counting daily visits. I found several threads about the same. What is so problematic, dangerous or complicated about this that these requests have been ignored for more than 7 years? I guess Microsoft wants to somehow get rid of this service. If not, I don't understand why they don't provide something so seemingly basic. |
Beta Was this translation helpful? Give feedback.
-
Is there a supported API that provides access to statistics that extend further back in time than the last 14 days? There have been numerous requests for this over time, e.g. isaacs/github#399 (circa ~2015), but it wasn't obvious to me that this request has been actioned? If yes, is there a link to docs that guide use of this? |
Beta Was this translation helpful? Give feedback.
-
Јас користам гоогле аналитика |
Beta Was this translation helpful? Give feedback.
-
Does |
Beta Was this translation helpful? Give feedback.
-
This would be super useful |
Beta Was this translation helpful? Give feedback.
-
I don't want to use Cloudflare as it's not privacy-friendly, just like Google analytics. Does anyone know any other solution? I tried Netlify but it asked for legal ID. Vercel does work and it also has server side HTTP logs, but I was having trouble getting my site indexed on search engines. Edit: My site is static and only contains HTML, CSS. I prefer not to use JS either. |
Beta Was this translation helpful? Give feedback.
-
I started looking into https://umami.is/ as a posssible analytics script. No opinion to offer on it yet. |
Beta Was this translation helpful? Give feedback.
-
I would love to see this as well. |
Beta Was this translation helpful? Give feedback.
-
please microsoft 🥺 |
Beta Was this translation helpful? Give feedback.
-
I bet if leo asked Microsoft would hand over the logs. |
Beta Was this translation helpful? Give feedback.
-
plz implement |
Beta Was this translation helpful? Give feedback.
-
What's interesting to me is that they do clearly measure some usage data for pages, at least enough to enforce their documented bandwidth limit, so at least some way to see how close you are to hitting a limit...? |
Beta Was this translation helpful? Give feedback.
-
Also looking for this. |
Beta Was this translation helpful? Give feedback.
-
I think you can implement tracking using Yandex Metrica, they provide a free tracking service |
Beta Was this translation helpful? Give feedback.
-
Again, the goal is to get access to the server logs (even in a heavily redacted form), not to sneak Javascript analytics spyware into people's browsers. In any case, third-party Javascript analytics are useless for measuring direct downloads of data (i.e. not by clicking a link on a web page) for measuring the large percentage of users who block third-party analytics trackers on web pages: only GitHub has access to that information. |
Beta Was this translation helpful? Give feedback.
-
Hey! I'm not sure if its already a thing but Github Pages should have a graph in the traffic tab of your Github Repo with the visitors count, country of origin, etc.
Thanks.
(13/09/2024) EDIT:
As of now, there is still no way to view Github pages traffic inside of your Github repo. If you are looking for a service with built-in analytics, I recommend using Cloudflare pages.
Cloudflare Pages also supports Jekyll and has automated builds from Git, so migration from Github Pages is super simple. [Comparison]
Beta Was this translation helpful? Give feedback.
All reactions