Skip to main content

Selection Context (Legacy SDK)

Legacy Web SDK

This page applies to the Legacy Web SDK only. For the Rokt SDK+, see the Web SDK+ Integration Guide.

OverviewDirect link to Overview

Selection context provides additional information on the selection made by Rokt.

PropertiesDirect link to Properties

pageIdDirect link to page-id

pageId : Promise<string>

Unique identifier of a configured page corresponding to the assigned ID in One Platform.

The Promise will be resolved with the value once the selection done by Rokt backend finishes and rejected if the network call fails.


pageInstanceGuidDirect link to page-instance-guid

pageInstanceGuid : Promise<string>

Unique GUID of a page selection. Useful for debugging purposes.

The Promise will be resolved with the value once the selection done by Rokt backend finishes and rejected if the network call fails.


pageVariantNameDirect link to page-variant-name

pageVariantName : Promise<string>

Name of the selected page variant corresponding to the value assigned in One Platform. Useful for identifying result of the selection.

The Promise will be resolved with the value once the selection done by Rokt backend finishes and rejected if the network call fails.


sessionIdDirect link to session-id

sessionId : Promise<string>

Unique GUID of a session assigned for the current user journey. Useful for debugging purposes.

The Promise will be resolved with the value once the selection done by Rokt backend finishes and rejected if the network call fails.

Was this article helpful?