Skip to content

useVisitors

useVisitors(): VisitorsSnapshot & Pick<Visitors, "interaction" | "event" | "ready" | "refresh" | "setConsent" | "forget" | "pageViewed">

The visitor’s current token and consent state, which re-render the component when they change, and the calls that change them.

VisitorsSnapshot & Pick<Visitors, "interaction" | "event" | "ready" | "refresh" | "setConsent" | "forget" | "pageViewed">