Stupid Simple Presence Service

SSPS gives any website a tiny live visitor counter and visit counter with one script tag.

Source code on GitHub

The top stats are network-wide across every site using SSPS.

57IDs created
1users live now
1active sites
1427total visits

Get Started

Visit /generate to create a numeric site ID and copy the script tag.

<script async src="https://usessps.com/ssps.js" data-site-id="123"></script>

DOM Counters

The script updates these elements when they exist:

<span id="ssps-live-count"></span>
<span id="ssps-visit-count"></span>
<span id="ssps-unique-visit-count"></span>

This page uses the reserved SSPS site ID 0, so these are live examples of those spans updating:

0active visitors
0visits to this page
0unique visitors here

Programmatic API

window.addEventListener("ssps:update", (event) => {
  console.log(event.detail.live, event.detail.totalHits, event.detail.uniqueVisitors)
})

const stats = window.SSPS.getStats()

JSON API