🚀 LiveUser Real-time Statistics
Display the number of online users on your website in real-time, powered by WebSocket technology
Online Users:Connecting...
📊 Total Visits:Loading...
🔧
How to Use
Add the following code to your webpage to integrate the LiveUser counter:
HTML
<div id="liveuser">Loading...</div>
<script src="https://live-user.chendi.workers.dev/liveuser.js"></script>
⚙️
Customization Options
Customize the LiveUser counter by adding query parameters to the script URL:
HTML with Parameters
<script src="https://live-user.chendi.workers.dev/liveuser.js?siteId=your-site&displayElementId=custom-id&debug=true"></script>
Available Parameters:
serverUrlWebSocket server URLDefault:
auto-detected from current protocol and hostsiteIdSite identifierDefault:
current domain or 'default-site'displayElementIdElement ID for displaying user countDefault:
'liveuser'totalCountElementIdElement ID for displaying total visit countDefault:
'liveuser_totalvisits'reconnectDelayReconnect delay in millisecondsDefault:
3000debugEnable debug loggingDefault:
falsebaseUrlBase URL for loading additional scriptsDefault:
current protocol and hostenableTotalCountEnable total visit count trackingDefault:
false✨ Key Features
⚡
Real-time
Instant updates
🔄
Auto Reconnect
Never miss a beat
🎨
Customizable
Fits your design
📱
Responsive
Works everywhere