Skip to content

EventResult

What happened to one event passed to Visitors.event.

reason: string | null

When nothing was recorded, why. The same reasons as an interaction ('no_visitor', 'session_token', 'recognition_not_granted', 'revoked', 'token_invalid': an anonymous visitor’s events are never stored), plus 'events_disabled', 'events_unconfigured', 'event_allowance_reached', 'event_cap_reached' and 'event_queue_full'. None of these is an error. Otherwise null.


recorded: boolean

true when the event was queued to be recorded. Recording is asynchronous and never slows your page; under heavy load a queued event can still be dropped.