Skip to main content

Track an event

Configure an event goal with the same name. 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

Returns null before the runtime is ready. The ID represents an anonymous browser profile. Optional groups are personalized, holdout, or off.
See Consent for startup and withdrawal behavior.
Only track and consent can be queued. Call visitor() directly after initialization.
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.
A purchase-named tracking event is browser measurement, not verified payment history. For application context, use connected data.