Skip to content

Manually Segmenting Users

Mridang Agarwalla edited this page Jun 24, 2019 · 3 revisions

While Nosto leverages customer attributes and behavioral signals to automatically segment users, there may be scenarios where you may want to explicitly segment users. You can do so by affixing a segment-code to the current user and then leverage Nosto's segmentation tool to segment users with that specified attribute.

nostojs(function(api) {
  api.addSegmentCodeToVisit('women');
});

The example above does not trigger a reload of all the placements. Once you have placed the snippet into your page, all Nosto requests will automatically leverage the given segment-code. You must specify the segment code on every page load.

Once you have done so, read our guide on segmenting users via custom events.

Clone this wiki locally
You can’t perform that action at this time.