Track an event
value is optional and numeric. Choose a consistent unit for your reporting.
Use push whether the script has loaded or is still loading.
Read the visitor ID
null before the runtime is ready. The ID represents an anonymous browser profile. Optional groups are personalized, holdout, or off.
Set consent
TypeScript contract
TypeScript contract
track and consent can be queued. Call visitor() directly after initialization.Internal debugging API
Internal debugging API
window.IONVisitor exposes inspect(), refresh(), reset(), expire(), and destroy(). It is an internal controller for debugging and custom integrations.refresh() uses current bindings; it does not discover missing DOM or fetch a new release. The public API has no identify(), setTraits(), setVariant(), quiz(), or onReady() method.