本服務可讓您即時掌握網站的在線人數與歷史瀏覽次數,輕鬆分析訪客活躍度。
<div id="online-count"></div>
<script>
const token = '你的專屬 token';
function updateOnlineUser() {
fetch('https://statistics.wrlcc.synology.me/update.php?token=' + token, {
credentials: 'include'
})
.then(res => res.json())
.then(data => {
document.getElementById('online-count').textContent = `目前在線:${data.online_users} 人`;
});
}
setInterval(updateOnlineUser, 10000);
updateOnlineUser();
</script>
<div id="history-count"></div>
<script>
const token = '你的專屬 token';
function updatehistory() {
fetch('https://statistics.wrlcc.synology.me/history.php?token=' + token, {
credentials: 'include'
})
.then(res => res.json())
.then(data => {
document.getElementById('history-count').textContent = `歷史瀏覽次數:${data.history_users} 次`;
});
}
setInterval(updatehistory, 10000);
updatehistory();
</script>
| 名次 | 網站名稱 | 網站連結 | 歷史次數 |
|---|---|---|---|
| 載入中... | |||