Skip to content
← Back to Community
Repl Stats 📊 (beta!)
Profile icon
h
has Hacker Plan
jajoosam

So many of us make websites on repl.it - and share them all over the internet.

However, to know how many people visited your website and to learn about your traffic, you have to add heavy, sometimes privacy invasive scripts to your website 😞

Introducing Repl Stats 📊 (beta!)

Learn about how many hits your web app got - without needing to add any scripts.

If it's on repl.it - It'll just work (works for repl.run too!) 😉

To try it out just go to https://stats.repl.co/# {repl.hostname}

You don't want to include the protocol (https or http) - so an example would look like this: https://stats.repl.co/#www.lyrics.rip

It's not too much right now, just a graph of all hits like this one 👇

This file cannot be displayed: https://storage.googleapis.com/replit/images/1559780427595_b7aaa4351154336e2a15778dd44a94a0.pn

But, I wanted to share this to see if y'all would want this, and if you would, what more features would you like to see? ✨

(note: right now, that stats update daily - not in realtime)

Voters
Profile icon
undeadboy190
Profile icon
Joeysquatch
Profile icon
EthanBlesch
Profile icon
connorbc
Profile icon
programmeruser
Profile icon
ebest
Profile icon
JustARatherRidi
Profile icon
coalesce
Profile icon
GeorgeForth
Profile icon
PYer
Comments
hotnewtop
Profile icon
PaoloAmoroso

A possible improvement would be making the option accessible from the Repl.it user interface rather than by entering a URL.

Profile icon
amasad

Here is my website's stats (https://amasad.me):
This file cannot be displayed: https://storage.googleapis.com/replit/images/1559781309667_a87a9de242c84a6f1606fe48336950e3.pn

Profile icon
jajoosam

@amasad omg amjad stop flexing your stats

Profile icon
amasad

@jajoosam and here is my repl.art stats (be jelly):
This file cannot be displayed: https://storage.googleapis.com/replit/images/1559781789550_23d93a8bbaf31be601c790f58d8c56bd.pn

Profile icon
INCOGNITO001
Profile icon
LuisAFK

doesnt work for me

Profile icon
[deleted]

ok

Profile icon
[deleted]

ummm guys i think my repl MIGHT be really popular:

Repl Stats - Google Chrome 8_14_2019 12_31_50 AM

Profile icon
[deleted]

oh guys i found the source code xd by jajoosam: https://repl.it/@jajoosam/stats-1

Profile icon
[deleted]

ummmmm, what does hits stand for, like 1 hit = 1 view or something

Profile icon
jajoosam

@vvc yep, 1 hit = 1 request to the repl

Profile icon
[deleted]
Profile icon
SixBeeps

I love it. But, it would also be nice to know some things like what sub-domains of each site are visited, event markers for when we posted about our REPL on Repl Talk, and other stats of the like.

Profile icon
a5rocks

Being able to get this "hits" number for a cli repl...

It would go something like this (python):

import replstats

and in replstats, the replstats/__init__.py file would send a request to your url.

Though, you would need to figure out how to get the repl link, which could be something like dev input, or something like repl adding a file with metadata to the docker instance, or repl adding an environ variable.

Oh yeah, another suggestion:
A bar at the top of the stats page so you can check other sites without editing the url bar.

Profile icon
amasad

@a5rocks I believe someone built that. Maybe @mat1?

Profile icon
a5rocks

@amasad he did? I remember him saying he would, but I don't remember him saying he completed said project.

Profile icon
mat1

@amasad Yeah, it kind of works but it's really janky and bad. I should finish it.

Profile icon
theprobobxd

google analytics works on my website, try that (not sponsered)