Skip to content

Commit

Permalink
docs: update current visitors
Browse files Browse the repository at this point in the history
  • Loading branch information
gernest committed Feb 10, 2024
1 parent de1276c commit 4590055
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/3-stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ Most endpoints support a `filters` query parameter to drill down into your data.
This endpoint returns the number of current visitors on your site. A current visitor is defined as a visitor who triggered a pageview on your site
in the last 5 minutes.

```bash title="Try it yourself"
curl 'https://cloud.vinceanalytics.com/api/v1/stats/realtime/visitors?site_id=$SITE_ID'
-H "Authorization: Bearer ${TOKEN}"
```bash
+ curl -X GET 'http://localhost:8080/api/v1/stats/realtime/visitors?site_id=vinceanalytics.com'
{
"visitors": "5"
}
```

```json
21
```


#### Parameters
<hr/>
Expand Down

0 comments on commit 4590055

Please sign in to comment.