# Users Online 🙋‍♂️

## 🔗 Links

> [Demo](https://usersonline.bubbleapps.io/version-test/) | [Editor](https://bubble.io/page?type=page\&name=index\&id=usersonline\&tab=tabs-1)

> [Plugin page](https://bubble.io/plugin/users-online-%F0%9F%99%8B%E2%80%8D%E2%99%82%EF%B8%8F-1618682033565x545077038187544600)

> [Forum](https://forum.bubble.io/t/plugin-relese-users-online/147206)

## ℹ️ Introduction

![Plugin used to track online visitors](https://721213748-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXfye6lH1Q5_SG7txj-%2F-MYXOTnHkLpFFTtKVcB2%2F-MYXOVIAZVRlXz6iwWrz%2FUsers_Online___Home.jpg?alt=media\&token=f3016539-cb5d-4a52-be80-993358e8d050)

🔥 Some use cases:

* store visit analytics and statistics
* number of visitors online / rich info about online visitors
* visitors and opened pages
* get rich visitor info
* automatically logout user after X min of inactivity

## 🔥 Features

Plugin provides rich information about the user.

Based on IP address:&#x20;

* IP address
* internet provider
* timezone
* Location: city, area\_code, region, country, country\_code (2 and 3 symbols), continent\_code
* lat/lng
* accuracy (in km)
* asn

Based on website interaction:

* status: active; idle (inactive); hidden (browser is hidden or user is on another tab)
* is Idle: whether user is active or not
* Idle for (ms): time in ms of user inactivity
* Time left (ms): time left before user will be considered inactive (idle)

## 📚 Documentation

1. Add the element to a page. Setup "Time to idle" (in seconds): time of inactivity before user becomes idle.

![](https://721213748-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXfye6lH1Q5_SG7txj-%2F-MYXKuluT1NF6CqGND-8%2F-MYXLHPISAsACQV5ZfZu%2FUsersonline___Bubble_Editor.jpg?alt=media\&token=60badb33-ef28-4576-ba5f-6822fa774a30)

2\. In workflow, use events "**Status changed**" and "**IP info ready**". Access plugin's shared states.
