Home > @uniformdev/context-vue

context-vue package

Functions

Function

Description

isUsingUniformContext()

onRouteChange(context)

provideIsPersonalized(isPersonalized)

provideUniformContext({ context, outputType, trackRouteOnRender, vueAppInstance, }, input)

useIsPersonalized()

useQuirks()

Provides reactive access to the Uniform Context's current visitor quirks values This can be used when you want to read current quirk values directly.

useScores()

Provides reactive access to the Uniform Context's current visitor scores values. This can be used when you want to read current score values directly.

useUniformContext()

Interfaces

Interface

Description

PersonalizedVariationComponentProps

TestComponentProps

Variables

Variable

Description

Personalize

PersonalizeEdge

Test

Track

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.

TrackSlot

Tracks visitor behavior by adding enrichment score when they are shown a route with this component on it.

NOTE: if you wish to track on the visitor seeing the content in the browser viewport instead, use Track instead of TrackFragment.

uniformContextInjectionKey

UniformContextProvider

Type Aliases

Type Alias

Description

PersonalizeComponentProps

PersonalizedVariationComponent

UniformContextProps

VariantOutputType