Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/plausible/index.ts>default#getRealtime

A zero-dependency, TypeScript library for interacting with the Plausible Analytics API, written in Deno!
Latest
method default.prototype.getRealtime
import { default } from "https://deno.land/x/plausible@v2.2.0/index.ts";

This function 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.

Returns

Promise<number>