Updates from the Repl.it team about the product

← Back to all posts
Repl Stats 📊 (beta!)
jajoosam (921)

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 👇


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)

PaoloAmoroso (190)

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

amasad (3436)

Here is my website's stats (https://amasad.me):

jajoosam (921)

@amasad omg amjad stop flexing your stats

amasad (3436)

@jajoosam and here is my repl.art stats (be jelly):




ummm guys i think my repl MIGHT be really popular:


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


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

jajoosam (921)

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

SixBeeps (5231)

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.

a5rocks (826)

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.

amasad (3436)

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

a5rocks (826)

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

mat1 (4427)

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

theprobobxd (0)

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