Page Identifier
This scenario is an addition to other integration examples and explains how to pass a page identifier in the Web SDK. A page identifier is a unique name for the page where you are planning on displaying Rokt placements. This provides the opportunity to identify the page uniquely (e.g., 'checkout-offers-step').
Note: when page identifier is passed, the page URL will be ignored for detection purposes.
This is useful in the cases where there is a multi-step checkout flow that may have the same URL on various pages, when you want more control over what step or page someone is on within your checkout flow, or to set up different layouts of the same page, based on customer journeys.
The integration follows the same steps as in previous examples, but adds an additional pageIdentifer
parameter to be passed to the initialisation function.
See Rokt.init for more details on the method.
rokt.onLoaded(function(rokt) {
rokt.init({
pageIdentifier: '',
});
// Integration steps as per other examples
});