Home > @uniformdev/context-vue

context-vue package

Functions

FunctionDescription
isUsingUniformContext()
onRouteChange(context)
provideIsPersonalized(isPersonalized)
provideUniformContext({ context, outputType, trackRouteOnRender, vueAppInstance, })
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

InterfaceDescription
TestComponentProps

Variables

VariableDescription
Personalize
PersonalizeEdge
Test
Track<p>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 <code>behavior</code> to the current visitor. If the browser does not support IntersectionObserver, the behavior will be triggered immediately on page load instead.</p><p>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.</p>
TrackSlot<p>Tracks visitor behavior by adding enrichment score when they are shown a route with this component on it.</p><p>NOTE: if you wish to track on the visitor seeing the content in the browser viewport instead, use Track instead of TrackFragment.</p>
uniformContextInjectionKey
UniformContextProvider

Type Aliases

Type AliasDescription
PersonalizeComponentProps
PersonalizedVariationComponent
PersonalizedVariationComponentProps
UniformContextProps
VariantOutputType