Online now--
Total visits--
Quick start
Add this to your HTML:
<div id="liveuser">0</div> <script src="https://live-user.cdlab.workers.dev/liveuser.js"></script>
With options
<script src="https://live-user.cdlab.workers.dev/liveuser.js?siteId=my-site&enableTotalCount=true"></script>
Parameters
siteIdSite identifierdefault-site
displayElementIdElement ID for online countliveuser
totalCountElementIdElement ID for total visitsliveuser_totalvisits
enableTotalCountTrack total visit countfalse
reconnectDelayReconnect delay (ms)3000
debugEnable console loggingfalse
serverUrlWebSocket server URLauto-detected