Classification
Programmatic classification
The Uniform tracker is responsible for classifying the visitor based on their behavior.
The Uniform tracker#
You need to add the tracker to your front-end application and be able to get a reference to it when you need to use it.
Add the tracker#
The Context type represents the Uniform tracker. The tracker must be added to the front-end application before any classification can happen.
Get intent manifest#
The intent manifest is usually retrieved as a part of the build process for the front-end application using an npm script to call the Uniform CLI. However, it can be retrieved in other ways as well.
Get reference to the tracker#
Before you can use the tracker, you must get a reference to it.
Write tracker data#
The Uniform SDK provides the ability for you to add logic to your application that explicitly captures visitor activity for the purpose of classifying the visitor.
Enrichments#
If you are using Uniform Canvas, any enrichments that are assigned to a component are tracked automatically. However, if you aren't using Canvas, you must track enrichments in your application.
You can use the Uniform tracker to track enrichments. The following example demonstrates how to add a button that can track enrichments.
You can also use front-end specific components to track enrichments.
Events#
An event can trigger a signal. You can use the Uniform tracker to write events. The following example demonstrates how to add a button that can write events.
Quirks#
A quirk can trigger a signal. You can use the Uniform tracker to write quirk values. The following example demonstrates how to add a button that can write quirks.
Read tracker data#
The Uniform tracker enables you to read the classification data for the current visitor.
Quirks#
You can read the quirks that are currently set on the visitor.
Scores#
You can read the visitor dimension (audiences, enrichments, intents, and signals) scores that are current set on the visitor.
Handle tracker events#
You can define event handlers for the events that are emitted from the Uniform tracker during the classification process.
Quirks updated#
Coming soon
Scores updated#
Coming soon
Set score decay#
The Uniform tracker automatically reduces visitor dimension scores over time through a process called decay. See the score decay guide for information on how to control score decay.
Clear tracker data#
This example demonstrates how to implement a "forget me" button.