context package
Classes
<table><thead><tr><th>
Class
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Handles client-to-server score handoff using an encoded cookie with the visitor score vector. NOTE: forget me is not supported when on the server side.
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> </tbody></table>
Abstract Classes
<table><thead><tr><th>
Abstract Class
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
</td><td>
</td></tr> </tbody></table>
Enumerations
<table><thead><tr><th>
Enumeration
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
</td><td>
</td></tr> </tbody></table>
Functions
<table><thead><tr><th>
Function
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
computeAggregateDimensions(primitiveScores, aggregates)
</td><td>
Computes aggregated scores based on other dimensions
</td></tr> <tr><td>
</td><td>
Creates a new log drain that will log to the console. The log drain will only log event IDs, but is much smaller than the debug log drain.
NOTE: you probably want enableConsoleLogDrain() instead of this function.
</td></tr> <tr><td>
createDebugConsoleLogDrain(level, options)
</td><td>
Creates a new log drain that will log full debug messages to the console. The debug log drain adds significant bundle size, but is useful for debugging.
NOTE: you probably want enableDebugConsoleLogDrain() instead of this function.
</td></tr> <tr><td>
</td><td>
Creates a function that applies linear decay to scores over time.
</td></tr> <tr><td>
</td><td>
Enables logging Context events to the browser console. Lightweight events with only the event ID are emitted.
</td></tr> <tr><td>
enableContextDevTools(options)
</td><td>
Enables a Context instance to feed data to the Uniform Context DevTools. DevTools can be hosted either as a Chromium extension, or as a standalone React app within a page and receive data once this plugin has been activated.
</td></tr> <tr><td>
enableDebugConsoleLogDrain(level, options)
</td><td>
Enables logging Context events to the browser console. Lightweight events with only the event ID are emitted.
</td></tr> <tr><td>
evaluateVariantMatch(variantId, match, vec, onLogMessage)
</td><td>
</td></tr> <tr><td>
explainStringMatch(lhs, match)
</td><td>
</td></tr> <tr><td>
explainStringMatchCriteria(match)
</td><td>
</td></tr> <tr><td>
getEnrichmentVectorKey(category, value)
</td><td>
</td></tr> <tr><td>
</td><td>
Tests if a StringMatch matches a string value
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
personalizeVariations({ name, context, variations, take, onLogMessage, })
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> </tbody></table>
Interfaces
<table><thead><tr><th>
Interface
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
</td><td>
</td></tr> </tbody></table>
Variables
<table><thead><tr><th>
Variable
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
</td><td>
</td></tr> <tr><td>
CONTEXTUAL_EDITING_TEST_SELECTED_VARIANT_ID
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> </tbody></table>
Type Aliases
<table><thead><tr><th>
Type Alias
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Content that is tagged for adding enrichment score when triggered by behavior (i.e. being shown that content)
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Defines a plugin for Uniform Context. The plugin should attach event handlers in its creation function.
</td></tr> <tr><td>
</td><td>
Expresses a 'patch' to the Uniform Context state
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
CookieTransitionDataStoreOptions
</td><td>
</td></tr> <tr><td>
</td><td>
A type that evaluates a signal criteria type and decides if it matches the current Context state or not.
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
The result of evaluating a signal criteria.
</td></tr> <tr><td>
</td><td>
Computes decay of visitor scores over time. NOTE: it is expected that this function mutates the incoming score vectors, if it needs to apply score decay. The data store ensures immutability already.
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Mutations the DevTools can take on the data it receives
</td></tr> <tr><td>
</td><td>
Emitted when data is updated in Context to the devtools
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
A request to forget me from the DevTools
</td></tr> <tr><td>
</td><td>
A hello message emitted as an event from the browser extension to test if the page contains Context
</td></tr> <tr><td>
</td><td>
A log message emitted as an event to the browser extension
</td></tr> <tr><td>
</td><td>
Devtools requests a raw update cycle (explicitly set scores of dimensions in durations, etc)
</td></tr> <tr><td>
</td><td>
The data state provided to the devtools for rendering.
</td></tr> <tr><td>
</td><td>
The version of the DevTools UI to load when in Chromium extension context. 1: Uniform Optimize. 2: Uniform Context.
</td></tr> <tr><td>
</td><td>
Devtools requests a normal update cycle (regular data update, re-eval signals, etc)
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
EdgePersonalizeComponentOptions
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
EdgeTransitionDataStoreOptions
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
An event that has occurred (i.e. an analytics track) which may trigger an Event signal
</td></tr> <tr><td>
</td><td>
Identifies the visitor as being a specific unique identifier. NOTE: this only has an effect when using an external cross-device transition storage system. NOTE: you cannot read the identified visitor ID back from the storage system once it is set.
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Defines all error codes and their parameter(s)
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Changes the visitor's permanent score for a given dimension
</td></tr> <tr><td>
</td><td>
Changes the visitor's session (time-based) score for a given dimension
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Emitted when a personalization runs
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
The result of computing personalized content from variations
</td></tr> <tr><td>
</td><td>
Defines the shape of a personalized content variant
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Changes the visitor's storage consent setting. Setting consent to false will trigger deletion of any stored data for the visitor. Scores are still collected in-memory when consent is false; just not persisted.
</td></tr> <tr><td>
</td><td>
Sets whether the current visitor is in the personalization control group (Will not be exposed to personalization or gather classification data; WILL see A/B tests) In most cases this should not be sent as the membership is computed automatically for visitors; this command is intended mostly for diagnostics and testing purposes.
</td></tr> <tr><td>
SetPersonalizeVariantControlCommand
</td><td>
</td></tr> <tr><td>
</td><td>
Sets a permanent quirk key and value for the visitor
</td></tr> <tr><td>
</td><td>
Sets a specific variant as being this visitor's variant on an A/B test
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Commands that can be issued to alter the storage of Uniform Context data
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Emitted event when an A/B test runs
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
The result of computing an A/B test result
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
Defines the shape of a A/B test variant
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> <tr><td>
</td><td>
</td></tr> </tbody></table>