# 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-🙋%E2%80%8D♂%EF%B8%8F-1618682033565x545077038187544600)

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

## ℹ️ Introduction

![Plugin used to track online visitors](/files/-MYXOVIAZVRlXz6iwWrz)

🔥 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.

![](/files/-MYXLHPISAsACQV5ZfZu)

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bubble.digital-bird.com/plugins/users-online.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
