Home > @uniformdev/context-vue > Track

Track variable

Tracks visitor behavior by adding enrichment score when they view content wrapped in this component. When the Track component is sufficiently in the viewport, it will trigger the enrichment values specified in behavior to the current visitor. If the browser does not support IntersectionObserver, the behavior will be triggered immediately on page load instead.

NOTE: this component necessarily renders a wrapping tag to attach the IntersectionObserver to; this can result in DOM changes when personalization is added. If that's undesirable use TrackSlot instead which tracks only on page load, but does not render a wrapping tag.

Signature: